Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.483/1.483, allocations: 251.5 MB / 267.4 MB, free: 11.13 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 184.4 kB / 326.5 MB, free: 2.711 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205 MB / 0.5766 GB, free: 21.03 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008687/0.0008687, allocations: 90.31 kB / 0.6803 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003303, allocations: 15.22 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.21, allocations: 105.4 MB / 0.8967 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01687/0.227, allocations: 23.09 MB / 0.9193 GB, free: 45.02 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01272/0.2398, allocations: 10.05 MB / 0.9291 GB, free: 34.94 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.2413, allocations: 31.69 kB / 0.9291 GB, free: 34.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.2424, allocations: 326.2 kB / 0.9294 GB, free: 34.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.002967/0.2453, allocations: 0.9798 MB / 0.9304 GB, free: 33.6 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002523/0.2479, allocations: 0.9639 MB / 0.9313 GB, free: 32.65 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002345/0.2502, allocations: 2.476 MB / 0.9338 GB, free: 30.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007794/0.251, allocations: 0.6117 MB / 0.9344 GB, free: 29.53 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.2522, allocations: 0.7234 MB / 0.9351 GB, free: 28.8 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007002/0.2529, allocations: 0.6806 MB / 0.9357 GB, free: 28.12 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.833e-05/0.253, allocations: 28 kB / 0.9358 GB, free: 28.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.2546, allocations: 0.9397 MB / 0.9367 GB, free: 27.15 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.2548, allocations: 171.1 kB / 0.9368 GB, free: 26.98 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0003812/0.2552, allocations: 445.2 kB / 0.9373 GB, free: 26.55 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.2563, allocations: 1.029 MB / 0.9383 GB, free: 25.52 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2563, allocations: 0 / 0.9383 GB, free: 25.52 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.934e-06/0.2563, allocations: 0 / 0.9383 GB, free: 25.52 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.2563, allocations: 0 / 0.9383 GB, free: 25.52 MB / 0.6042 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.001616/0.2579, allocations: 1.224 MB / 0.9395 GB, free: 24.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.258, allocations: 12.03 kB / 0.9395 GB, free: 24.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.2582, allocations: 115.5 kB / 0.9396 GB, free: 24.11 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008313/0.259, allocations: 0.6831 MB / 0.9403 GB, free: 23.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.259, allocations: 53.31 kB / 0.9403 GB, free: 23.33 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/0.2591, allocations: 60 kB / 0.9404 GB, free: 23.27 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008374/0.26, allocations: 0.6624 MB / 0.941 GB, free: 22.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.26, allocations: 7.938 kB / 0.941 GB, free: 22.56 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.662e-05/0.2601, allocations: 24 kB / 0.941 GB, free: 22.54 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.2601, allocations: 20 kB / 0.9411 GB, free: 22.52 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006916/0.2608, allocations: 452.9 kB / 0.9415 GB, free: 22.08 MB / 0.6042 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.002595/0.2634, allocations: 2.542 MB / 0.944 GB, free: 19.41 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000581/0.264, allocations: 358.8 kB / 0.9443 GB, free: 19.05 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002812/0.2643, allocations: 192.7 kB / 0.9445 GB, free: 18.86 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002104/0.2645, allocations: 344.4 kB / 0.9448 GB, free: 18.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004609/0.265, allocations: 325.2 kB / 0.9451 GB, free: 18.09 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.336e-06/0.265, allocations: 0 / 0.9451 GB, free: 18.09 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.001099/0.2661, allocations: 0.7 MB / 0.9458 GB, free: 17.38 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.2661, allocations: 247.3 kB / 0.9461 GB, free: 17.09 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007117/0.2669, allocations: 0.8321 MB / 0.9469 GB, free: 16.23 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.2669, allocations: 45.89 kB / 0.9469 GB, free: 16.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.2671, allocations: 440.3 kB / 0.9473 GB, free: 15.74 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.2672, allocations: 118.4 kB / 0.9474 GB, free: 15.62 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.2673, allocations: 61.69 kB / 0.9475 GB, free: 15.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.2674, allocations: 326 kB / 0.9478 GB, free: 15.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.2677, allocations: 213.1 kB / 0.948 GB, free: 15.03 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003983/0.2681, allocations: 375.6 kB / 0.9484 GB, free: 14.61 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.2688, allocations: 0.5379 MB / 0.9489 GB, free: 14.02 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2688, allocations: 4 kB / 0.9489 GB, free: 14.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00101/0.2698, allocations: 0.7448 MB / 0.9496 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.2699, allocations: 210.2 kB / 0.9498 GB, free: 13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.2699, allocations: 4 kB / 0.9498 GB, free: 13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.27, allocations: 4 kB / 0.9498 GB, free: 13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009509/0.2709, allocations: 179.7 kB / 0.95 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006339/0.2716, allocations: 1.785 MB / 0.9518 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.2722, allocations: 107.5 kB / 0.9519 GB, free: 10.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/0.2723, allocations: 27.98 kB / 0.9519 GB, free: 10.83 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.607e-06/0.2723, allocations: 4 kB / 0.9519 GB, free: 10.83 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000863/0.2732, allocations: 0.6387 MB / 0.9525 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2732, allocations: 4 kB / 0.9525 GB, free: 10.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.232e-06/0.2732, allocations: 7.938 kB / 0.9525 GB, free: 10.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004506/0.2737, allocations: 136.1 kB / 0.9527 GB, free: 10.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2737, allocations: 7.938 kB / 0.9527 GB, free: 10.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005228/0.2742, allocations: 99.38 kB / 0.9528 GB, free: 9.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.2743, allocations: 28.08 kB / 0.9528 GB, free: 9.902 MB / 0.6042 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003394/0.2746, allocations: 347.3 kB / 0.9531 GB, free: 9.547 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.2747, allocations: 94.81 kB / 0.9532 GB, free: 9.453 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/0.2757, allocations: 0.6867 MB / 0.9539 GB, free: 8.754 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.2758, allocations: 4 kB / 0.9539 GB, free: 8.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2758, allocations: 3.984 kB / 0.9539 GB, free: 8.746 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2758, allocations: 3.938 kB / 0.9539 GB, free: 8.742 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.2774, allocations: 1.523 MB / 0.9554 GB, free: 7.148 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.2774, allocations: 0 / 0.9554 GB, free: 7.148 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.2777, allocations: 95.86 kB / 0.9555 GB, free: 7.055 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/0.2778, allocations: 8.125 kB / 0.9555 GB, free: 7.047 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.2778, allocations: 15.94 kB / 0.9555 GB, free: 7.031 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004653/0.2783, allocations: 1.77 MB / 0.9572 GB, free: 5.191 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2783, allocations: 0 / 0.9572 GB, free: 5.191 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.2794, allocations: 1.117 MB / 0.9583 GB, free: 4.043 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.2796, allocations: 211.8 kB / 0.9585 GB, free: 3.816 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.2797, allocations: 16 kB / 0.9585 GB, free: 3.801 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005061/0.2803, allocations: 55.92 kB / 0.9586 GB, free: 3.746 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.929e-05/0.2804, allocations: 51.86 kB / 0.9586 GB, free: 3.695 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.2804, allocations: 16 kB / 0.9586 GB, free: 3.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0005366/0.281, allocations: 0.5627 MB / 0.9592 GB, free: 3.105 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.281, allocations: 4 kB / 0.9592 GB, free: 3.102 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001117/0.2821, allocations: 455.2 kB / 0.9596 GB, free: 2.656 MB / 0.6042 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006436/0.2827, allocations: 344.6 kB / 0.96 GB, free: 2.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001893/0.2846, allocations: 1.043 MB / 0.961 GB, free: 1.258 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.2846, allocations: 0 / 0.961 GB, free: 1.258 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.2852, allocations: 356.6 kB / 0.9613 GB, free: 0.8984 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.2871, allocations: 371.2 kB / 0.9617 GB, free: 0.5352 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.2898, allocations: 1.814 MB / 0.9634 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005553/0.2904, allocations: 0.9973 MB / 0.9644 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.2906, allocations: 67.42 kB / 0.9645 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.2906, allocations: 0 / 0.9645 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of Templates: time 0.02992/0.3205, allocations: 23.78 MB / 0.9877 GB, free: 5.883 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)