Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 387.1 MB / 399.7 MB, free: 9.434 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001059, allocations: 183.1 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.597/1.597, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 102.7 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.397e-05/4.467e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3025, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.623, allocations: 431.1 MB / 1.633 GB, free: 15.46 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/1.623, allocations: 99.14 kB / 1.634 GB, free: 15.41 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.826/5.449, allocations: 0.9943 GB / 2.628 GB, free: 15.46 MB / 1.167 GB Notification: Performance of FrontEnd: time 5.791e-06/5.449, allocations: 0 / 2.628 GB, free: 15.46 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000923/5.45, allocations: 87.97 kB / 2.628 GB, free: 15.38 MB / 1.167 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.01155/5.462, allocations: 2.56 MB / 2.63 GB, free: 12.76 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 7.824e-05/5.462, allocations: 8.031 kB / 2.63 GB, free: 12.75 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001228/5.463, allocations: 223.5 kB / 2.631 GB, free: 12.52 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002525/5.465, allocations: 324.2 kB / 2.631 GB, free: 12.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007338/5.473, allocations: 2.469 MB / 2.633 GB, free: 9.66 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/5.473, allocations: 127 kB / 2.634 GB, free: 9.535 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002893/5.473, allocations: 172 kB / 2.634 GB, free: 9.367 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003043/5.476, allocations: 1.514 MB / 2.635 GB, free: 7.789 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/5.476, allocations: 7.891 kB / 2.635 GB, free: 7.781 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/5.477, allocations: 67.98 kB / 2.635 GB, free: 7.715 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.304e-05/5.477, allocations: 40 kB / 2.635 GB, free: 7.676 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/5.479, allocations: 1.046 MB / 2.636 GB, free: 6.625 MB / 1.167 GB Warning: The model contains alias variables with conflicting start and/or 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 1.078/6.557, allocations: 8.007 MB / 2.644 GB, free: 175.1 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/6.558, allocations: 438.2 kB / 2.645 GB, free: 175 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005791/6.558, allocations: 314.4 kB / 2.645 GB, free: 175 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006977/6.559, allocations: 0.7496 MB / 2.646 GB, free: 174.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/6.559, allocations: 42.31 kB / 2.646 GB, free: 174.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 3.747e-06/6.559, allocations: 0 / 2.646 GB, free: 174.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002596/6.562, allocations: 0.7483 MB / 2.646 GB, free: 174.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/6.562, allocations: 63.95 kB / 2.646 GB, free: 174.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00464/6.566, allocations: 2.062 MB / 2.648 GB, free: 173.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003152/6.567, allocations: 52.05 kB / 2.648 GB, free: 173.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001297/6.568, allocations: 1.15 MB / 2.65 GB, free: 173.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/6.568, allocations: 215.5 kB / 2.65 GB, free: 173.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.703e-05/6.568, allocations: 24.5 kB / 2.65 GB, free: 173.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001325/6.568, allocations: 344.7 kB / 2.65 GB, free: 173.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00074/6.569, allocations: 315 kB / 2.65 GB, free: 173.1 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/6.57, allocations: 0.7823 MB / 2.651 GB, free: 172.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009808/6.571, allocations: 452.6 kB / 2.652 GB, free: 172.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/6.571, allocations: 2.312 kB / 2.652 GB, free: 172.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003273/6.575, allocations: 1.207 MB / 2.653 GB, free: 172.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009701/6.576, allocations: 3.209 MB / 2.656 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/6.576, allocations: 4.875 kB / 2.656 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.568e-05/6.576, allocations: 14.34 kB / 2.656 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/6.577, allocations: 264 kB / 2.656 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.471e-05/6.577, allocations: 24.59 kB / 2.656 GB, free: 169.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002868/6.58, allocations: 268.2 kB / 2.657 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/6.58, allocations: 57.44 kB / 2.657 GB, free: 169 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/6.58, allocations: 3.688 kB / 2.657 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001716/6.582, allocations: 0.9504 MB / 2.658 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/6.582, allocations: 7.469 kB / 2.658 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/6.582, allocations: 15.53 kB / 2.658 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009681/6.583, allocations: 256.2 kB / 2.658 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.812e-05/6.583, allocations: 21.73 kB / 2.658 GB, free: 169 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/6.585, allocations: 248 kB / 2.658 GB, free: 168.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/6.586, allocations: 50.11 kB / 2.658 GB, free: 168.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * 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.000378/6.586, allocations: 182.6 kB / 2.658 GB, free: 168.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006206/6.587, allocations: 232.2 kB / 2.658 GB, free: 168.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/6.589, allocations: 0.8901 MB / 2.659 GB, free: 168.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/6.589, allocations: 6.938 kB / 2.659 GB, free: 168.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/6.589, allocations: 0 / 2.659 GB, free: 168.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001237/6.59, allocations: 0.6869 MB / 2.66 GB, free: 168.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007462/6.598, allocations: 2.64 MB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/6.598, allocations: 1.125 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006816/6.598, allocations: 144.9 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-05/6.599, allocations: 4.062 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.138e-05/6.599, allocations: 23.03 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/6.599, allocations: 12.38 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/6.599, allocations: 4.922 kB / 2.663 GB, free: 168.1 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/6.601, allocations: 1.344 MB / 2.664 GB, free: 167.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001316/6.602, allocations: 470.3 kB / 2.665 GB, free: 167.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/6.603, allocations: 10.47 kB / 2.665 GB, free: 167.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/6.604, allocations: 170.3 kB / 2.665 GB, free: 167.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/6.604, allocations: 47.19 kB / 2.665 GB, free: 167.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.557e-05/6.604, allocations: 40.12 kB / 2.665 GB, free: 167.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.003359/6.608, allocations: 1.558 MB / 2.666 GB, free: 167.3 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.6e-07/6.608, allocations: 2.281 kB / 2.666 GB, free: 167.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004779/6.613, allocations: 1.215 MB / 2.668 GB, free: 167.2 MB / 1.167 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * 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.005312/6.618, allocations: 3.204 MB / 2.671 GB, free: 166 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003333/6.621, allocations: 1.38 MB / 2.672 GB, free: 166 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/6.621, allocations: 1.031 kB / 2.672 GB, free: 166 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005832/6.622, allocations: 321.9 kB / 2.672 GB, free: 166 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00894/6.631, allocations: 1.494 MB / 2.674 GB, free: 166 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008546/6.639, allocations: 3.4 MB / 2.677 GB, free: 165.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/6.641, allocations: 1.648 MB / 2.679 GB, free: 164.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003701/6.645, allocations: 0.7107 MB / 2.679 GB, free: 164.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/6.646, allocations: 0.9095 MB / 2.68 GB, free: 164.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.563e-06/6.646, allocations: 2.406 kB / 2.68 GB, free: 164.4 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.151/6.797, allocations: 79 MB / 2.757 GB, free: 161.8 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/6.797, allocations: 196.2 kB / 2.758 GB, free: 161.6 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.689/12.49, allocations: 4 kB / 2.758 GB, free: 161.6 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat