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.62/4.62, allocations: 0.5623 GB / 0.5769 GB, free: 3.332 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002427/0.002427, allocations: 361.2 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.905/3.905, allocations: 410.7 MB / 1.112 GB, free: 6.012 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001744/0.001744, allocations: 183 kB / 1.225 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004935/0.0004937, allocations: 12 kB / 1.348 GB, free: 8.27 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5782/0.5787, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02056/0.5994, allocations: 21.55 MB / 1.482 GB, free: 262.8 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.01328/0.6127, allocations: 8.978 MB / 1.491 GB, free: 253.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.614, allocations: 27.75 kB / 1.491 GB, free: 253.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.6153, allocations: 459.8 kB / 1.491 GB, free: 253.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.003474/0.6188, allocations: 1.087 MB / 1.492 GB, free: 252.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.007602/0.6265, allocations: 2.518 MB / 1.495 GB, free: 249.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.00258/0.6291, allocations: 2.153 MB / 1.497 GB, free: 247.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008105/0.6299, allocations: 0.5669 MB / 1.497 GB, free: 247.2 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001009/0.6309, allocations: 0.6672 MB / 1.498 GB, free: 246.6 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.6317, allocations: 0.632 MB / 1.498 GB, free: 245.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.6318, allocations: 32 kB / 1.498 GB, free: 245.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001721/0.6336, allocations: 0.8582 MB / 1.499 GB, free: 245 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001732/0.6338, allocations: 168 kB / 1.499 GB, free: 244.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.634, allocations: 201.1 kB / 1.5 GB, free: 244.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.6352, allocations: 1.014 MB / 1.501 GB, free: 243.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.6353, allocations: 0 / 1.501 GB, free: 243.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.037e-06/0.6353, allocations: 1.188 kB / 1.501 GB, free: 243.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.6353, allocations: 0 / 1.501 GB, free: 243.7 MB / 0.8542 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.001915/0.6372, allocations: 1.234 MB / 1.502 GB, free: 242.4 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.6373, allocations: 12.41 kB / 1.502 GB, free: 242.4 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.6375, allocations: 114.7 kB / 1.502 GB, free: 242.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.6386, allocations: 0.6475 MB / 1.503 GB, free: 241.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.6386, allocations: 49.3 kB / 1.503 GB, free: 241.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.6388, allocations: 64 kB / 1.503 GB, free: 241.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.64, allocations: 0.6595 MB / 1.503 GB, free: 240.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.64, allocations: 4.562 kB / 1.503 GB, free: 240.8 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/0.6401, allocations: 28 kB / 1.503 GB, free: 240.7 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.6401, allocations: 12.81 kB / 1.503 GB, free: 240.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009841/0.6411, allocations: 454.8 kB / 1.504 GB, free: 240.3 MB / 0.8542 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.003575/0.6447, allocations: 2.539 MB / 1.506 GB, free: 237.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008337/0.6455, allocations: 379.7 kB / 1.507 GB, free: 237.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.646, allocations: 199.7 kB / 1.507 GB, free: 237.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.6462, allocations: 337 kB / 1.507 GB, free: 236.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005991/0.6468, allocations: 324.3 kB / 1.508 GB, free: 236.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 3.54e-06/0.6469, allocations: 0 / 1.508 GB, free: 236.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001551/0.6484, allocations: 0.7077 MB / 1.508 GB, free: 235.6 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.6485, allocations: 245.5 kB / 1.508 GB, free: 235.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/0.6496, allocations: 0.8282 MB / 1.509 GB, free: 234.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.588e-05/0.6496, allocations: 41.7 kB / 1.509 GB, free: 234.4 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.65, allocations: 432.3 kB / 1.51 GB, free: 234 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.6501, allocations: 125.8 kB / 1.51 GB, free: 233.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.6501, allocations: 12 kB / 1.51 GB, free: 233.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.6502, allocations: 330 kB / 1.51 GB, free: 233.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004751/0.6507, allocations: 197.1 kB / 1.51 GB, free: 233.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.6513, allocations: 374.2 kB / 1.511 GB, free: 232.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.6518, allocations: 258.8 kB / 1.511 GB, free: 232.7 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.586e-06/0.6518, allocations: 0 / 1.511 GB, free: 232.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001451/0.6533, allocations: 0.7304 MB / 1.512 GB, free: 231.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-05/0.6534, allocations: 201 kB / 1.512 GB, free: 231.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.3e-06/0.6534, allocations: 4 kB / 1.512 GB, free: 231.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.6535, allocations: 4 kB / 1.512 GB, free: 231.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6546, allocations: 176.3 kB / 1.512 GB, free: 231.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007753/0.6554, allocations: 1.774 MB / 1.514 GB, free: 229.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008433/0.6563, allocations: 115.4 kB / 1.514 GB, free: 229.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/0.6564, allocations: 28 kB / 1.514 GB, free: 229.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.123e-06/0.6564, allocations: 4 kB / 1.514 GB, free: 229.5 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001311/0.6577, allocations: 0.6386 MB / 1.515 GB, free: 228.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.528e-06/0.6578, allocations: 7.984 kB / 1.515 GB, free: 228.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.6578, allocations: 4 kB / 1.515 GB, free: 228.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006395/0.6584, allocations: 140.1 kB / 1.515 GB, free: 228.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.16e-06/0.6585, allocations: 4 kB / 1.515 GB, free: 228.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000733/0.6592, allocations: 99.41 kB / 1.515 GB, free: 228.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.074e-05/0.6593, allocations: 27.98 kB / 1.515 GB, free: 228.6 MB / 0.8542 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.0004334/0.6597, allocations: 338.8 kB / 1.515 GB, free: 228.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.6599, allocations: 106.7 kB / 1.515 GB, free: 228.2 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.6613, allocations: 0.6761 MB / 1.516 GB, free: 227.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.6613, allocations: 5.266 kB / 1.516 GB, free: 227.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.94e-06/0.6614, allocations: 4 kB / 1.516 GB, free: 227.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.6614, allocations: 3.984 kB / 1.516 GB, free: 227.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.6638, allocations: 1.529 MB / 1.517 GB, free: 225.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.822e-06/0.6639, allocations: 4 kB / 1.517 GB, free: 225.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005803/0.6645, allocations: 91.89 kB / 1.517 GB, free: 225.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.6645, allocations: 3.984 kB / 1.517 GB, free: 225.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.6645, allocations: 16.12 kB / 1.517 GB, free: 225.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006953/0.6652, allocations: 1.77 MB / 1.519 GB, free: 223.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.6653, allocations: 0 / 1.519 GB, free: 223.9 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.667, allocations: 1.117 MB / 1.52 GB, free: 222.8 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.6673, allocations: 223.7 kB / 1.521 GB, free: 222.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.6675, allocations: 15.98 kB / 1.521 GB, free: 222.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.6682, allocations: 52.02 kB / 1.521 GB, free: 222.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.6683, allocations: 47.92 kB / 1.521 GB, free: 222.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.079e-05/0.6684, allocations: 16 kB / 1.521 GB, free: 222.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0007676/0.6692, allocations: 0.5627 MB / 1.521 GB, free: 221.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.88e-07/0.6692, allocations: 0 / 1.521 GB, free: 221.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001434/0.6706, allocations: 451.2 kB / 1.522 GB, free: 221.4 MB / 0.8542 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.0007236/0.6714, allocations: 347.9 kB / 1.522 GB, free: 221 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002466/0.6738, allocations: 1.024 MB / 1.523 GB, free: 220 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.165e-06/0.6739, allocations: 0 / 1.523 GB, free: 220 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0007839/0.6747, allocations: 359.9 kB / 1.523 GB, free: 219.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/0.6771, allocations: 368.6 kB / 1.524 GB, free: 219.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.6799, allocations: 1.73 MB / 1.525 GB, free: 217.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.6804, allocations: 1.013 MB / 1.526 GB, free: 216.5 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000792/0.6812, allocations: 153.9 kB / 1.526 GB, free: 216.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.6814, allocations: 71.41 kB / 1.527 GB, free: 216.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.689e-06/0.6815, allocations: 0 / 1.527 GB, free: 216.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.03239/0.7139, allocations: 15.53 MB / 1.542 GB, free: 201.1 MB / 0.8542 GB