Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001337/0.001342, allocations: 108 kB / 15.61 MB, free: 152 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.001582/0.001582, allocations: 194.8 kB / 16.53 MB, free: 6.664 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 472.6 MB / 0.7451 GB, free: 4.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 60.05 kB / 0.912 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3605, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03466/0.3952, allocations: 29.82 MB / 1.097 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01427/0.4095, allocations: 8.14 MB / 1.105 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.4114, allocations: 31.81 kB / 1.105 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.413, allocations: 424.9 kB / 1.106 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004667/0.4178, allocations: 1.379 MB / 1.107 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.421, allocations: 1.121 MB / 1.108 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004517/0.4255, allocations: 3.536 MB / 1.112 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00237/0.4279, allocations: 1.341 MB / 1.113 GB, free: 12.47 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003339/0.4313, allocations: 1.675 MB / 1.115 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003547/0.4348, allocations: 1.636 MB / 1.116 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0008403/0.4357, allocations: 124 kB / 1.116 GB, free: 9.027 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.4386, allocations: 1.018 MB / 1.117 GB, free: 8.008 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0009022/0.4395, allocations: 398.7 kB / 1.118 GB, free: 7.617 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001933/0.4414, allocations: 0.7544 MB / 1.118 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004148/0.4456, allocations: 2.177 MB / 1.12 GB, free: 4.676 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4456, allocations: 4 kB / 1.12 GB, free: 4.672 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.445e-06/0.4456, allocations: 0 / 1.12 GB, free: 4.672 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.982e-05/0.4457, allocations: 3.938 kB / 1.12 GB, free: 4.668 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.004096/0.4498, allocations: 1.675 MB / 1.122 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.4499, allocations: 8.031 kB / 1.122 GB, free: 2.934 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006167/0.4505, allocations: 147.4 kB / 1.122 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00213/0.4526, allocations: 0.9025 MB / 1.123 GB, free: 1.828 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.563e-05/0.4527, allocations: 77.31 kB / 1.123 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000281/0.453, allocations: 116 kB / 1.123 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.4543, allocations: 0.6395 MB / 1.124 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.4543, allocations: 4 kB / 1.124 GB, free: 0.9688 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.003e-05/0.4544, allocations: 20 kB / 1.124 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.4544, allocations: 16 kB / 1.124 GB, free: 0.9336 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.4554, allocations: 464.9 kB / 1.124 GB, free: 492 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.004977/0.4604, allocations: 2.895 MB / 1.127 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006203/0.461, allocations: 308.2 kB / 1.128 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.4613, allocations: 145.4 kB / 1.128 GB, free: 12.98 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003736/0.4617, allocations: 348.7 kB / 1.128 GB, free: 12.56 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/0.4618, allocations: 42.78 kB / 1.128 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.4618, allocations: 0 / 1.128 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of matching and sorting (n=33): time 0.001404/0.4632, allocations: 0.5291 MB / 1.129 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4632, allocations: 51.41 kB / 1.129 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.4643, allocations: 0.9113 MB / 1.13 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.4644, allocations: 57.7 kB / 1.13 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005439/0.465, allocations: 0.5338 MB / 1.13 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.792e-05/0.4651, allocations: 110.5 kB / 1.13 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003927/0.4655, allocations: 290.9 kB / 1.13 GB, free: 9.98 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4657, allocations: 338.1 kB / 1.131 GB, free: 9.645 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004261/0.4661, allocations: 193.4 kB / 1.131 GB, free: 9.453 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.4677, allocations: 1.147 MB / 1.132 GB, free: 7.941 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008211/0.4685, allocations: 459.4 kB / 1.133 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4685, allocations: 0 / 1.133 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001302/0.4698, allocations: 0.6462 MB / 1.133 GB, free: 6.82 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.4698, allocations: 12.19 kB / 1.133 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4699, allocations: 3.984 kB / 1.133 GB, free: 6.805 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.468e-05/0.4699, allocations: 4 kB / 1.133 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4713, allocations: 243.5 kB / 1.133 GB, free: 6.562 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.4731, allocations: 2.957 MB / 1.136 GB, free: 3.488 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/0.4765, allocations: 0.7026 MB / 1.137 GB, free: 2.785 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.4766, allocations: 31.98 kB / 1.137 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007788/0.4774, allocations: 365.3 kB / 1.137 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00148/0.4789, allocations: 1.158 MB / 1.139 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008/0.4797, allocations: 456.9 kB / 1.139 GB, free: 376 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.453e-06/0.4797, allocations: 3.938 kB / 1.139 GB, free: 372 kB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001484/0.4812, allocations: 0.659 MB / 1.14 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.4812, allocations: 8 kB / 1.14 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.4812, allocations: 0 / 1.14 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.298e-06/0.4812, allocations: 8.312 kB / 1.14 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.4819, allocations: 163.8 kB / 1.14 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.4819, allocations: 7.938 kB / 1.14 GB, free: 15.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004276/0.4862, allocations: 0.9574 MB / 1.141 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.4863, allocations: 27.98 kB / 1.141 GB, free: 14.52 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.0002808/0.4866, allocations: 241.1 kB / 1.141 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.4867, allocations: 98.69 kB / 1.141 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001172/0.4879, allocations: 0.5049 MB / 1.142 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.4879, allocations: 4 kB / 1.142 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4879, allocations: 0 / 1.142 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.488, allocations: 3.984 kB / 1.142 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.4902, allocations: 1.258 MB / 1.143 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.4902, allocations: 0 / 1.143 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005318/0.4907, allocations: 115.8 kB / 1.143 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.4907, allocations: 4 kB / 1.143 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.4908, allocations: 15.98 kB / 1.143 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001734/0.4925, allocations: 2.942 MB / 1.146 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.752e-05/0.4925, allocations: 7.969 kB / 1.146 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009759/0.4935, allocations: 0.5578 MB / 1.146 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003509/0.4939, allocations: 223.6 kB / 1.147 GB, free: 8.316 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.494, allocations: 11.98 kB / 1.147 GB, free: 8.305 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.4945, allocations: 23.97 kB / 1.147 GB, free: 8.281 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.303e-05/0.4946, allocations: 27.91 kB / 1.147 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.4947, allocations: 19.98 kB / 1.147 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008465/0.4955, allocations: 0.6084 MB / 1.147 GB, free: 7.617 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4955, allocations: 0 / 1.147 GB, free: 7.617 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001714/0.4972, allocations: 0.5343 MB / 1.148 GB, free: 7.082 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.001097/0.4983, allocations: 341.9 kB / 1.148 GB, free: 6.746 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003013/0.5014, allocations: 0.8667 MB / 1.149 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5014, allocations: 0 / 1.149 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006182/0.502, allocations: 219.8 kB / 1.149 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.504, allocations: 415 kB / 1.15 GB, free: 5.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.5067, allocations: 1.539 MB / 1.151 GB, free: 3.691 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006807/0.5074, allocations: 1.025 MB / 1.152 GB, free: 2.637 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0011/0.5085, allocations: 214.9 kB / 1.152 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.5087, allocations: 75.42 kB / 1.152 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of SimCode: time 6.21e-07/0.5087, allocations: 0 / 1.152 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of Templates: time 0.0457/0.5544, allocations: 24.89 MB / 1.177 GB, free: 9.91 MB / 0.9356 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)