Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.666/2.667, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002187/0.002187, allocations: 182.2 kB / 325.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.677/2.677, allocations: 205.4 MB / 0.5766 GB, free: 21.14 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001789/0.001789, allocations: 92.58 kB / 0.6811 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007213/0.0007216, allocations: 14.91 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2386, allocations: 106.3 MB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02534/0.264, allocations: 19.85 MB / 0.9183 GB, free: 46.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01677/0.2808, allocations: 8.601 MB / 0.9267 GB, free: 37.42 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.2823, allocations: 35.69 kB / 0.9267 GB, free: 37.39 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.2843, allocations: 0.5096 MB / 0.9272 GB, free: 36.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.004434/0.2888, allocations: 1.101 MB / 0.9283 GB, free: 35.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.009574/0.2984, allocations: 2.446 MB / 0.9307 GB, free: 33.36 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.002807/0.3012, allocations: 1.207 MB / 0.9318 GB, free: 32.15 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.3024, allocations: 0.5806 MB / 0.9324 GB, free: 31.55 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001652/0.3041, allocations: 0.6424 MB / 0.933 GB, free: 30.91 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009362/0.305, allocations: 0.5018 MB / 0.9335 GB, free: 30.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001786/0.3052, allocations: 35.94 kB / 0.9336 GB, free: 30.37 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.3076, allocations: 0.8971 MB / 0.9344 GB, free: 29.47 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0002626/0.3079, allocations: 163.2 kB / 0.9346 GB, free: 29.31 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.00034/0.3082, allocations: 201.1 kB / 0.9348 GB, free: 29.11 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.3104, allocations: 1.021 MB / 0.9358 GB, free: 28.08 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3104, allocations: 0 / 0.9358 GB, free: 28.08 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.776e-06/0.3104, allocations: 0 / 0.9358 GB, free: 28.08 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.224e-05/0.3105, allocations: 0 / 0.9358 GB, free: 28.08 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.003012/0.3135, allocations: 1.236 MB / 0.937 GB, free: 26.79 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3136, allocations: 8.031 kB / 0.937 GB, free: 26.78 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.3139, allocations: 118.5 kB / 0.9371 GB, free: 26.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.3155, allocations: 0.6445 MB / 0.9377 GB, free: 25.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.915e-05/0.3157, allocations: 49.31 kB / 0.9378 GB, free: 25.93 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.3158, allocations: 63.98 kB / 0.9378 GB, free: 25.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.3173, allocations: 0.6585 MB / 0.9385 GB, free: 25.17 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.3174, allocations: 0 / 0.9385 GB, free: 25.17 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.676e-05/0.3175, allocations: 24 kB / 0.9385 GB, free: 25.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/0.3175, allocations: 12 kB / 0.9385 GB, free: 25.13 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3187, allocations: 456.9 kB / 0.939 GB, free: 24.68 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.00519/0.3239, allocations: 2.534 MB / 0.9414 GB, free: 22.02 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3251, allocations: 367.3 kB / 0.9418 GB, free: 21.65 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.3255, allocations: 344.7 kB / 0.9421 GB, free: 21.24 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007667/0.3262, allocations: 317.4 kB / 0.9424 GB, free: 20.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=37): time 3.437e-06/0.3263, allocations: 4 kB / 0.9424 GB, free: 20.89 MB / 0.6042 GB Notification: Performance of matching and sorting (n=37): time 0.002043/0.3283, allocations: 0.776 MB / 0.9432 GB, free: 20.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.3284, allocations: 243.4 kB / 0.9434 GB, free: 19.8 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.3298, allocations: 0.8281 MB / 0.9442 GB, free: 18.95 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.3299, allocations: 45.64 kB / 0.9443 GB, free: 18.89 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/0.3303, allocations: 440.3 kB / 0.9447 GB, free: 18.46 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.3305, allocations: 118.3 kB / 0.9448 GB, free: 18.34 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.3305, allocations: 12 kB / 0.9448 GB, free: 18.33 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.751e-05/0.3306, allocations: 333.9 kB / 0.9451 GB, free: 18 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.3312, allocations: 205.1 kB / 0.9453 GB, free: 17.79 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006931/0.332, allocations: 355.7 kB / 0.9457 GB, free: 17.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.3326, allocations: 255.7 kB / 0.9459 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3326, allocations: 0 / 0.9459 GB, free: 17.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001882/0.3345, allocations: 0.729 MB / 0.9466 GB, free: 16.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.3348, allocations: 1.082 MB / 0.9477 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.3348, allocations: 4 kB / 0.9477 GB, free: 15.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/0.3349, allocations: 4 kB / 0.9477 GB, free: 15.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/0.3367, allocations: 179.7 kB / 0.9478 GB, free: 15.04 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.3377, allocations: 1.778 MB / 0.9496 GB, free: 13.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.3391, allocations: 115.3 kB / 0.9497 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.3392, allocations: 27.98 kB / 0.9497 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3392, allocations: 4 kB / 0.9497 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001646/0.3409, allocations: 0.6348 MB / 0.9503 GB, free: 12.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3409, allocations: 4 kB / 0.9503 GB, free: 12.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.3409, allocations: 11.94 kB / 0.9504 GB, free: 12.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009729/0.3419, allocations: 127.9 kB / 0.9505 GB, free: 12.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.342, allocations: 11.92 kB / 0.9505 GB, free: 12.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.3431, allocations: 99.64 kB / 0.9506 GB, free: 12.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.497e-05/0.3432, allocations: 27.98 kB / 0.9506 GB, free: 12.12 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 ($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.0005563/0.3438, allocations: 342.6 kB / 0.9509 GB, free: 11.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.344, allocations: 94.83 kB / 0.951 GB, free: 11.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.3459, allocations: 0.6825 MB / 0.9517 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.3459, allocations: 8.078 kB / 0.9517 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.346, allocations: 3.938 kB / 0.9517 GB, free: 10.97 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.346, allocations: 7.938 kB / 0.9517 GB, free: 10.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004748/0.3507, allocations: 1.519 MB / 0.9532 GB, free: 9.375 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.3508, allocations: 4 kB / 0.9532 GB, free: 9.371 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.352, allocations: 91.86 kB / 0.9533 GB, free: 9.281 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.367e-05/0.3521, allocations: 4 kB / 0.9533 GB, free: 9.277 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.477e-05/0.3522, allocations: 16 kB / 0.9533 GB, free: 9.262 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.3534, allocations: 1.762 MB / 0.955 GB, free: 7.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.3534, allocations: 4.312 kB / 0.955 GB, free: 7.426 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003703/0.3572, allocations: 1.159 MB / 0.9562 GB, free: 6.215 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007818/0.358, allocations: 223.8 kB / 0.9564 GB, free: 5.977 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002746/0.3583, allocations: 16.06 kB / 0.9564 GB, free: 5.961 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.3598, allocations: 59.8 kB / 0.9564 GB, free: 5.902 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.36, allocations: 47.92 kB / 0.9565 GB, free: 5.855 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.406e-05/0.3601, allocations: 19.98 kB / 0.9565 GB, free: 5.836 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000947/0.361, allocations: 0.5588 MB / 0.9571 GB, free: 5.266 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.1e-07/0.361, allocations: 0 / 0.9571 GB, free: 5.266 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001727/0.3628, allocations: 455.2 kB / 0.9575 GB, free: 4.82 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 (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.0009433/0.3637, allocations: 337 kB / 0.9578 GB, free: 4.492 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003308/0.3671, allocations: 1.019 MB / 0.9588 GB, free: 3.453 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.3671, allocations: 0 / 0.9588 GB, free: 3.453 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0009607/0.3681, allocations: 360.6 kB / 0.9592 GB, free: 3.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003359/0.3715, allocations: 376.5 kB / 0.9595 GB, free: 2.723 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.3751, allocations: 1.71 MB / 0.9612 GB, free: 0.9727 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.3757, allocations: 1.017 MB / 0.9622 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001171/0.3769, allocations: 154.1 kB / 0.9623 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3772, allocations: 67.42 kB / 0.9624 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of SimCode: time 1.122e-06/0.3772, allocations: 0 / 0.9624 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of Templates: time 0.04598/0.4232, allocations: 15.49 MB / 0.9775 GB, free: 376 kB / 0.6198 GB