Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 99.28 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 187 kB / 17.2 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.414/1.414, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.773/1.773, allocations: 292.3 MB / 0.5495 GB, free: 17.53 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 71.91 kB / 0.6722 GB, free: 6.523 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2793, allocations: 114.6 MB / 0.784 GB, free: 3.852 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.389/0.6683, allocations: 30.21 MB / 0.8135 GB, free: 31.2 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.01599/0.6843, allocations: 11.53 MB / 0.8248 GB, free: 23.4 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002101/0.6865, allocations: 43.66 kB / 0.8248 GB, free: 23.38 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.688, allocations: 426.7 kB / 0.8252 GB, free: 23.11 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.004712/0.6927, allocations: 1.379 MB / 0.8266 GB, free: 22.32 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.6964, allocations: 1.132 MB / 0.8277 GB, free: 21.78 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.004985/0.7014, allocations: 3.507 MB / 0.8311 GB, free: 20.36 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002667/0.7041, allocations: 1.326 MB / 0.8324 GB, free: 19.95 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004076/0.7082, allocations: 1.646 MB / 0.834 GB, free: 19.38 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004495/0.7128, allocations: 1.632 MB / 0.8356 GB, free: 18.88 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001289/0.7141, allocations: 124.7 kB / 0.8357 GB, free: 18.88 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003809/0.7179, allocations: 1.018 MB / 0.8367 GB, free: 18.58 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.7193, allocations: 407.5 kB / 0.8371 GB, free: 18.38 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002668/0.7219, allocations: 0.7393 MB / 0.8378 GB, free: 17.99 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.005336/0.7273, allocations: 2.177 MB / 0.84 GB, free: 17.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.7273, allocations: 5.188 kB / 0.84 GB, free: 17.27 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.983e-06/0.7273, allocations: 0 / 0.84 GB, free: 17.27 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.358e-05/0.7274, allocations: 0 / 0.84 GB, free: 17.27 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005285/0.7327, allocations: 1.649 MB / 0.8416 GB, free: 16.24 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.7328, allocations: 10.19 kB / 0.8416 GB, free: 16.24 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006496/0.7335, allocations: 146.7 kB / 0.8417 GB, free: 16.18 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.7354, allocations: 0.8956 MB / 0.8426 GB, free: 15.67 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/0.7355, allocations: 80.28 kB / 0.8427 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002199/0.7357, allocations: 117.3 kB / 0.8428 GB, free: 15.61 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.7369, allocations: 0.6375 MB / 0.8434 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.7369, allocations: 1.469 kB / 0.8434 GB, free: 15.32 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.7369, allocations: 23.66 kB / 0.8434 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.737, allocations: 17.69 kB / 0.8435 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008876/0.7379, allocations: 468.6 kB / 0.8439 GB, free: 15.15 MB / 0.6544 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.00537/0.7432, allocations: 2.885 MB / 0.8467 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.7438, allocations: 304.2 kB / 0.847 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/0.7441, allocations: 147.6 kB / 0.8472 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002197/0.7444, allocations: 338.2 kB / 0.8475 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.7444, allocations: 45.38 kB / 0.8475 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.434e-06/0.7444, allocations: 0 / 0.8475 GB, free: 12.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001683/0.7461, allocations: 0.5233 MB / 0.848 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.7461, allocations: 54.59 kB / 0.8481 GB, free: 12.47 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.7473, allocations: 0.8904 MB / 0.849 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000343/0.7476, allocations: 57.52 kB / 0.849 GB, free: 12.05 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004059/0.748, allocations: 0.5337 MB / 0.8495 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 8.349e-05/0.7481, allocations: 114.9 kB / 0.8496 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003837/0.7485, allocations: 292.4 kB / 0.8499 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.974e-05/0.7486, allocations: 327.5 kB / 0.8502 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.7489, allocations: 198.9 kB / 0.8504 GB, free: 11 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.75, allocations: 1.143 MB / 0.8515 GB, free: 9.777 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007468/0.7508, allocations: 459.3 kB / 0.852 GB, free: 9.512 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.7508, allocations: 1.156 kB / 0.852 GB, free: 9.512 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001483/0.7523, allocations: 0.6514 MB / 0.8526 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.7523, allocations: 5.719 kB / 0.8526 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.7523, allocations: 4.406 kB / 0.8526 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.7524, allocations: 8.562 kB / 0.8526 GB, free: 9.199 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.7538, allocations: 238.3 kB / 0.8529 GB, free: 9.133 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.7549, allocations: 2.956 MB / 0.8557 GB, free: 6.133 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/0.7586, allocations: 0.7027 MB / 0.8564 GB, free: 5.805 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.7587, allocations: 27.86 kB / 0.8565 GB, free: 5.797 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008983/0.7596, allocations: 375.8 kB / 0.8568 GB, free: 5.574 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001088/0.7607, allocations: 1.152 MB / 0.8579 GB, free: 4.328 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007467/0.7615, allocations: 463.2 kB / 0.8584 GB, free: 4.043 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/0.7615, allocations: 1.031 kB / 0.8584 GB, free: 4.043 MB / 0.6544 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001591/0.7631, allocations: 0.6468 MB / 0.859 GB, free: 3.746 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.7631, allocations: 11.44 kB / 0.859 GB, free: 3.742 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7631, allocations: 2.562 kB / 0.859 GB, free: 3.742 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.814e-06/0.7631, allocations: 5.875 kB / 0.859 GB, free: 3.742 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006564/0.7638, allocations: 159.5 kB / 0.8592 GB, free: 3.703 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.7638, allocations: 11.47 kB / 0.8592 GB, free: 3.699 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004629/0.7685, allocations: 0.9605 MB / 0.8601 GB, free: 3.277 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.7686, allocations: 30.67 kB / 0.8602 GB, free: 3.266 MB / 0.6544 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003417/0.769, allocations: 237.4 kB / 0.8604 GB, free: 3.051 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/0.7693, allocations: 95.09 kB / 0.8605 GB, free: 3 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.7705, allocations: 0.5114 MB / 0.861 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.7706, allocations: 3.938 kB / 0.861 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.7706, allocations: 0 / 0.861 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.7706, allocations: 5.297 kB / 0.861 GB, free: 2.719 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.7726, allocations: 1.258 MB / 0.8622 GB, free: 1.801 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.7726, allocations: 5.531 kB / 0.8622 GB, free: 1.797 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.7732, allocations: 119.1 kB / 0.8623 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.7732, allocations: 2.438 kB / 0.8623 GB, free: 1.77 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.781e-05/0.7733, allocations: 12.84 kB / 0.8623 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.7744, allocations: 2.942 MB / 0.8652 GB, free: 14.77 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7744, allocations: 1.312 kB / 0.8652 GB, free: 14.77 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.7755, allocations: 0.5636 MB / 0.8658 GB, free: 14.4 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003624/0.7758, allocations: 208 kB / 0.866 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.776, allocations: 10.83 kB / 0.866 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004583/0.7764, allocations: 39.53 kB / 0.866 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.7765, allocations: 21.25 kB / 0.866 GB, free: 14.17 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.7766, allocations: 20.2 kB / 0.8661 GB, free: 14.16 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008321/0.7774, allocations: 0.5942 MB / 0.8666 GB, free: 13.82 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7774, allocations: 0 / 0.8666 GB, free: 13.82 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002165/0.7796, allocations: 0.538 MB / 0.8672 GB, free: 13.7 MB / 0.67 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000863/0.7805, allocations: 319 kB / 0.8675 GB, free: 13.52 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003068/0.7835, allocations: 0.8695 MB / 0.8683 GB, free: 13.17 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.7836, allocations: 1.438 kB / 0.8683 GB, free: 13.17 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.000614/0.7842, allocations: 229.7 kB / 0.8685 GB, free: 13.08 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/0.7865, allocations: 425.7 kB / 0.8689 GB, free: 12.89 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.7893, allocations: 1.562 MB / 0.8705 GB, free: 11.92 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006349/0.79, allocations: 1.024 MB / 0.8715 GB, free: 11.07 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002721/0.7902, allocations: 84.16 kB / 0.8715 GB, free: 11.05 MB / 0.67 GB Notification: Performance of SimCode: time 9.52e-07/0.7903, allocations: 0 / 0.8715 GB, free: 11.05 MB / 0.67 GB Notification: Performance of Templates: time 0.04468/0.8349, allocations: 36.18 MB / 0.9069 GB, free: 11.99 MB / 0.7012 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)