Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.195/2.195, allocations: 391.2 MB / 407 MB, free: 10.8 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001463, allocations: 198.7 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 113.8 kB / 0.9329 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 50.36 kB / 1.081 GB, free: 218.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3069, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01717/0.3241, allocations: 23.14 MB / 1.241 GB, free: 94.01 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.007681/0.3319, allocations: 6.58 MB / 1.247 GB, free: 87.41 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.3332, allocations: 31.75 kB / 1.247 GB, free: 87.38 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0009268/0.3341, allocations: 326.2 kB / 1.247 GB, free: 87.06 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.3367, allocations: 0.9837 MB / 1.248 GB, free: 86.07 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.002373/0.339, allocations: 0.9637 MB / 1.249 GB, free: 85.12 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.002302/0.3413, allocations: 2.518 MB / 1.252 GB, free: 82.59 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007624/0.3421, allocations: 0.643 MB / 1.252 GB, free: 81.93 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.3433, allocations: 0.7663 MB / 1.253 GB, free: 81.16 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006458/0.3439, allocations: 0.704 MB / 1.254 GB, free: 80.46 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 8.559e-05/0.344, allocations: 40 kB / 1.254 GB, free: 80.42 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.3455, allocations: 0.9514 MB / 1.255 GB, free: 79.46 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.3456, allocations: 187.1 kB / 1.255 GB, free: 79.28 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0003543/0.346, allocations: 473.2 kB / 1.255 GB, free: 78.82 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.3473, allocations: 1.441 MB / 1.257 GB, free: 77.37 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3473, allocations: 0 / 1.257 GB, free: 77.37 MB / 0.823 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3473, allocations: 4 kB / 1.257 GB, free: 77.37 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.3473, allocations: 0 / 1.257 GB, free: 77.37 MB / 0.823 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.001873/0.3492, allocations: 1.414 MB / 1.258 GB, free: 75.89 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.3493, allocations: 11.98 kB / 1.258 GB, free: 75.88 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.3494, allocations: 119.6 kB / 1.258 GB, free: 75.77 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008358/0.3503, allocations: 0.664 MB / 1.259 GB, free: 75.06 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.3503, allocations: 49.31 kB / 1.259 GB, free: 75.01 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.888e-05/0.3504, allocations: 67.98 kB / 1.259 GB, free: 74.95 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008014/0.3512, allocations: 0.6585 MB / 1.26 GB, free: 74.25 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.3512, allocations: 0 / 1.26 GB, free: 74.25 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.3513, allocations: 35.88 kB / 1.26 GB, free: 74.21 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3513, allocations: 12 kB / 1.26 GB, free: 74.2 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/0.3519, allocations: 448.9 kB / 1.26 GB, free: 73.76 MB / 0.823 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.002669/0.3546, allocations: 2.534 MB / 1.263 GB, free: 71.09 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000601/0.3552, allocations: 355.6 kB / 1.263 GB, free: 70.73 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.3555, allocations: 188.8 kB / 1.263 GB, free: 70.55 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000236/0.3558, allocations: 348.3 kB / 1.264 GB, free: 70.13 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005163/0.3563, allocations: 321.2 kB / 1.264 GB, free: 69.79 MB / 0.823 GB Notification: Performance of pre-optimization done (n=37): time 1.784e-06/0.3563, allocations: 0 / 1.264 GB, free: 69.79 MB / 0.823 GB Notification: Performance of matching and sorting (n=37): time 0.001123/0.3574, allocations: 0.69 MB / 1.265 GB, free: 69.09 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.3575, allocations: 243.3 kB / 1.265 GB, free: 68.79 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007052/0.3582, allocations: 0.8445 MB / 1.266 GB, free: 67.93 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.836e-05/0.3583, allocations: 41.7 kB / 1.266 GB, free: 67.88 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.3585, allocations: 432.3 kB / 1.266 GB, free: 67.45 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.3586, allocations: 122.3 kB / 1.266 GB, free: 67.33 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.3587, allocations: 130.1 kB / 1.266 GB, free: 67.2 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.3588, allocations: 334.2 kB / 1.267 GB, free: 66.86 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.3591, allocations: 211 kB / 1.267 GB, free: 66.65 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004045/0.3596, allocations: 372.1 kB / 1.267 GB, free: 66.23 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006335/0.3602, allocations: 0.534 MB / 1.268 GB, free: 65.64 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3602, allocations: 0 / 1.268 GB, free: 65.64 MB / 0.823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009766/0.3612, allocations: 0.7372 MB / 1.268 GB, free: 64.89 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.3612, allocations: 41.73 kB / 1.268 GB, free: 64.84 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.3613, allocations: 7.938 kB / 1.268 GB, free: 64.84 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.3613, allocations: 7.938 kB / 1.269 GB, free: 64.83 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009161/0.3622, allocations: 167.8 kB / 1.269 GB, free: 64.66 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006104/0.3628, allocations: 1.777 MB / 1.27 GB, free: 62.82 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006134/0.3634, allocations: 115.4 kB / 1.271 GB, free: 62.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.283e-05/0.3635, allocations: 31.98 kB / 1.271 GB, free: 62.67 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004816/0.364, allocations: 377.2 kB / 1.271 GB, free: 62.3 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003802/0.3644, allocations: 374.2 kB / 1.271 GB, free: 61.87 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006029/0.365, allocations: 0.5385 MB / 1.272 GB, free: 61.27 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.675e-06/0.365, allocations: 4 kB / 1.272 GB, free: 61.27 MB / 0.823 GB Notification: Performance of matching and sorting (n=72) (initialization_lambda0): time 0.0009282/0.3659, allocations: 0.7233 MB / 1.272 GB, free: 60.53 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.366, allocations: 38.94 kB / 1.273 GB, free: 60.49 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.366, allocations: 7.938 kB / 1.273 GB, free: 60.48 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.451e-06/0.366, allocations: 4 kB / 1.273 GB, free: 60.48 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.3665, allocations: 127.8 kB / 1.273 GB, free: 60.35 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.3665, allocations: 8 kB / 1.273 GB, free: 60.34 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/0.3671, allocations: 91.64 kB / 1.273 GB, free: 60.25 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.3672, allocations: 24 kB / 1.273 GB, free: 60.23 MB / 0.823 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.0001713/0.3673, allocations: 255 kB / 1.273 GB, free: 59.97 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3674, allocations: 98.72 kB / 1.273 GB, free: 59.87 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/0.3685, allocations: 0.6675 MB / 1.274 GB, free: 59.19 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.3685, allocations: 4.094 kB / 1.274 GB, free: 59.18 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3685, allocations: 7.969 kB / 1.274 GB, free: 59.18 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3685, allocations: 4 kB / 1.274 GB, free: 59.17 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.3701, allocations: 1.519 MB / 1.275 GB, free: 57.58 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3701, allocations: 0 / 1.275 GB, free: 57.58 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.3705, allocations: 103.7 kB / 1.275 GB, free: 57.48 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3705, allocations: 4 kB / 1.275 GB, free: 57.48 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.3706, allocations: 15.98 kB / 1.275 GB, free: 57.46 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004551/0.371, allocations: 1.766 MB / 1.277 GB, free: 55.62 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.371, allocations: 3.938 kB / 1.277 GB, free: 55.62 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.3755, allocations: 4.256 MB / 1.281 GB, free: 51.19 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.3757, allocations: 219.8 kB / 1.281 GB, free: 50.95 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.701e-05/0.3758, allocations: 20 kB / 1.282 GB, free: 50.93 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.3763, allocations: 51.88 kB / 1.282 GB, free: 50.88 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.3764, allocations: 51.88 kB / 1.282 GB, free: 50.83 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.3764, allocations: 23.97 kB / 1.282 GB, free: 50.81 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0005224/0.377, allocations: 0.5709 MB / 1.282 GB, free: 50.23 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.377, allocations: 0 / 1.282 GB, free: 50.23 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001425/0.3784, allocations: 0.5891 MB / 1.283 GB, free: 49.64 MB / 0.823 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.0006386/0.379, allocations: 344.1 kB / 1.283 GB, free: 49.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001915/0.381, allocations: 1.028 MB / 1.284 GB, free: 48.25 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.381, allocations: 0 / 1.284 GB, free: 48.25 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.3815, allocations: 355.1 kB / 1.284 GB, free: 47.89 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/0.3835, allocations: 368.8 kB / 1.285 GB, free: 47.53 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.386, allocations: 2.112 MB / 1.287 GB, free: 45.35 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.3864, allocations: 1.01 MB / 1.288 GB, free: 44.31 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0005711/0.387, allocations: 162 kB / 1.288 GB, free: 44.15 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.3871, allocations: 75.41 kB / 1.288 GB, free: 44.08 MB / 0.823 GB Notification: Performance of SimCode: time 6.61e-07/0.3871, allocations: 0 / 1.288 GB, free: 44.08 MB / 0.823 GB Notification: Performance of Templates: time 0.0247/0.4118, allocations: 16.83 MB / 1.304 GB, free: 27.44 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)