Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.416/2.416, allocations: 251.1 MB / 266.1 MB, free: 11.63 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.001641/0.00164, allocations: 179.3 kB / 325.6 MB, free: 2.824 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.583/2.583, allocations: 205.4 MB / 0.5766 GB, free: 20.71 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.001545/0.001545, allocations: 100.8 kB / 0.6811 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004622, allocations: 13.06 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2394, allocations: 106.3 MB / 0.8989 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03951/0.279, allocations: 22.39 MB / 0.9207 GB, free: 43.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01852/0.2976, allocations: 9.299 MB / 0.9298 GB, free: 33.73 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001422/0.2991, allocations: 31.69 kB / 0.9299 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.002194/0.3013, allocations: 0.5406 MB / 0.9304 GB, free: 33.15 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.005258/0.3066, allocations: 1.197 MB / 0.9316 GB, free: 31.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.00994/0.3165, allocations: 2.587 MB / 0.9341 GB, free: 29.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003483/0.32, allocations: 1.573 MB / 0.9356 GB, free: 27.82 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.3216, allocations: 0.7761 MB / 0.9364 GB, free: 27.02 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.3239, allocations: 0.9115 MB / 0.9373 GB, free: 26.11 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.3261, allocations: 0.7904 MB / 0.938 GB, free: 25.32 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0004414/0.3266, allocations: 47.94 kB / 0.9381 GB, free: 25.27 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.3293, allocations: 0.8581 MB / 0.9389 GB, free: 24.41 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0004739/0.3298, allocations: 207.2 kB / 0.9391 GB, free: 24.21 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0004027/0.3302, allocations: 201.2 kB / 0.9393 GB, free: 24 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.00211/0.3323, allocations: 1.13 MB / 0.9404 GB, free: 22.87 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3324, allocations: 0 / 0.9404 GB, free: 22.87 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.815e-06/0.3324, allocations: 3.938 kB / 0.9404 GB, free: 22.87 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.888e-05/0.3324, allocations: 4 kB / 0.9404 GB, free: 22.86 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002865/0.3353, allocations: 1.155 MB / 0.9415 GB, free: 21.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3353, allocations: 12.03 kB / 0.9416 GB, free: 21.65 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.3357, allocations: 114.7 kB / 0.9417 GB, free: 21.54 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.3373, allocations: 0.6279 MB / 0.9423 GB, free: 20.86 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.427e-05/0.3374, allocations: 57 kB / 0.9423 GB, free: 20.81 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/0.3377, allocations: 95.94 kB / 0.9424 GB, free: 20.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.339, allocations: 0.5491 MB / 0.943 GB, free: 20.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.3391, allocations: 0 / 0.943 GB, free: 20.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.227e-05/0.3391, allocations: 28 kB / 0.943 GB, free: 20.11 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.3392, allocations: 12 kB / 0.943 GB, free: 20.1 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.3404, allocations: 407.6 kB / 0.9434 GB, free: 19.7 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.005804/0.3462, allocations: 2.544 MB / 0.9459 GB, free: 17.02 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000792/0.3471, allocations: 272.8 kB / 0.9461 GB, free: 16.74 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002798/0.3474, allocations: 340.4 kB / 0.9465 GB, free: 16.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3474, allocations: 42.56 kB / 0.9465 GB, free: 16.29 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=29): time 2.474e-06/0.3474, allocations: 0 / 0.9465 GB, free: 16.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=29): time 0.001766/0.3492, allocations: 486.4 kB / 0.947 GB, free: 15.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.3492, allocations: 55.41 kB / 0.947 GB, free: 15.74 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.3504, allocations: 0.7514 MB / 0.9477 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.3507, allocations: 41.7 kB / 0.9478 GB, free: 14.93 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004287/0.3511, allocations: 441.4 kB / 0.9482 GB, free: 14.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.3512, allocations: 98.56 kB / 0.9483 GB, free: 14.4 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.3513, allocations: 15.94 kB / 0.9483 GB, free: 14.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.164e-05/0.3514, allocations: 322 kB / 0.9486 GB, free: 14.06 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005492/0.3519, allocations: 157 kB / 0.9488 GB, free: 13.91 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001358/0.3533, allocations: 0.7634 MB / 0.9495 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.354, allocations: 241.1 kB / 0.9498 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.354, allocations: 0 / 0.9498 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001747/0.3558, allocations: 0.5536 MB / 0.9503 GB, free: 12.15 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.356, allocations: 0.8015 MB / 0.9511 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.3561, allocations: 0 / 0.9511 GB, free: 11.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.3561, allocations: 12 kB / 0.9511 GB, free: 11.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0022/0.3583, allocations: 203.6 kB / 0.9513 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.3596, allocations: 2.364 MB / 0.9536 GB, free: 8.617 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005344/0.365, allocations: 0.6905 MB / 0.9543 GB, free: 7.926 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/0.3652, allocations: 27.94 kB / 0.9543 GB, free: 7.898 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.3652, allocations: 4 kB / 0.9543 GB, free: 7.895 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001426/0.3667, allocations: 442.1 kB / 0.9547 GB, free: 7.461 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3667, allocations: 4 kB / 0.9547 GB, free: 7.457 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.3667, allocations: 4 kB / 0.9547 GB, free: 7.453 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.3678, allocations: 144 kB / 0.9549 GB, free: 7.312 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3678, allocations: 7.938 kB / 0.9549 GB, free: 7.305 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005138/0.3729, allocations: 0.6749 MB / 0.9555 GB, free: 6.629 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/0.3731, allocations: 23.98 kB / 0.9555 GB, free: 6.605 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006221/0.3737, allocations: 293.6 kB / 0.9558 GB, free: 6.309 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.3739, allocations: 83.02 kB / 0.9559 GB, free: 6.227 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.3754, allocations: 481.4 kB / 0.9564 GB, free: 5.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.3755, allocations: 4 kB / 0.9564 GB, free: 5.746 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3755, allocations: 0 / 0.9564 GB, free: 5.746 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3755, allocations: 0 / 0.9564 GB, free: 5.746 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/0.3781, allocations: 1.143 MB / 0.9575 GB, free: 4.535 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.3781, allocations: 7.938 kB / 0.9575 GB, free: 4.527 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.3789, allocations: 103.9 kB / 0.9576 GB, free: 4.426 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.3789, allocations: 0 / 0.9576 GB, free: 4.426 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.379, allocations: 19.92 kB / 0.9576 GB, free: 4.406 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009114/0.3799, allocations: 2.36 MB / 0.9599 GB, free: 1.953 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3799, allocations: 8.266 kB / 0.9599 GB, free: 1.945 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.3812, allocations: 0.5741 MB / 0.9605 GB, free: 1.316 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004418/0.3817, allocations: 211.9 kB / 0.9607 GB, free: 1.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.3818, allocations: 8 kB / 0.9607 GB, free: 1.082 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008095/0.3826, allocations: 51.89 kB / 0.9607 GB, free: 1.031 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3828, allocations: 27.97 kB / 0.9608 GB, free: 1.004 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.3828, allocations: 15.94 kB / 0.9608 GB, free: 0.9883 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0008362/0.3837, allocations: 0.5029 MB / 0.9613 GB, free: 500 kB / 0.6042 GB Notification: Performance of sort global known variables: time 3.4e-07/0.3837, allocations: 0 / 0.9613 GB, free: 500 kB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001797/0.3855, allocations: 463.2 kB / 0.9617 GB, free: 36 kB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/0.3865, allocations: 305.2 kB / 0.962 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.003897/0.3905, allocations: 0.7203 MB / 0.9627 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.3905, allocations: 7.938 kB / 0.9627 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3915, allocations: 204 kB / 0.9629 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003829/0.3954, allocations: 415 kB / 0.9633 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004925/0.4004, allocations: 1.516 MB / 0.9648 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.4018, allocations: 0.9939 MB / 0.9658 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002321/0.4042, allocations: 178 kB / 0.9659 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005349/0.4048, allocations: 67.42 kB / 0.966 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of SimCode: time 1.974e-06/0.4048, allocations: 0 / 0.966 GB, free: 11.59 MB / 0.6198 GB Notification: Performance of Templates: time 0.05723/0.4621, allocations: 19.43 MB / 0.985 GB, free: 8.395 MB / 0.6355 GB