Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.829/1.829, allocations: 287.4 MB / 302.6 MB, free: 8.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001282/0.001282, allocations: 186 kB / 371.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.4 MB / 0.6298 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007883/0.0007884, allocations: 103 kB / 0.7431 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 11.78 kB / 0.8662 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2329, allocations: 115.3 MB / 0.9787 GB, free: 28.08 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5243/0.7572, allocations: 104.6 MB / 1.081 GB, free: 30.5 MB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.03342/0.7907, allocations: 22.79 MB / 1.103 GB, free: 30.04 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005171/0.7959, allocations: 105.2 kB / 1.103 GB, free: 30.04 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.003763/0.7997, allocations: 0.8857 MB / 1.104 GB, free: 30.02 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.01115/0.8109, allocations: 2.842 MB / 1.107 GB, free: 29.35 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.008357/0.8193, allocations: 2.337 MB / 1.109 GB, free: 28.97 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01266/0.8319, allocations: 8.105 MB / 1.117 GB, free: 25.8 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003733/0.8357, allocations: 2.034 MB / 1.119 GB, free: 24.99 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00549/0.8412, allocations: 2.216 MB / 1.121 GB, free: 24.18 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005019/0.8463, allocations: 1.892 MB / 1.123 GB, free: 23.59 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0008296/0.8472, allocations: 88.62 kB / 1.123 GB, free: 23.59 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005016/0.8522, allocations: 1.136 MB / 1.124 GB, free: 23.29 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0008264/0.853, allocations: 495.1 kB / 1.125 GB, free: 23.07 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.8546, allocations: 0.5551 MB / 1.125 GB, free: 22.75 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.004995/0.8596, allocations: 3.239 MB / 1.128 GB, free: 21.69 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.8596, allocations: 4 kB / 1.128 GB, free: 21.68 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8596, allocations: 0 / 1.128 GB, free: 21.68 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.172e-05/0.8597, allocations: 0 / 1.128 GB, free: 21.68 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004625/0.8643, allocations: 2.646 MB / 1.131 GB, free: 19.76 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.8644, allocations: 11.8 kB / 1.131 GB, free: 19.76 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002582/0.8647, allocations: 225.2 kB / 1.131 GB, free: 19.58 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00066/0.8653, allocations: 324.3 kB / 1.132 GB, free: 19.41 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003354/0.8687, allocations: 2.109 MB / 1.134 GB, free: 17.87 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.8689, allocations: 127.3 kB / 1.134 GB, free: 17.82 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002701/0.8691, allocations: 176.6 kB / 1.134 GB, free: 17.75 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002989/0.8721, allocations: 1.603 MB / 1.135 GB, free: 16.75 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.8722, allocations: 1.062 kB / 1.135 GB, free: 16.75 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.8723, allocations: 67.28 kB / 1.136 GB, free: 16.7 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.768e-05/0.8724, allocations: 38.41 kB / 1.136 GB, free: 16.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.8745, allocations: 1.145 MB / 1.137 GB, free: 16.12 MB / 0.6823 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.01057/0.8851, allocations: 7.893 MB / 1.144 GB, free: 9.441 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008912/0.886, allocations: 486.4 kB / 1.145 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005969/0.8866, allocations: 326.3 kB / 1.145 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005058/0.8871, allocations: 0.7532 MB / 1.146 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.8872, allocations: 46.47 kB / 1.146 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=60): time 3.306e-06/0.8872, allocations: 1.031 kB / 1.146 GB, free: 8.117 MB / 0.6823 GB Notification: Performance of matching and sorting (n=60): time 0.002218/0.8894, allocations: 0.9908 MB / 1.147 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.8894, allocations: 62.22 kB / 1.147 GB, free: 7.555 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003017/0.8925, allocations: 2.238 MB / 1.149 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001594/0.8926, allocations: 50.52 kB / 1.149 GB, free: 6.309 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007666/0.8934, allocations: 1.142 MB / 1.15 GB, free: 5.309 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.8936, allocations: 212.8 kB / 1.151 GB, free: 5.129 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.8936, allocations: 25.12 kB / 1.151 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.8937, allocations: 344.1 kB / 1.151 GB, free: 4.777 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005567/0.8943, allocations: 352.1 kB / 1.151 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000725/0.895, allocations: 0.7352 MB / 1.152 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.8962, allocations: 0.9682 MB / 1.153 GB, free: 3.238 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.8962, allocations: 3.938 kB / 1.153 GB, free: 3.234 MB / 0.6823 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002145/0.8983, allocations: 1.268 MB / 1.154 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000153/0.8985, allocations: 340.1 kB / 1.154 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.8985, allocations: 10.86 kB / 1.154 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.054e-05/0.8986, allocations: 15.06 kB / 1.154 GB, free: 2.18 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.8996, allocations: 262.9 kB / 1.155 GB, free: 2.113 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.8996, allocations: 19.06 kB / 1.155 GB, free: 2.109 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002527/0.9022, allocations: 255.5 kB / 1.155 GB, free: 1.957 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.9024, allocations: 59.77 kB / 1.155 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.9024, allocations: 2.531 kB / 1.155 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001934/0.9043, allocations: 1.021 MB / 1.156 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.9044, allocations: 12.16 kB / 1.156 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.9044, allocations: 15.12 kB / 1.156 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009115/0.9053, allocations: 249 kB / 1.156 GB, free: 1.391 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.9054, allocations: 17.16 kB / 1.156 GB, free: 1.387 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/0.908, allocations: 224.3 kB / 1.157 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.952e-05/0.9081, allocations: 50.3 kB / 1.157 GB, free: 1.25 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.9096, allocations: 0.579 MB / 1.157 GB, free: 0.8164 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005656/0.9101, allocations: 238 kB / 1.157 GB, free: 0.6875 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.9117, allocations: 0.8918 MB / 1.158 GB, free: 184 kB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/0.9118, allocations: 11.19 kB / 1.158 GB, free: 180 kB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.9118, allocations: 0 / 1.158 GB, free: 180 kB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001024/0.9128, allocations: 0.7008 MB / 1.159 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.9174, allocations: 2.554 MB / 1.161 GB, free: 14.02 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.9174, allocations: 3.984 kB / 1.161 GB, free: 14.02 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005215/0.918, allocations: 122.5 kB / 1.162 GB, free: 14 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.918, allocations: 3.25 kB / 1.162 GB, free: 14 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.918, allocations: 18.64 kB / 1.162 GB, free: 13.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.404e-06/0.9181, allocations: 7.312 kB / 1.162 GB, free: 13.98 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.9181, allocations: 0 / 1.162 GB, free: 13.98 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.9202, allocations: 1.325 MB / 1.163 GB, free: 13.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.9214, allocations: 443.7 kB / 1.163 GB, free: 12.83 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.9216, allocations: 11.31 kB / 1.163 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.9227, allocations: 120.6 kB / 1.163 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.9228, allocations: 47.31 kB / 1.163 GB, free: 12.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-05/0.9229, allocations: 38.34 kB / 1.164 GB, free: 12.72 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.002188/0.9251, allocations: 1.492 MB / 1.165 GB, free: 11.91 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.81e-07/0.9251, allocations: 0 / 1.165 GB, free: 11.91 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002919/0.928, allocations: 1.095 MB / 1.166 GB, free: 11.09 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003509/0.9315, allocations: 2.478 MB / 1.168 GB, free: 8.762 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002535/0.9341, allocations: 1.347 MB / 1.17 GB, free: 7.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.9341, allocations: 4 kB / 1.17 GB, free: 7.426 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000504/0.9346, allocations: 327 kB / 1.17 GB, free: 7.102 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00734/0.942, allocations: 1.376 MB / 1.171 GB, free: 5.738 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02802/0.97, allocations: 13.53 MB / 1.185 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.9713, allocations: 1.582 MB / 1.186 GB, free: 5.414 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002408/0.9737, allocations: 494.7 kB / 1.187 GB, free: 4.926 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/0.9748, allocations: 0.9444 MB / 1.188 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of SimCode: time 9.12e-07/0.9748, allocations: 0 / 1.188 GB, free: 3.98 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/1.082, allocations: 64.98 MB / 1.251 GB, free: 3.551 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/1.082, allocations: 241.2 kB / 1.251 GB, free: 3.305 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.049/5.131, allocations: 3.938 kB / 1.251 GB, free: 3.301 MB / 0.7761 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)