Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 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_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001526/0.001526, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00178/0.00178, allocations: 192.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001416, allocations: 64.98 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3621, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03549/0.3977, allocations: 29.82 MB / 1.097 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01281/0.4105, allocations: 8.148 MB / 1.105 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.4125, allocations: 31.75 kB / 1.105 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.4143, allocations: 428.9 kB / 1.106 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.00469/0.419, allocations: 1.375 MB / 1.107 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003408/0.4224, allocations: 1.122 MB / 1.108 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004615/0.427, allocations: 3.532 MB / 1.112 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002351/0.4294, allocations: 1.341 MB / 1.113 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00341/0.4328, allocations: 1.671 MB / 1.115 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003364/0.4362, allocations: 1.632 MB / 1.116 GB, free: 9.125 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0007996/0.437, allocations: 124 kB / 1.116 GB, free: 9.004 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002909/0.44, allocations: 1.018 MB / 1.117 GB, free: 7.984 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009/0.4409, allocations: 410.7 kB / 1.118 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001816/0.4427, allocations: 0.7466 MB / 1.118 GB, free: 6.832 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.4479, allocations: 2.178 MB / 1.12 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4479, allocations: 0 / 1.12 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.225e-06/0.4479, allocations: 0 / 1.12 GB, free: 4.648 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001075/0.448, allocations: 0 / 1.12 GB, free: 4.648 MB / 0.8731 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.005114/0.4531, allocations: 1.671 MB / 1.122 GB, free: 2.926 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4532, allocations: 12.02 kB / 1.122 GB, free: 2.914 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006738/0.4539, allocations: 155.4 kB / 1.122 GB, free: 2.762 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002036/0.4559, allocations: 0.8908 MB / 1.123 GB, free: 1.812 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.368e-05/0.456, allocations: 89.3 kB / 1.123 GB, free: 1.727 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00022/0.4562, allocations: 116 kB / 1.123 GB, free: 1.613 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.4573, allocations: 0.6395 MB / 1.124 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.4573, allocations: 0 / 1.124 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.4574, allocations: 20 kB / 1.124 GB, free: 0.9258 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.4574, allocations: 19.94 kB / 1.124 GB, free: 0.9062 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.4583, allocations: 464.8 kB / 1.124 GB, free: 464 kB / 0.8731 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.005539/0.4639, allocations: 2.891 MB / 1.127 GB, free: 13.41 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006287/0.4645, allocations: 308 kB / 1.128 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.4649, allocations: 153.3 kB / 1.128 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.4652, allocations: 340.7 kB / 1.128 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.4652, allocations: 38.84 kB / 1.128 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=33): time 2.524e-06/0.4653, allocations: 0 / 1.128 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of matching and sorting (n=33): time 0.001409/0.4667, allocations: 0.529 MB / 1.129 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.4667, allocations: 59.41 kB / 1.129 GB, free: 11.89 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.4678, allocations: 0.9074 MB / 1.13 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.468, allocations: 57.7 kB / 1.13 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004974/0.4685, allocations: 0.5455 MB / 1.13 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.4686, allocations: 106.4 kB / 1.13 GB, free: 10.24 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004157/0.469, allocations: 290.9 kB / 1.13 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4692, allocations: 342 kB / 1.131 GB, free: 9.609 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.4696, allocations: 193.4 kB / 1.131 GB, free: 9.418 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.4709, allocations: 1.147 MB / 1.132 GB, free: 7.906 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008392/0.4718, allocations: 455.4 kB / 1.133 GB, free: 7.441 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4718, allocations: 0 / 1.133 GB, free: 7.441 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001562/0.4734, allocations: 0.654 MB / 1.133 GB, free: 6.781 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.4734, allocations: 7.984 kB / 1.133 GB, free: 6.773 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4734, allocations: 4 kB / 1.133 GB, free: 6.77 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.4735, allocations: 4.188 kB / 1.133 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.475, allocations: 231.7 kB / 1.133 GB, free: 6.539 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.4768, allocations: 2.961 MB / 1.136 GB, free: 3.461 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003408/0.4802, allocations: 0.6986 MB / 1.137 GB, free: 2.762 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-05/0.4803, allocations: 27.98 kB / 1.137 GB, free: 2.734 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000834/0.4812, allocations: 369.3 kB / 1.137 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001535/0.4827, allocations: 1.158 MB / 1.139 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008644/0.4836, allocations: 452.9 kB / 1.139 GB, free: 356 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.945e-06/0.4836, allocations: 7.938 kB / 1.139 GB, free: 348 kB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001604/0.4852, allocations: 0.6548 MB / 1.14 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4853, allocations: 9.719 kB / 1.14 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4853, allocations: 7.938 kB / 1.14 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.4853, allocations: 4 kB / 1.14 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.486, allocations: 155.8 kB / 1.14 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.486, allocations: 8.297 kB / 1.14 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004633/0.4906, allocations: 0.9613 MB / 1.141 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.985e-05/0.4907, allocations: 27.98 kB / 1.141 GB, free: 14.51 MB / 0.9044 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.0003922/0.4911, allocations: 241.1 kB / 1.141 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.4915, allocations: 98.69 kB / 1.141 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.4931, allocations: 0.5125 MB / 1.142 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.4932, allocations: 8 kB / 1.142 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.4932, allocations: 0 / 1.142 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4932, allocations: 8 kB / 1.142 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003024/0.4962, allocations: 1.247 MB / 1.143 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.4963, allocations: 4 kB / 1.143 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005924/0.4969, allocations: 127.9 kB / 1.143 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.238e-05/0.4969, allocations: 0 / 1.143 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.4969, allocations: 16 kB / 1.143 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.4993, allocations: 2.938 MB / 1.146 GB, free: 9.121 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.138e-05/0.4993, allocations: 8.156 kB / 1.146 GB, free: 9.113 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.5005, allocations: 0.5616 MB / 1.146 GB, free: 8.523 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.501, allocations: 223.7 kB / 1.147 GB, free: 8.285 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/0.5013, allocations: 8 kB / 1.147 GB, free: 8.277 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005671/0.5018, allocations: 27.95 kB / 1.147 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.5019, allocations: 35.84 kB / 1.147 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.502, allocations: 12 kB / 1.147 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001013/0.503, allocations: 0.6084 MB / 1.147 GB, free: 7.586 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.61e-07/0.503, allocations: 4 kB / 1.147 GB, free: 7.582 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002092/0.5051, allocations: 0.5382 MB / 1.148 GB, free: 7.043 MB / 0.9044 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.0009802/0.5061, allocations: 328.6 kB / 1.148 GB, free: 6.719 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002968/0.5091, allocations: 0.8584 MB / 1.149 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5091, allocations: 0.625 kB / 1.149 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007064/0.5098, allocations: 235.7 kB / 1.149 GB, free: 5.633 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.512, allocations: 408.6 kB / 1.15 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.5152, allocations: 1.538 MB / 1.151 GB, free: 3.664 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000796/0.516, allocations: 1.021 MB / 1.152 GB, free: 2.613 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001284/0.5173, allocations: 206.8 kB / 1.152 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.5175, allocations: 83.41 kB / 1.152 GB, free: 2.324 MB / 0.9044 GB Notification: Performance of SimCode: time 6.41e-07/0.5175, allocations: 4 kB / 1.152 GB, free: 2.32 MB / 0.9044 GB Notification: Performance of Templates: time 0.04842/0.5659, allocations: 24.89 MB / 1.177 GB, free: 9.883 MB / 0.9356 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)