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: 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_latest_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_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.556/2.556, allocations: 390.3 MB / 402.8 MB, free: 6.629 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.001095/0.001095, allocations: 180.8 kB / 496.1 MB, free: 12.84 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.629/1.629, allocations: 221.3 MB / 0.7915 GB, free: 5.371 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.001005/0.001005, allocations: 95.75 kB / 0.9317 GB, free: 5.684 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.892e-05/4.935e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3159, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.394/1.71, allocations: 431.9 MB / 1.64 GB, free: 2.551 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003478/1.71, allocations: 99.94 kB / 1.641 GB, free: 2.453 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 5.08/6.79, allocations: 0.9942 GB / 2.635 GB, free: 175.6 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.633e-06/6.79, allocations: 0 / 2.635 GB, free: 175.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003855/6.79, allocations: 84.62 kB / 2.635 GB, free: 175.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.007535/6.798, allocations: 2.561 MB / 2.637 GB, free: 174.9 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/6.798, allocations: 9.406 kB / 2.637 GB, free: 174.9 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001607/6.799, allocations: 327.3 kB / 2.638 GB, free: 174.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006394/6.806, allocations: 2.465 MB / 2.64 GB, free: 174.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/6.806, allocations: 129.4 kB / 2.64 GB, free: 174.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003349/6.806, allocations: 176.9 kB / 2.64 GB, free: 174.3 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003109/6.809, allocations: 1.514 MB / 2.642 GB, free: 174.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/6.809, allocations: 1.312 kB / 2.642 GB, free: 174.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/6.81, allocations: 64.81 kB / 2.642 GB, free: 174.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.435e-05/6.81, allocations: 45.55 kB / 2.642 GB, free: 174.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002385/6.812, allocations: 1.05 MB / 2.643 GB, free: 174.1 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 0.01407/6.826, allocations: 8.004 MB / 2.651 GB, free: 170.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007953/6.827, allocations: 435.9 kB / 2.651 GB, free: 170.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004868/6.828, allocations: 315.5 kB / 2.652 GB, free: 170.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000575/6.828, allocations: 0.7578 MB / 2.652 GB, free: 169.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/6.828, allocations: 46.94 kB / 2.652 GB, free: 169.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 3.326e-06/6.828, allocations: 0 / 2.652 GB, free: 169.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.002103/6.83, allocations: 0.7439 MB / 2.653 GB, free: 169.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/6.83, allocations: 65.52 kB / 2.653 GB, free: 169.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/6.834, allocations: 2.058 MB / 2.655 GB, free: 169.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002629/6.834, allocations: 53.89 kB / 2.655 GB, free: 169.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001044/6.835, allocations: 1.145 MB / 2.656 GB, free: 168.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/6.836, allocations: 216.6 kB / 2.656 GB, free: 168.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/6.836, allocations: 23.03 kB / 2.656 GB, free: 168.7 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001022/6.836, allocations: 348.6 kB / 2.657 GB, free: 168.4 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006168/6.836, allocations: 314 kB / 2.657 GB, free: 168.4 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009308/6.837, allocations: 0.7838 MB / 2.658 GB, free: 167.9 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007686/6.838, allocations: 452.2 kB / 2.658 GB, free: 167.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/6.838, allocations: 4.656 kB / 2.658 GB, free: 167.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003213/6.841, allocations: 1.205 MB / 2.659 GB, free: 167.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001149/6.842, allocations: 3.209 MB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/6.842, allocations: 7.25 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.691e-05/6.843, allocations: 14.59 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/6.844, allocations: 257.8 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-05/6.844, allocations: 27.62 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/6.848, allocations: 260.9 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001426/6.848, allocations: 59.59 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/6.848, allocations: 3.688 kB / 2.663 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001683/6.85, allocations: 0.9532 MB / 2.664 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/6.85, allocations: 10.19 kB / 2.664 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/6.85, allocations: 13.94 kB / 2.664 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009036/6.851, allocations: 253.2 kB / 2.664 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/6.851, allocations: 18.31 kB / 2.664 GB, free: 164.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00292/6.854, allocations: 244.5 kB / 2.665 GB, free: 164.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/6.854, allocations: 52.61 kB / 2.665 GB, free: 164.2 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.0003818/6.854, allocations: 174 kB / 2.665 GB, free: 164.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006603/6.855, allocations: 245.4 kB / 2.665 GB, free: 164 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/6.857, allocations: 0.8906 MB / 2.666 GB, free: 163.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/6.857, allocations: 11.91 kB / 2.666 GB, free: 163.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/6.857, allocations: 0.5625 kB / 2.666 GB, free: 163.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008391/6.858, allocations: 0.6782 MB / 2.667 GB, free: 163.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004645/6.862, allocations: 2.635 MB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/6.862, allocations: 0 / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/6.863, allocations: 149.3 kB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.989e-06/6.863, allocations: 3.719 kB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.299e-05/6.863, allocations: 19.89 kB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/6.863, allocations: 6.594 kB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/6.863, allocations: 0.75 kB / 2.669 GB, free: 163.3 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/6.865, allocations: 1.345 MB / 2.671 GB, free: 162.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/6.866, allocations: 472.7 kB / 2.671 GB, free: 162.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/6.866, allocations: 14.12 kB / 2.671 GB, free: 162.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/6.868, allocations: 170.4 kB / 2.671 GB, free: 162.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.284e-05/6.868, allocations: 39.44 kB / 2.671 GB, free: 162.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/6.868, allocations: 36.81 kB / 2.671 GB, free: 162.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002028/6.87, allocations: 1.563 MB / 2.673 GB, free: 162.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.6e-07/6.87, allocations: 0 / 2.673 GB, free: 162.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003456/6.873, allocations: 1.21 MB / 2.674 GB, free: 162.4 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.002234/6.875, allocations: 1.233 MB / 2.675 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002238/6.878, allocations: 1.385 MB / 2.677 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/6.878, allocations: 3.281 kB / 2.677 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.000518/6.878, allocations: 320 kB / 2.677 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007534/6.886, allocations: 1.497 MB / 2.678 GB, free: 162.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00519/6.891, allocations: 2.883 MB / 2.681 GB, free: 161.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009869/6.892, allocations: 1.647 MB / 2.683 GB, free: 160.5 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003173/6.895, allocations: 0.7124 MB / 2.684 GB, free: 160.5 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/6.895, allocations: 135.3 kB / 2.684 GB, free: 160.5 MB / 1.167 GB Notification: Performance of SimCode: time 8.42e-07/6.895, allocations: 3.75 kB / 2.684 GB, free: 160.5 MB / 1.167 GB Notification: Performance of Templates: time 0.08863/6.984, allocations: 56.95 MB / 2.739 GB, free: 158.3 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches