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.001218/0.001219, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002168/0.002168, allocations: 192.2 kB / 16.13 MB, free: 6.711 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.44/1.44, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.095/3.095, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 69.5 kB / 0.9113 GB, free: 33.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3483, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.0457/0.394, allocations: 29.67 MB / 1.096 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01248/0.4066, allocations: 8.213 MB / 1.104 GB, free: 4.906 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001651/0.4083, allocations: 31.75 kB / 1.105 GB, free: 4.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001637/0.41, allocations: 346 kB / 1.105 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005603/0.4156, allocations: 1.236 MB / 1.106 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003473/0.4191, allocations: 1.025 MB / 1.107 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006017/0.4251, allocations: 4.206 MB / 1.111 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002443/0.4276, allocations: 1.18 MB / 1.112 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003666/0.4313, allocations: 1.511 MB / 1.114 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003503/0.4348, allocations: 1.612 MB / 1.115 GB, free: 9.734 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0008836/0.4357, allocations: 72 kB / 1.115 GB, free: 9.664 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003056/0.4387, allocations: 0.9436 MB / 1.116 GB, free: 8.719 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.4399, allocations: 354.7 kB / 1.117 GB, free: 8.371 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.002611/0.4425, allocations: 0.692 MB / 1.117 GB, free: 7.676 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00464/0.4472, allocations: 2.127 MB / 1.119 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4472, allocations: 0 / 1.119 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4472, allocations: 0 / 1.119 GB, free: 5.543 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.975e-05/0.4473, allocations: 0 / 1.119 GB, free: 5.543 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.004897/0.4522, allocations: 1.667 MB / 1.121 GB, free: 3.82 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.4522, allocations: 8.031 kB / 1.121 GB, free: 3.812 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004856/0.4527, allocations: 159.4 kB / 1.121 GB, free: 3.656 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.4545, allocations: 0.8908 MB / 1.122 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/0.4546, allocations: 85.31 kB / 1.122 GB, free: 2.625 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002179/0.4548, allocations: 116 kB / 1.122 GB, free: 2.512 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.456, allocations: 0.6356 MB / 1.123 GB, free: 1.848 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.456, allocations: 0 / 1.123 GB, free: 1.848 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.4561, allocations: 24 kB / 1.123 GB, free: 1.824 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.4561, allocations: 16 kB / 1.123 GB, free: 1.809 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008966/0.457, allocations: 468.8 kB / 1.123 GB, free: 1.348 MB / 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.004654/0.4617, allocations: 2.863 MB / 1.126 GB, free: 14.33 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.4623, allocations: 310.6 kB / 1.127 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.4626, allocations: 157.3 kB / 1.127 GB, free: 13.87 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000352/0.463, allocations: 344.7 kB / 1.127 GB, free: 13.46 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.463, allocations: 46.7 kB / 1.127 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=33): time 1.703e-06/0.463, allocations: 0 / 1.127 GB, free: 13.4 MB / 0.8887 GB Notification: Performance of matching and sorting (n=33): time 0.001294/0.4643, allocations: 0.5213 MB / 1.128 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.4644, allocations: 63.39 kB / 1.128 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.4654, allocations: 0.9113 MB / 1.128 GB, free: 11.87 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.4655, allocations: 57.7 kB / 1.129 GB, free: 11.81 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004768/0.466, allocations: 0.5303 MB / 1.129 GB, free: 11.27 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 8.332e-05/0.4661, allocations: 110.4 kB / 1.129 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004089/0.4665, allocations: 290.9 kB / 1.129 GB, free: 10.87 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4667, allocations: 338.1 kB / 1.13 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.4671, allocations: 193.4 kB / 1.13 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.4685, allocations: 1.151 MB / 1.131 GB, free: 8.828 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008326/0.4693, allocations: 459.4 kB / 1.132 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4693, allocations: 0 / 1.132 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001335/0.4707, allocations: 0.6501 MB / 1.132 GB, free: 7.699 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.4707, allocations: 4 kB / 1.132 GB, free: 7.695 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.4707, allocations: 4 kB / 1.132 GB, free: 7.691 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.4707, allocations: 4.188 kB / 1.132 GB, free: 7.688 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.4722, allocations: 231.7 kB / 1.132 GB, free: 7.461 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.4739, allocations: 2.958 MB / 1.135 GB, free: 4.387 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/0.4772, allocations: 0.7298 MB / 1.136 GB, free: 3.656 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.4772, allocations: 24 kB / 1.136 GB, free: 3.633 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008255/0.4781, allocations: 365.3 kB / 1.136 GB, free: 3.273 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001479/0.4796, allocations: 1.158 MB / 1.137 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000871/0.4804, allocations: 464.8 kB / 1.138 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.734e-06/0.4805, allocations: 7.938 kB / 1.138 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001639/0.4821, allocations: 0.6511 MB / 1.139 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4821, allocations: 11.94 kB / 1.139 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.4822, allocations: 4 kB / 1.139 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.4822, allocations: 4 kB / 1.139 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007028/0.4829, allocations: 155.8 kB / 1.139 GB, free: 412 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.4829, allocations: 7.984 kB / 1.139 GB, free: 404 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004453/0.4874, allocations: 0.9927 MB / 1.14 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.527e-05/0.4875, allocations: 24 kB / 1.14 GB, free: 15.37 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.0003714/0.4878, allocations: 249 kB / 1.14 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002624/0.4881, allocations: 94.78 kB / 1.14 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.4895, allocations: 0.5088 MB / 1.141 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.4895, allocations: 7.938 kB / 1.141 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.4895, allocations: 0 / 1.141 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4896, allocations: 0 / 1.141 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002932/0.4925, allocations: 1.258 MB / 1.142 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.74e-05/0.4925, allocations: 8 kB / 1.142 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005908/0.4931, allocations: 123.8 kB / 1.142 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.4931, allocations: 0 / 1.142 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.4932, allocations: 16 kB / 1.142 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/0.4953, allocations: 2.942 MB / 1.145 GB, free: 9.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.4953, allocations: 7.969 kB / 1.145 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.4963, allocations: 0.5618 MB / 1.145 GB, free: 9.383 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.4968, allocations: 215.7 kB / 1.146 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.497, allocations: 8 kB / 1.146 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006284/0.4976, allocations: 55.84 kB / 1.146 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.4977, allocations: 27.91 kB / 1.146 GB, free: 9.062 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.4978, allocations: 15.98 kB / 1.146 GB, free: 9.047 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001015/0.4988, allocations: 0.6123 MB / 1.146 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.21e-07/0.4988, allocations: 0 / 1.146 GB, free: 8.426 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002777/0.5016, allocations: 0.5381 MB / 1.147 GB, free: 7.887 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.001495/0.5031, allocations: 326.1 kB / 1.147 GB, free: 7.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003618/0.5067, allocations: 0.8355 MB / 1.148 GB, free: 6.738 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.5067, allocations: 4.062 kB / 1.148 GB, free: 6.734 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006708/0.5074, allocations: 235.7 kB / 1.148 GB, free: 6.504 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003445/0.5109, allocations: 474 kB / 1.149 GB, free: 6.039 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004814/0.5157, allocations: 1.857 MB / 1.15 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.5169, allocations: 1.029 MB / 1.151 GB, free: 3.082 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001998/0.5189, allocations: 206.9 kB / 1.152 GB, free: 2.875 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/0.5193, allocations: 83.41 kB / 1.152 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of SimCode: time 2.685e-06/0.5194, allocations: 0 / 1.152 GB, free: 2.793 MB / 0.9044 GB Notification: Performance of Templates: time 0.04657/0.5659, allocations: 24.52 MB / 1.176 GB, free: 10.7 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)