Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 195.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.723/1.723, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.913/2.913, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002289/0.002289, allocations: 67.88 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8011/0.8034, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1311/0.9345, allocations: 112.7 MB / 1.127 GB, free: 1.477 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03403/0.9686, allocations: 20.26 MB / 1.147 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004721/0.9733, allocations: 103.4 kB / 1.147 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004216/0.9776, allocations: 1.281 MB / 1.148 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01176/0.9894, allocations: 3.687 MB / 1.152 GB, free: 8.086 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.008208/0.9976, allocations: 3.069 MB / 1.155 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01108/1.009, allocations: 7.196 MB / 1.162 GB, free: 13.84 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004631/1.013, allocations: 2.568 MB / 1.165 GB, free: 11.21 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007593/1.021, allocations: 2.793 MB / 1.167 GB, free: 8.41 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005089/1.026, allocations: 2.135 MB / 1.169 GB, free: 6.266 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001018/1.027, allocations: 252 kB / 1.17 GB, free: 6.02 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005616/1.033, allocations: 1.646 MB / 1.171 GB, free: 4.371 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001033/1.034, allocations: 0.6889 MB / 1.172 GB, free: 3.68 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002569/1.036, allocations: 1.512 MB / 1.173 GB, free: 2.16 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006864/1.043, allocations: 4.342 MB / 1.178 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/1.043, allocations: 0 / 1.178 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.733e-06/1.043, allocations: 0 / 1.178 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.602e-05/1.043, allocations: 0 / 1.178 GB, free: 13.8 MB / 0.9356 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.006185/1.05, allocations: 3.23 MB / 1.181 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/1.05, allocations: 11.98 kB / 1.181 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000827/1.05, allocations: 328.6 kB / 1.181 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004041/1.055, allocations: 2.1 MB / 1.183 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/1.055, allocations: 123 kB / 1.183 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002988/1.055, allocations: 164 kB / 1.183 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003287/1.058, allocations: 1.619 MB / 1.185 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/1.058, allocations: 3.938 kB / 1.185 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/1.059, allocations: 64 kB / 1.185 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.679e-05/1.059, allocations: 43.94 kB / 1.185 GB, free: 5.926 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/1.061, allocations: 1.147 MB / 1.186 GB, free: 4.773 MB / 0.9356 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.01282/1.074, allocations: 7.975 MB / 1.194 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008955/1.075, allocations: 481.8 kB / 1.194 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005598/1.075, allocations: 328.3 kB / 1.195 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007681/1.076, allocations: 0.7524 MB / 1.196 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/1.076, allocations: 43.12 kB / 1.196 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.655e-06/1.076, allocations: 0 / 1.196 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002392/1.078, allocations: 0.9919 MB / 1.197 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/1.078, allocations: 55.97 kB / 1.197 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/1.082, allocations: 2.339 MB / 1.199 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.000153/1.082, allocations: 45.7 kB / 1.199 GB, free: 7.055 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001168/1.083, allocations: 1.146 MB / 1.2 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/1.084, allocations: 224.9 kB / 1.2 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004172/1.084, allocations: 254.6 kB / 1.201 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001884/1.084, allocations: 349.9 kB / 1.201 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007176/1.085, allocations: 353.9 kB / 1.201 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/1.086, allocations: 0.7541 MB / 1.202 GB, free: 3.809 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/1.088, allocations: 0.9746 MB / 1.203 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/1.088, allocations: 4 kB / 1.203 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003817/1.092, allocations: 1.303 MB / 1.204 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/1.092, allocations: 8 kB / 1.204 GB, free: 1.398 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.138e-05/1.092, allocations: 8 kB / 1.204 GB, free: 1.391 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.893e-05/1.092, allocations: 16 kB / 1.204 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/1.093, allocations: 247.6 kB / 1.204 GB, free: 1.133 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.334e-05/1.093, allocations: 19.92 kB / 1.204 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.096, allocations: 166.7 kB / 1.205 GB, free: 0.9492 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/1.096, allocations: 51.98 kB / 1.205 GB, free: 0.8984 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00239/1.098, allocations: 0.7602 MB / 1.205 GB, free: 136 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001313/1.1, allocations: 0.7406 MB / 1.206 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001848/1.102, allocations: 0.9563 MB / 1.207 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.149e-05/1.102, allocations: 4 kB / 1.207 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003813/1.105, allocations: 1.262 MB / 1.208 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.334e-05/1.106, allocations: 8 kB / 1.208 GB, free: 12.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/1.106, allocations: 8 kB / 1.208 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/1.106, allocations: 16 kB / 1.208 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/1.107, allocations: 251.6 kB / 1.209 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.82e-05/1.107, allocations: 20.5 kB / 1.209 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/1.109, allocations: 127.1 kB / 1.209 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/1.109, allocations: 52 kB / 1.209 GB, free: 12.4 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005132/1.11, allocations: 253.8 kB / 1.209 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/1.111, allocations: 233 kB / 1.209 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/1.113, allocations: 0.8897 MB / 1.21 GB, free: 11.02 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/1.113, allocations: 11.98 kB / 1.21 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/1.113, allocations: 0 / 1.21 GB, free: 11 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001229/1.114, allocations: 0.6814 MB / 1.211 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005598/1.12, allocations: 2.589 MB / 1.213 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/1.12, allocations: 0 / 1.213 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/1.12, allocations: 123.9 kB / 1.213 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/1.12, allocations: 4 kB / 1.213 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/1.12, allocations: 16 kB / 1.213 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/1.12, allocations: 4 kB / 1.213 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.12, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/1.123, allocations: 1.317 MB / 1.215 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009843/1.124, allocations: 414 kB / 1.215 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002612/1.124, allocations: 12 kB / 1.215 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009426/1.125, allocations: 55.84 kB / 1.215 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/1.125, allocations: 44.44 kB / 1.215 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-05/1.125, allocations: 27.98 kB / 1.215 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002601/1.128, allocations: 1.569 MB / 1.217 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/1.128, allocations: 0 / 1.217 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003206/1.131, allocations: 1.103 MB / 1.218 GB, free: 2.891 MB / 0.9669 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002466/1.134, allocations: 0.7672 MB / 1.219 GB, free: 2.254 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003334/1.137, allocations: 1.445 MB / 1.22 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.137, allocations: 0 / 1.22 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0006488/1.138, allocations: 323 kB / 1.22 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007972/1.146, allocations: 1.385 MB / 1.222 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008317/1.154, allocations: 3.732 MB / 1.225 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/1.156, allocations: 1.59 MB / 1.227 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002905/1.159, allocations: 498.2 kB / 1.227 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006786/1.16, allocations: 175.4 kB / 1.227 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of SimCode: time 7.52e-07/1.16, allocations: 0 / 1.227 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of Templates: time 0.653/1.813, allocations: 46.87 MB / 1.273 GB, free: 215.6 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches