Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.256/2.256, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001278/0.001278, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0009299/0.0009299, allocations: 91.17 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.535e-05/3.558e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3048, allocations: 143 MB / 1.219 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.257/1.562, allocations: 431.8 MB / 1.641 GB, free: 2.535 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003352/1.562, allocations: 100.6 kB / 1.641 GB, free: 2.438 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 4.345/5.907, allocations: 0.9942 GB / 2.635 GB, free: 170.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.124e-06/5.907, allocations: 0 / 2.635 GB, free: 170.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007265/5.907, allocations: 86.09 kB / 2.635 GB, free: 170.4 MB / 1.151 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.009079/5.916, allocations: 2.567 MB / 2.637 GB, free: 169.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/5.916, allocations: 7.594 kB / 2.637 GB, free: 169.5 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000848/5.917, allocations: 220.7 kB / 2.638 GB, free: 169.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/5.919, allocations: 325.7 kB / 2.638 GB, free: 169.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008383/5.928, allocations: 2.468 MB / 2.64 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/5.928, allocations: 130.8 kB / 2.64 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000687/5.929, allocations: 172.4 kB / 2.641 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004135/5.933, allocations: 1.52 MB / 2.642 GB, free: 168.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-05/5.933, allocations: 3.281 kB / 2.642 GB, free: 168.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/5.933, allocations: 67.64 kB / 2.642 GB, free: 168.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-05/5.933, allocations: 41.59 kB / 2.642 GB, free: 168.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/5.936, allocations: 1.052 MB / 2.643 GB, free: 168.6 MB / 1.151 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 0.01553/5.951, allocations: 7.995 MB / 2.651 GB, free: 165.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008674/5.952, allocations: 436.2 kB / 2.651 GB, free: 165 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/5.953, allocations: 312 kB / 2.652 GB, free: 165 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006956/5.953, allocations: 0.7568 MB / 2.653 GB, free: 164.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/5.953, allocations: 45.2 kB / 2.653 GB, free: 164.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=60): time 4.107e-06/5.953, allocations: 0 / 2.653 GB, free: 164.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=60): time 0.0024/5.956, allocations: 0.7539 MB / 2.653 GB, free: 164 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/5.956, allocations: 62.12 kB / 2.653 GB, free: 163.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005148/5.961, allocations: 2.059 MB / 2.655 GB, free: 163.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000307/5.961, allocations: 49.14 kB / 2.655 GB, free: 163.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/5.962, allocations: 1.148 MB / 2.657 GB, free: 163.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/5.963, allocations: 216.8 kB / 2.657 GB, free: 163.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/5.963, allocations: 20.34 kB / 2.657 GB, free: 163.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001419/5.963, allocations: 351.1 kB / 2.657 GB, free: 162.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006463/5.964, allocations: 311.9 kB / 2.657 GB, free: 162.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009151/5.965, allocations: 0.7805 MB / 2.658 GB, free: 162.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008468/5.965, allocations: 457.4 kB / 2.659 GB, free: 162.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/5.965, allocations: 2.875 kB / 2.659 GB, free: 162.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002454/5.968, allocations: 1.207 MB / 2.66 GB, free: 162.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008959/5.969, allocations: 3.203 MB / 2.663 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/5.969, allocations: 10.91 kB / 2.663 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.966e-05/5.969, allocations: 10.88 kB / 2.663 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/5.97, allocations: 266.7 kB / 2.663 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.74e-05/5.97, allocations: 19.58 kB / 2.663 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00311/5.973, allocations: 263.6 kB / 2.663 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/5.973, allocations: 52.81 kB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/5.973, allocations: 3.906 kB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001805/5.975, allocations: 0.9511 MB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/5.975, allocations: 11.64 kB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/5.975, allocations: 15.56 kB / 2.664 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009375/5.976, allocations: 254.8 kB / 2.665 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/5.976, allocations: 18.86 kB / 2.665 GB, free: 158.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/5.979, allocations: 249.2 kB / 2.665 GB, free: 158.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/5.979, allocations: 49.12 kB / 2.665 GB, free: 158.6 MB / 1.151 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.0003865/5.98, allocations: 179.8 kB / 2.665 GB, free: 158.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005599/5.98, allocations: 233.3 kB / 2.665 GB, free: 158.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002454/5.983, allocations: 0.8941 MB / 2.666 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/5.983, allocations: 13.72 kB / 2.666 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.676e-05/5.983, allocations: 2.594 kB / 2.666 GB, free: 158.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001047/5.984, allocations: 0.6798 MB / 2.667 GB, free: 158.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006994/5.991, allocations: 2.639 MB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/5.991, allocations: 0 / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/5.991, allocations: 145 kB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-05/5.992, allocations: 3.688 kB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.095e-05/5.992, allocations: 20.5 kB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-05/5.992, allocations: 5.562 kB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/5.992, allocations: 3.953 kB / 2.67 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/5.994, allocations: 1.34 MB / 2.671 GB, free: 157.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/5.996, allocations: 478.6 kB / 2.671 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007377/5.996, allocations: 11.44 kB / 2.671 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002069/5.999, allocations: 162.2 kB / 2.672 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/5.999, allocations: 45.42 kB / 2.672 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/5.999, allocations: 32.69 kB / 2.672 GB, free: 157.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003563/6.002, allocations: 1.567 MB / 2.673 GB, free: 156.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 7.91e-07/6.002, allocations: 2.906 kB / 2.673 GB, free: 156.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006899/6.009, allocations: 1.209 MB / 2.674 GB, free: 156.8 MB / 1.151 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.007126/6.016, allocations: 3.212 MB / 2.678 GB, free: 155.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003859/6.02, allocations: 1.385 MB / 2.679 GB, free: 155.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/6.02, allocations: 2.469 kB / 2.679 GB, free: 155.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006188/6.021, allocations: 316.6 kB / 2.679 GB, free: 155.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00951/6.031, allocations: 1.489 MB / 2.681 GB, free: 155.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/6.042, allocations: 3.393 MB / 2.684 GB, free: 154.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/6.043, allocations: 1.65 MB / 2.686 GB, free: 153.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004628/6.048, allocations: 0.7174 MB / 2.686 GB, free: 153.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001469/6.049, allocations: 0.9149 MB / 2.687 GB, free: 153.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.963e-06/6.049, allocations: 0 / 2.687 GB, free: 153.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1347/6.184, allocations: 78.99 MB / 2.764 GB, free: 150.2 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/6.184, allocations: 200.7 kB / 2.765 GB, free: 150 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.29/11.47, allocations: 4 kB / 2.765 GB, free: 150 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat