Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002491/0.002495, allocations: 356.8 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.379/1.379, allocations: 165.8 MB / 182.5 MB, free: 5.91 MB / 90.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.481/4.481, allocations: 410.7 MB / 0.5995 GB, free: 2.191 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001813/0.001813, allocations: 198.1 kB / 0.6662 GB, free: 14.04 MB / 490.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004687/0.0004689, allocations: 12 kB / 0.7423 GB, free: 32 kB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.39, allocations: 67.44 MB / 0.8082 GB, free: 245.4 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02561/0.4157, allocations: 21.55 MB / 0.8292 GB, free: 230.9 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.01489/0.4306, allocations: 8.962 MB / 0.8379 GB, free: 224.1 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00162/0.4323, allocations: 34.75 kB / 0.838 GB, free: 224.1 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.001501/0.4338, allocations: 457.6 kB / 0.8384 GB, free: 223.8 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.004166/0.438, allocations: 1.081 MB / 0.8395 GB, free: 222.9 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.008954/0.447, allocations: 2.515 MB / 0.8419 GB, free: 221.4 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.003256/0.4503, allocations: 2.151 MB / 0.844 GB, free: 220.1 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.4515, allocations: 0.5715 MB / 0.8446 GB, free: 219.8 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.4534, allocations: 0.6638 MB / 0.8452 GB, free: 219.4 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.4547, allocations: 0.6304 MB / 0.8458 GB, free: 219 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.455, allocations: 32 kB / 0.8459 GB, free: 219 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.457, allocations: 0.8653 MB / 0.8467 GB, free: 218.1 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0002592/0.4573, allocations: 167.3 kB / 0.8469 GB, free: 217.9 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.4577, allocations: 201.1 kB / 0.8471 GB, free: 217.7 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.4593, allocations: 1.017 MB / 0.8481 GB, free: 216.7 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.603e-06/0.4593, allocations: 0 / 0.8481 GB, free: 216.7 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.423e-06/0.4593, allocations: 0 / 0.8481 GB, free: 216.7 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.357e-05/0.4593, allocations: 0 / 0.8481 GB, free: 216.7 MB / 0.5886 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.002036/0.4614, allocations: 1.239 MB / 0.8493 GB, free: 215.4 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.4614, allocations: 8.031 kB / 0.8493 GB, free: 215.4 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.4617, allocations: 110.7 kB / 0.8494 GB, free: 215.3 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.4628, allocations: 0.6375 MB / 0.85 GB, free: 214.6 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.747e-05/0.4629, allocations: 49.31 kB / 0.8501 GB, free: 214.6 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.463, allocations: 67.95 kB / 0.8501 GB, free: 214.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.4643, allocations: 0.6663 MB / 0.8508 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.4643, allocations: 3.938 kB / 0.8508 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.489e-05/0.4644, allocations: 21.36 kB / 0.8508 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.4644, allocations: 16 kB / 0.8508 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009897/0.4654, allocations: 456.9 kB / 0.8513 GB, free: 213.3 MB / 0.5886 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.003842/0.4693, allocations: 2.54 MB / 0.8537 GB, free: 210.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008793/0.4702, allocations: 371.4 kB / 0.8541 GB, free: 210.3 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.4706, allocations: 196 kB / 0.8543 GB, free: 210.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002614/0.4709, allocations: 340.4 kB / 0.8546 GB, free: 209.7 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006256/0.4715, allocations: 329.2 kB / 0.8549 GB, free: 209.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=37): time 4.52e-06/0.4716, allocations: 1.078 kB / 0.8549 GB, free: 209.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=37): time 0.001631/0.4732, allocations: 0.7068 MB / 0.8556 GB, free: 208.6 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/0.4733, allocations: 243.3 kB / 0.8558 GB, free: 208.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.4744, allocations: 0.8278 MB / 0.8566 GB, free: 207.5 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.4745, allocations: 37.7 kB / 0.8567 GB, free: 207.4 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.4748, allocations: 440.3 kB / 0.8571 GB, free: 207 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.475, allocations: 122.3 kB / 0.8572 GB, free: 206.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.475, allocations: 12 kB / 0.8572 GB, free: 206.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.418e-05/0.4751, allocations: 330 kB / 0.8575 GB, free: 206.5 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/0.4756, allocations: 197.1 kB / 0.8577 GB, free: 206.3 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005854/0.4762, allocations: 363.6 kB / 0.8581 GB, free: 205.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005371/0.4768, allocations: 267.6 kB / 0.8583 GB, free: 205.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.012e-06/0.4768, allocations: 0 / 0.8583 GB, free: 205.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001541/0.4783, allocations: 0.7292 MB / 0.859 GB, free: 204.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.7e-05/0.4784, allocations: 202.2 kB / 0.8592 GB, free: 204.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.4785, allocations: 3.984 kB / 0.8592 GB, free: 204.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.4785, allocations: 8 kB / 0.8593 GB, free: 204.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.4797, allocations: 178.2 kB / 0.8594 GB, free: 204.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000834/0.4806, allocations: 1.778 MB / 0.8612 GB, free: 202.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009606/0.4816, allocations: 107.4 kB / 0.8613 GB, free: 202.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-05/0.4817, allocations: 24 kB / 0.8613 GB, free: 202.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.4817, allocations: 7.938 kB / 0.8613 GB, free: 202.5 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001363/0.4831, allocations: 0.6425 MB / 0.8619 GB, free: 201.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.129e-06/0.4831, allocations: 0 / 0.8619 GB, free: 201.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.4831, allocations: 8 kB / 0.8619 GB, free: 201.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000654/0.4838, allocations: 132.1 kB / 0.8621 GB, free: 201.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.4838, allocations: 11.95 kB / 0.8621 GB, free: 201.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00085/0.4847, allocations: 107.3 kB / 0.8622 GB, free: 201.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.4848, allocations: 20 kB / 0.8622 GB, free: 201.6 MB / 0.5886 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.0004767/0.4853, allocations: 348 kB / 0.8625 GB, free: 201.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.4854, allocations: 91.44 kB / 0.8626 GB, free: 201.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.4869, allocations: 0.6894 MB / 0.8633 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4869, allocations: 4 kB / 0.8633 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.861e-06/0.487, allocations: 3.953 kB / 0.8633 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.487, allocations: 4 kB / 0.8633 GB, free: 200.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002461/0.4894, allocations: 1.518 MB / 0.8648 GB, free: 198.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.768e-06/0.4895, allocations: 0 / 0.8648 GB, free: 198.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.49, allocations: 87.27 kB / 0.8649 GB, free: 198.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/0.4901, allocations: 7.953 kB / 0.8649 GB, free: 198.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.4901, allocations: 24.11 kB / 0.8649 GB, free: 198.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006815/0.4908, allocations: 1.772 MB / 0.8666 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.256e-06/0.4908, allocations: 3.938 kB / 0.8666 GB, free: 196.9 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.4927, allocations: 1.103 MB / 0.8677 GB, free: 195.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003631/0.4931, allocations: 223.7 kB / 0.8679 GB, free: 195.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.4932, allocations: 23.89 kB / 0.8679 GB, free: 195.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007071/0.4939, allocations: 52 kB / 0.868 GB, free: 195.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.4941, allocations: 47.3 kB / 0.868 GB, free: 195.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.294e-05/0.4941, allocations: 27.94 kB / 0.8681 GB, free: 195.4 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.000796/0.495, allocations: 0.5549 MB / 0.8686 GB, free: 194.8 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.67e-07/0.495, allocations: 0 / 0.8686 GB, free: 194.8 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001533/0.4965, allocations: 459.2 kB / 0.869 GB, free: 194.4 MB / 0.5886 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.0007676/0.4973, allocations: 339.1 kB / 0.8694 GB, free: 194.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002632/0.5, allocations: 1.023 MB / 0.8704 GB, free: 193 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.8e-06/0.5, allocations: 0 / 0.8704 GB, free: 193 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.5008, allocations: 355.9 kB / 0.8707 GB, free: 192.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002649/0.5035, allocations: 383.5 kB / 0.8711 GB, free: 192.3 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003129/0.5067, allocations: 1.7 MB / 0.8727 GB, free: 190.6 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.5072, allocations: 1.021 MB / 0.8737 GB, free: 189.5 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009043/0.5081, allocations: 151.9 kB / 0.8739 GB, free: 189.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.5083, allocations: 71.41 kB / 0.8739 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of SimCode: time 1.814e-06/0.5083, allocations: 0 / 0.8739 GB, free: 189.3 MB / 0.5886 GB Notification: Performance of Templates: time 0.03354/0.5419, allocations: 15.55 MB / 0.8891 GB, free: 174.3 MB / 0.5886 GB