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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001424/0.001424, allocations: 169.2 kB / 498.1 MB, free: 5.746 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.714/1.714, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.001215/0.001215, allocations: 88.33 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004195/0.0004197, allocations: 9.562 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3606/0.3611, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.413/1.774, allocations: 431.2 MB / 1.644 GB, free: 13.66 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004827/1.775, allocations: 107.8 kB / 1.644 GB, free: 13.6 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.917/5.692, allocations: 0.9971 GB / 2.641 GB, free: 129.7 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.344e-06/5.692, allocations: 0 / 2.641 GB, free: 129.7 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003374/5.692, allocations: 91.84 kB / 2.641 GB, free: 129.6 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.00919/5.701, allocations: 3.057 MB / 2.644 GB, free: 126.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/5.701, allocations: 15.95 kB / 2.644 GB, free: 126.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001662/5.703, allocations: 328.2 kB / 2.645 GB, free: 126.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006327/5.709, allocations: 2.494 MB / 2.647 GB, free: 123.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/5.71, allocations: 131.5 kB / 2.647 GB, free: 123.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/5.71, allocations: 172 kB / 2.647 GB, free: 123.3 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/5.713, allocations: 1.564 MB / 2.649 GB, free: 121.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/5.713, allocations: 3.906 kB / 2.649 GB, free: 121.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/5.713, allocations: 67.95 kB / 2.649 GB, free: 121.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.128e-05/5.713, allocations: 47.92 kB / 2.649 GB, free: 121.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/5.715, allocations: 1.111 MB / 2.65 GB, free: 120.4 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.01179/5.726, allocations: 7.994 MB / 2.658 GB, free: 112 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006943/5.727, allocations: 461.7 kB / 2.658 GB, free: 111.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005048/5.728, allocations: 0.7524 MB / 2.659 GB, free: 110.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/5.728, allocations: 47.12 kB / 2.659 GB, free: 110.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 3.506e-06/5.728, allocations: 3.938 kB / 2.659 GB, free: 110.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002228/5.73, allocations: 1.015 MB / 2.66 GB, free: 109.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/5.73, allocations: 59.95 kB / 2.66 GB, free: 109.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/5.733, allocations: 2.085 MB / 2.662 GB, free: 107.4 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002597/5.733, allocations: 53.7 kB / 2.662 GB, free: 107.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008332/5.734, allocations: 1.143 MB / 2.663 GB, free: 106.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/5.734, allocations: 216.9 kB / 2.664 GB, free: 105.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/5.734, allocations: 24 kB / 2.664 GB, free: 105.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001064/5.734, allocations: 341.9 kB / 2.664 GB, free: 105.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/5.735, allocations: 346.4 kB / 2.664 GB, free: 105.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007725/5.736, allocations: 0.8079 MB / 2.665 GB, free: 104.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006854/5.736, allocations: 480.2 kB / 2.665 GB, free: 103.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/5.736, allocations: 0 / 2.665 GB, free: 103.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002117/5.738, allocations: 1.256 MB / 2.667 GB, free: 102.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000691/5.739, allocations: 3.211 MB / 2.67 GB, free: 99 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/5.739, allocations: 8 kB / 2.67 GB, free: 98.99 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.938e-05/5.739, allocations: 18.12 kB / 2.67 GB, free: 98.98 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/5.74, allocations: 259.6 kB / 2.67 GB, free: 98.72 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/5.74, allocations: 23.89 kB / 2.67 GB, free: 98.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/5.743, allocations: 270 kB / 2.67 GB, free: 98.43 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/5.743, allocations: 59.97 kB / 2.67 GB, free: 98.38 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/5.743, allocations: 4 kB / 2.67 GB, free: 98.37 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/5.744, allocations: 1.003 MB / 2.671 GB, free: 97.37 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/5.744, allocations: 4 kB / 2.671 GB, free: 97.37 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/5.744, allocations: 16 kB / 2.671 GB, free: 97.35 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/5.745, allocations: 255.6 kB / 2.672 GB, free: 97.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/5.745, allocations: 19.94 kB / 2.672 GB, free: 97.08 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002286/5.748, allocations: 242.8 kB / 2.672 GB, free: 96.84 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.35e-05/5.748, allocations: 51.98 kB / 2.672 GB, free: 96.79 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.001496/5.749, allocations: 0.5829 MB / 2.673 GB, free: 96.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006137/5.75, allocations: 237 kB / 2.673 GB, free: 95.96 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001741/5.752, allocations: 0.934 MB / 2.674 GB, free: 95.02 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/5.752, allocations: 12 kB / 2.674 GB, free: 95.01 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/5.752, allocations: 0 / 2.674 GB, free: 95.01 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008627/5.752, allocations: 0.7221 MB / 2.674 GB, free: 94.26 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004801/5.757, allocations: 2.679 MB / 2.677 GB, free: 91.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/5.757, allocations: 3.5 kB / 2.677 GB, free: 91.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000562/5.758, allocations: 155.9 kB / 2.677 GB, free: 91.35 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/5.758, allocations: 4 kB / 2.677 GB, free: 91.35 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.217e-05/5.758, allocations: 16 kB / 2.677 GB, free: 91.33 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/5.758, allocations: 7.984 kB / 2.677 GB, free: 91.32 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/5.758, allocations: 3.953 kB / 2.677 GB, free: 91.32 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001887/5.76, allocations: 1.409 MB / 2.679 GB, free: 89.85 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/5.761, allocations: 465.8 kB / 2.679 GB, free: 89.38 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/5.761, allocations: 16 kB / 2.679 GB, free: 89.36 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/5.763, allocations: 159.6 kB / 2.679 GB, free: 89.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.98e-05/5.763, allocations: 48.5 kB / 2.679 GB, free: 89.16 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.665e-05/5.763, allocations: 31.97 kB / 2.679 GB, free: 89.12 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002266/5.765, allocations: 1.601 MB / 2.681 GB, free: 87.52 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.81e-07/5.765, allocations: 0 / 2.681 GB, free: 87.52 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003989/5.769, allocations: 1.213 MB / 2.682 GB, free: 86.3 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.002561/5.772, allocations: 1.28 MB / 2.683 GB, free: 85.29 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002441/5.774, allocations: 1.361 MB / 2.685 GB, free: 83.93 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/5.774, allocations: 4 kB / 2.685 GB, free: 83.93 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004471/5.775, allocations: 336.3 kB / 2.685 GB, free: 83.59 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007331/5.782, allocations: 1.498 MB / 2.686 GB, free: 82.16 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006604/5.789, allocations: 4.436 MB / 2.691 GB, free: 77.7 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/5.79, allocations: 1.645 MB / 2.692 GB, free: 76.02 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002767/5.792, allocations: 0.5066 MB / 2.693 GB, free: 75.54 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004548/5.793, allocations: 183.4 kB / 2.693 GB, free: 75.36 MB / 1.167 GB Notification: Performance of SimCode: time 1.573e-06/5.793, allocations: 8 kB / 2.693 GB, free: 75.35 MB / 1.167 GB Notification: Performance of Templates: time 0.08302/5.876, allocations: 51.58 MB / 2.743 GB, free: 24.41 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches