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.602/2.602, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.00161/0.00161, allocations: 176 kB / 0.4901 GB, free: 2.246 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.692/1.692, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001112/0.001112, allocations: 102.7 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005794/0.0005797, allocations: 14.19 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.3947, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.374/1.768, allocations: 431.9 MB / 1.651 GB, free: 14.04 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003634/1.769, allocations: 106.4 kB / 1.651 GB, free: 13.98 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 3.513/5.281, allocations: 0.997 GB / 2.648 GB, free: 111.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.134e-06/5.281, allocations: 4 kB / 2.648 GB, free: 111.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004335/5.282, allocations: 79.91 kB / 2.648 GB, free: 111.2 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.008414/5.29, allocations: 3.068 MB / 2.651 GB, free: 108 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/5.29, allocations: 8.031 kB / 2.651 GB, free: 108 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007268/5.291, allocations: 219.5 kB / 2.651 GB, free: 107.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/5.293, allocations: 328.2 kB / 2.652 GB, free: 107.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006833/5.299, allocations: 2.491 MB / 2.654 GB, free: 104.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/5.3, allocations: 131.8 kB / 2.654 GB, free: 104.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000535/5.3, allocations: 176 kB / 2.654 GB, free: 104.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00329/5.303, allocations: 1.554 MB / 2.656 GB, free: 103 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.834e-05/5.304, allocations: 7.844 kB / 2.656 GB, free: 103 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001765/5.304, allocations: 71.94 kB / 2.656 GB, free: 102.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/5.304, allocations: 44 kB / 2.656 GB, free: 102.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/5.306, allocations: 1.116 MB / 2.657 GB, free: 101.7 MB / 1.167 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.009871/5.316, allocations: 7.981 MB / 2.665 GB, free: 93.26 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006079/5.316, allocations: 483.8 kB / 2.665 GB, free: 92.79 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004389/5.317, allocations: 0.7563 MB / 2.666 GB, free: 91.87 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/5.317, allocations: 39.12 kB / 2.666 GB, free: 91.82 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 2.454e-06/5.317, allocations: 0 / 2.666 GB, free: 91.82 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.001756/5.318, allocations: 1.019 MB / 2.667 GB, free: 90.79 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/5.318, allocations: 55.97 kB / 2.667 GB, free: 90.73 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00235/5.321, allocations: 2.085 MB / 2.669 GB, free: 88.62 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001405/5.321, allocations: 53.7 kB / 2.669 GB, free: 88.57 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006697/5.322, allocations: 1.155 MB / 2.671 GB, free: 87.39 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000153/5.322, allocations: 216.9 kB / 2.671 GB, free: 87.18 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/5.322, allocations: 24 kB / 2.671 GB, free: 87.16 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.731e-05/5.322, allocations: 342.8 kB / 2.671 GB, free: 86.82 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005078/5.322, allocations: 342.5 kB / 2.671 GB, free: 86.48 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000709/5.323, allocations: 0.8157 MB / 2.672 GB, free: 85.47 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/5.324, allocations: 468.7 kB / 2.673 GB, free: 85.01 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/5.324, allocations: 4 kB / 2.673 GB, free: 85.01 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001846/5.326, allocations: 1.256 MB / 2.674 GB, free: 83.74 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.00063/5.326, allocations: 3.207 MB / 2.677 GB, free: 80.27 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/5.326, allocations: 8 kB / 2.677 GB, free: 80.26 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.181e-05/5.326, allocations: 16 kB / 2.677 GB, free: 80.24 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009649/5.327, allocations: 267.5 kB / 2.677 GB, free: 79.98 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/5.327, allocations: 15.94 kB / 2.677 GB, free: 79.96 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/5.329, allocations: 266.1 kB / 2.678 GB, free: 79.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.211e-05/5.33, allocations: 55.98 kB / 2.678 GB, free: 79.65 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/5.33, allocations: 11.94 kB / 2.678 GB, free: 79.64 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001384/5.331, allocations: 1.004 MB / 2.679 GB, free: 78.63 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/5.331, allocations: 8 kB / 2.679 GB, free: 78.62 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/5.331, allocations: 20.03 kB / 2.679 GB, free: 78.61 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/5.332, allocations: 247.6 kB / 2.679 GB, free: 78.36 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/5.332, allocations: 23.91 kB / 2.679 GB, free: 78.34 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/5.334, allocations: 238.6 kB / 2.679 GB, free: 78.11 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.21e-05/5.334, allocations: 51.98 kB / 2.679 GB, free: 78.05 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 () * Number of clocked 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.00117/5.335, allocations: 0.5807 MB / 2.68 GB, free: 77.46 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003386/5.335, allocations: 241.3 kB / 2.68 GB, free: 77.23 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/5.337, allocations: 0.9303 MB / 2.681 GB, free: 76.29 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/5.337, allocations: 7.984 kB / 2.681 GB, free: 76.29 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/5.337, allocations: 7.984 kB / 2.681 GB, free: 76.28 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008233/5.338, allocations: 0.7182 MB / 2.682 GB, free: 75.53 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004041/5.342, allocations: 2.679 MB / 2.684 GB, free: 72.77 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/5.342, allocations: 0 / 2.684 GB, free: 72.77 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/5.342, allocations: 147.8 kB / 2.684 GB, free: 72.63 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/5.342, allocations: 4 kB / 2.684 GB, free: 72.62 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/5.342, allocations: 20.09 kB / 2.684 GB, free: 72.61 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/5.342, allocations: 11.89 kB / 2.684 GB, free: 72.59 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/5.342, allocations: 3.562 kB / 2.684 GB, free: 72.59 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001726/5.344, allocations: 1.401 MB / 2.686 GB, free: 71.13 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009176/5.345, allocations: 469.8 kB / 2.686 GB, free: 70.65 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002341/5.345, allocations: 16 kB / 2.686 GB, free: 70.64 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/5.347, allocations: 163.5 kB / 2.686 GB, free: 70.48 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/5.347, allocations: 52.44 kB / 2.686 GB, free: 70.43 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-05/5.347, allocations: 31.97 kB / 2.686 GB, free: 70.39 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001996/5.349, allocations: 1.589 MB / 2.688 GB, free: 68.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.71e-07/5.349, allocations: 0 / 2.688 GB, free: 68.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003129/5.352, allocations: 1.209 MB / 2.689 GB, free: 67.59 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 () * Number of clocked 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.004483/5.356, allocations: 3.306 MB / 2.692 GB, free: 64.45 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002209/5.359, allocations: 1.361 MB / 2.694 GB, free: 63.08 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/5.359, allocations: 9.375 kB / 2.694 GB, free: 63.07 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004562/5.359, allocations: 343.2 kB / 2.694 GB, free: 62.74 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006704/5.366, allocations: 1.489 MB / 2.696 GB, free: 61.28 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008751/5.375, allocations: 10.88 MB / 2.706 GB, free: 50.06 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009009/5.376, allocations: 1.649 MB / 2.708 GB, free: 48.38 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002339/5.378, allocations: 0.5013 MB / 2.708 GB, free: 47.89 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/5.379, allocations: 0.964 MB / 2.709 GB, free: 46.92 MB / 1.167 GB Notification: Performance of SimCode: time 6.31e-07/5.379, allocations: 0 / 2.709 GB, free: 46.92 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7644/6.143, allocations: 73.7 MB / 2.781 GB, free: 197.5 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/6.144, allocations: 226.1 kB / 2.781 GB, free: 197.3 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.643/10.79, allocations: 0 / 2.781 GB, free: 197.3 MB / 1.182 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