Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.418/1.418, allocations: 249.5 MB / 257 MB, free: 6.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009715/0.0009716, allocations: 180.8 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009022/0.0009026, allocations: 82.48 kB / 0.6714 GB, free: 5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.467e-05/1.469e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1956, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.387/1.583, allocations: 424.9 MB / 1.3 GB, free: 260.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/1.583, allocations: 100.7 kB / 1.3 GB, free: 260.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.601/4.185, allocations: 0.9393 GB / 2.24 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.723e-06/4.185, allocations: 0 / 2.24 GB, free: 6.098 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002339/4.185, allocations: 91.78 kB / 2.24 GB, free: 6.008 MB / 0.8698 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.004196/4.189, allocations: 2.536 MB / 2.242 GB, free: 3.41 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/4.189, allocations: 8.031 kB / 2.242 GB, free: 3.402 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007154/4.19, allocations: 328.7 kB / 2.242 GB, free: 3.078 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/4.194, allocations: 2.398 MB / 2.245 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/4.194, allocations: 48 kB / 2.245 GB, free: 0.5625 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/4.194, allocations: 108 kB / 2.245 GB, free: 468 kB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001665/4.196, allocations: 0.9782 MB / 2.246 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/4.198, allocations: 1.29 MB / 2.247 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/4.198, allocations: 3.938 kB / 2.247 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/4.198, allocations: 4 kB / 2.247 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.701e-05/4.198, allocations: 39.94 kB / 2.247 GB, free: 14.08 MB / 0.8855 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.01073/4.209, allocations: 7.616 MB / 2.255 GB, free: 5.977 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006125/4.209, allocations: 430.2 kB / 2.255 GB, free: 5.547 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004078/4.21, allocations: 299 kB / 2.255 GB, free: 5.25 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006496/4.21, allocations: 0.7563 MB / 2.256 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/4.21, allocations: 43.12 kB / 2.256 GB, free: 4.277 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.066e-06/4.21, allocations: 0 / 2.256 GB, free: 4.277 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.001779/4.212, allocations: 0.7113 MB / 2.257 GB, free: 3.555 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/4.212, allocations: 59.97 kB / 2.257 GB, free: 3.484 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002544/4.215, allocations: 1.665 MB / 2.258 GB, free: 1.797 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002178/4.215, allocations: 29.7 kB / 2.258 GB, free: 1.762 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001027/4.216, allocations: 1.152 MB / 2.26 GB, free: 0.5898 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/4.216, allocations: 205 kB / 2.26 GB, free: 396 kB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.412e-05/4.216, allocations: 0 / 2.26 GB, free: 396 kB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001387/4.217, allocations: 361.8 kB / 2.26 GB, free: 28 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5761/4.793, allocations: 297.7 kB / 2.26 GB, free: 107.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000972/4.794, allocations: 0.746 MB / 2.261 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/4.795, allocations: 452.5 kB / 2.262 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.114e-05/4.795, allocations: 2.5 kB / 2.262 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002953/4.798, allocations: 1.109 MB / 2.263 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005613/4.798, allocations: 3.153 MB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/4.799, allocations: 8.219 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.301e-05/4.799, allocations: 14 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/4.8, allocations: 261.2 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/4.8, allocations: 17.58 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/4.802, allocations: 199.9 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/4.802, allocations: 54.44 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/4.802, allocations: 4.344 kB / 2.266 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001784/4.804, allocations: 0.8475 MB / 2.267 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/4.804, allocations: 9.047 kB / 2.267 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/4.804, allocations: 16.78 kB / 2.267 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/4.805, allocations: 252.1 kB / 2.267 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.219e-05/4.805, allocations: 21.39 kB / 2.267 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/4.807, allocations: 175.9 kB / 2.268 GB, free: 103.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/4.807, allocations: 55.73 kB / 2.268 GB, free: 103.5 MB / 0.8855 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.0002776/4.807, allocations: 134.2 kB / 2.268 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003611/4.808, allocations: 204.2 kB / 2.268 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/4.81, allocations: 0.8147 MB / 2.269 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/4.81, allocations: 9.812 kB / 2.269 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/4.81, allocations: 3 kB / 2.269 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001073/4.811, allocations: 0.647 MB / 2.269 GB, free: 103.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004763/4.816, allocations: 2.374 MB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/4.816, allocations: 1.031 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000646/4.816, allocations: 148.5 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.859e-05/4.816, allocations: 8.484 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/4.816, allocations: 15.31 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.433e-06/4.816, allocations: 2.938 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/4.816, allocations: 1.531 kB / 2.272 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/4.818, allocations: 1.257 MB / 2.273 GB, free: 102.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008681/4.819, allocations: 425 kB / 2.274 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002377/4.82, allocations: 6.781 kB / 2.274 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/4.821, allocations: 150.9 kB / 2.274 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/4.821, allocations: 44.8 kB / 2.274 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.074e-05/4.821, allocations: 32.31 kB / 2.274 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001785/4.823, allocations: 1.234 MB / 2.275 GB, free: 102 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/4.823, allocations: 3.125 kB / 2.275 GB, free: 102 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004204/4.827, allocations: 1.213 MB / 2.276 GB, free: 101.9 MB / 0.8855 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.002385/4.829, allocations: 1.219 MB / 2.277 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002439/4.832, allocations: 1.282 MB / 2.279 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/4.832, allocations: 0 / 2.279 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004636/4.832, allocations: 304.3 kB / 2.279 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007352/4.84, allocations: 1.278 MB / 2.28 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005466/4.845, allocations: 2.747 MB / 2.283 GB, free: 100.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001354/4.847, allocations: 1.635 MB / 2.284 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003148/4.85, allocations: 0.6243 MB / 2.285 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002942/4.85, allocations: 129 kB / 2.285 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of SimCode: time 1.433e-06/4.85, allocations: 0 / 2.285 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.06907/4.919, allocations: 44.72 MB / 2.329 GB, free: 98.15 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches