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.207/2.207, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.00111/0.00111, allocations: 177.1 kB / 498.1 MB, free: 5.734 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.604/1.604, allocations: 223.1 MB / 0.7948 GB, free: 17.93 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.0009457/0.0009457, allocations: 94.83 kB / 0.9346 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004377/0.0004376, allocations: 11.7 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3424, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.339/1.681, allocations: 431.2 MB / 1.644 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/1.682, allocations: 110.2 kB / 1.644 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.725/5.407, allocations: 0.9971 GB / 2.641 GB, free: 129.5 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.432e-06/5.407, allocations: 4 kB / 2.641 GB, free: 129.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004753/5.408, allocations: 83.91 kB / 2.641 GB, free: 129.4 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.008282/5.416, allocations: 3.059 MB / 2.644 GB, free: 126.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/5.416, allocations: 16.02 kB / 2.644 GB, free: 126.3 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006161/5.417, allocations: 223.5 kB / 2.645 GB, free: 126.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/5.418, allocations: 320.3 kB / 2.645 GB, free: 125.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005637/5.424, allocations: 2.497 MB / 2.647 GB, free: 123.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.826e-05/5.424, allocations: 139.8 kB / 2.647 GB, free: 123.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/5.424, allocations: 180 kB / 2.648 GB, free: 122.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/5.426, allocations: 1.551 MB / 2.649 GB, free: 121.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/5.426, allocations: 11.84 kB / 2.649 GB, free: 121.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/5.426, allocations: 67.95 kB / 2.649 GB, free: 121.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.328e-05/5.426, allocations: 38.94 kB / 2.649 GB, free: 121.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/5.428, allocations: 1.115 MB / 2.65 GB, free: 120 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.009203/5.437, allocations: 7.996 MB / 2.658 GB, free: 111.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/5.438, allocations: 465.7 kB / 2.659 GB, free: 111.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004708/5.438, allocations: 0.7524 MB / 2.659 GB, free: 110.2 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/5.438, allocations: 43.12 kB / 2.659 GB, free: 110.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 2.324e-06/5.438, allocations: 0 / 2.659 GB, free: 110.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.001729/5.44, allocations: 1.008 MB / 2.66 GB, free: 109.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/5.44, allocations: 63.91 kB / 2.66 GB, free: 109.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/5.442, allocations: 2.085 MB / 2.662 GB, free: 106.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001016/5.442, allocations: 49.7 kB / 2.662 GB, free: 106.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006985/5.443, allocations: 1.151 MB / 2.664 GB, free: 105.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/5.443, allocations: 220.9 kB / 2.664 GB, free: 105.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/5.443, allocations: 20 kB / 2.664 GB, free: 105.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.822e-05/5.443, allocations: 349.9 kB / 2.664 GB, free: 105.1 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/5.444, allocations: 346.4 kB / 2.664 GB, free: 104.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007041/5.445, allocations: 0.8001 MB / 2.665 GB, free: 103.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006219/5.445, allocations: 488.7 kB / 2.666 GB, free: 103.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/5.445, allocations: 4 kB / 2.666 GB, free: 103.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001732/5.447, allocations: 1.256 MB / 2.667 GB, free: 102.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005921/5.448, allocations: 3.208 MB / 2.67 GB, free: 98.59 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/5.448, allocations: 11.56 kB / 2.67 GB, free: 98.58 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/5.448, allocations: 19.98 kB / 2.67 GB, free: 98.56 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009223/5.449, allocations: 259.6 kB / 2.67 GB, free: 98.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/5.449, allocations: 15.94 kB / 2.67 GB, free: 98.29 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/5.451, allocations: 274 kB / 2.671 GB, free: 98.02 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.269e-05/5.451, allocations: 51.98 kB / 2.671 GB, free: 97.97 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/5.451, allocations: 4 kB / 2.671 GB, free: 97.96 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001435/5.452, allocations: 1.007 MB / 2.672 GB, free: 96.96 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/5.452, allocations: 8 kB / 2.672 GB, free: 96.95 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/5.452, allocations: 16 kB / 2.672 GB, free: 96.94 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008258/5.453, allocations: 256.1 kB / 2.672 GB, free: 96.69 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/5.453, allocations: 19.92 kB / 2.672 GB, free: 96.67 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/5.455, allocations: 246.5 kB / 2.672 GB, free: 96.43 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.996e-05/5.455, allocations: 47.98 kB / 2.672 GB, free: 96.38 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.001271/5.456, allocations: 0.5878 MB / 2.673 GB, free: 95.78 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/5.457, allocations: 237 kB / 2.673 GB, free: 95.55 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/5.458, allocations: 0.9303 MB / 2.674 GB, free: 94.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/5.458, allocations: 11.98 kB / 2.674 GB, free: 94.59 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/5.458, allocations: 0 / 2.674 GB, free: 94.59 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008127/5.459, allocations: 0.7143 MB / 2.675 GB, free: 93.84 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003872/5.463, allocations: 2.69 MB / 2.677 GB, free: 91.08 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/5.463, allocations: 0 / 2.677 GB, free: 91.08 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/5.463, allocations: 143.9 kB / 2.677 GB, free: 90.94 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/5.463, allocations: 7.984 kB / 2.677 GB, free: 90.93 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/5.463, allocations: 12 kB / 2.677 GB, free: 90.92 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/5.463, allocations: 11.89 kB / 2.677 GB, free: 90.91 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/5.463, allocations: 0 / 2.677 GB, free: 90.91 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/5.465, allocations: 1.405 MB / 2.679 GB, free: 89.45 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008676/5.466, allocations: 473.8 kB / 2.679 GB, free: 88.96 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002261/5.466, allocations: 12 kB / 2.679 GB, free: 88.95 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/5.467, allocations: 169.8 kB / 2.679 GB, free: 88.79 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.835e-05/5.467, allocations: 48.44 kB / 2.679 GB, free: 88.74 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/5.467, allocations: 31.97 kB / 2.68 GB, free: 88.71 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001819/5.469, allocations: 1.593 MB / 2.681 GB, free: 87.11 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/5.469, allocations: 0 / 2.681 GB, free: 87.11 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003048/5.472, allocations: 1.216 MB / 2.682 GB, free: 85.89 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.003926/5.476, allocations: 3.304 MB / 2.685 GB, free: 82.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002095/5.478, allocations: 1.365 MB / 2.687 GB, free: 81.45 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/5.478, allocations: 4 kB / 2.687 GB, free: 81.44 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004221/5.479, allocations: 344.3 kB / 2.687 GB, free: 81.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006089/5.485, allocations: 1.49 MB / 2.689 GB, free: 79.68 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009552/5.495, allocations: 10.89 MB / 2.699 GB, free: 68.47 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/5.496, allocations: 1.641 MB / 2.701 GB, free: 66.8 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002541/5.498, allocations: 0.5095 MB / 2.701 GB, free: 66.32 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/5.499, allocations: 0.9601 MB / 2.702 GB, free: 65.36 MB / 1.167 GB Notification: Performance of SimCode: time 1.703e-06/5.499, allocations: 4 kB / 2.702 GB, free: 65.36 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7207/6.22, allocations: 73.67 MB / 2.774 GB, free: 186.1 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001398/6.22, allocations: 229 kB / 2.774 GB, free: 185.9 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.455/10.67, allocations: 4.812 kB / 2.774 GB, free: 185.9 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