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/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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005764/0.005764, allocations: 102.1 kB / 15.73 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.878/2.878, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 60.12 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4026, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.8821/1.285, allocations: 112.7 MB / 1.318 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.03703/1.322, allocations: 20.23 MB / 1.338 GB, free: 15.65 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00772/1.33, allocations: 109.4 kB / 1.338 GB, free: 15.61 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.005894/1.336, allocations: 1.283 MB / 1.339 GB, free: 14.8 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01543/1.351, allocations: 3.684 MB / 1.342 GB, free: 12.64 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0109/1.362, allocations: 3.123 MB / 1.346 GB, free: 10.94 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01786/1.38, allocations: 7.205 MB / 1.353 GB, free: 7.461 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008859/1.389, allocations: 2.581 MB / 1.355 GB, free: 6.227 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01108/1.4, allocations: 2.891 MB / 1.358 GB, free: 4.582 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006154/1.406, allocations: 2.125 MB / 1.36 GB, free: 3.293 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.001548/1.408, allocations: 254.4 kB / 1.36 GB, free: 3.293 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007049/1.415, allocations: 1.651 MB / 1.362 GB, free: 2.473 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001889/1.417, allocations: 0.6829 MB / 1.362 GB, free: 1.938 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.00515/1.422, allocations: 1.516 MB / 1.364 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01418/1.436, allocations: 4.391 MB / 1.368 GB, free: 13.85 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/1.436, allocations: 0 / 1.368 GB, free: 13.85 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.064e-06/1.436, allocations: 4 kB / 1.368 GB, free: 13.85 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001877/1.436, allocations: 0 / 1.368 GB, free: 13.85 MB / 1.061 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.0114/1.448, allocations: 3.225 MB / 1.371 GB, free: 11.47 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 9.152e-05/1.448, allocations: 10.09 kB / 1.371 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/1.449, allocations: 324 kB / 1.372 GB, free: 11.31 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005277/1.455, allocations: 2.212 MB / 1.374 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/1.455, allocations: 123.9 kB / 1.374 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/1.455, allocations: 168.5 kB / 1.374 GB, free: 9.539 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003514/1.458, allocations: 1.612 MB / 1.376 GB, free: 8.535 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/1.459, allocations: 5.141 kB / 1.376 GB, free: 8.531 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/1.459, allocations: 67.27 kB / 1.376 GB, free: 8.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.907e-05/1.459, allocations: 38.34 kB / 1.376 GB, free: 8.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/1.461, allocations: 1.155 MB / 1.377 GB, free: 7.891 MB / 1.061 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.01412/1.476, allocations: 7.898 MB / 1.385 GB, free: 1.137 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008988/1.477, allocations: 482.4 kB / 1.385 GB, free: 0.8906 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000555/1.477, allocations: 330.8 kB / 1.385 GB, free: 0.7188 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007561/1.478, allocations: 0.7589 MB / 1.386 GB, free: 15.84 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.285e-05/1.478, allocations: 37.53 kB / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 3.436e-06/1.478, allocations: 2.5 kB / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002572/1.481, allocations: 0.9909 MB / 1.387 GB, free: 15.29 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/1.481, allocations: 62.31 kB / 1.387 GB, free: 15.23 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003391/1.484, allocations: 2.334 MB / 1.39 GB, free: 13.99 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0002304/1.484, allocations: 46.2 kB / 1.39 GB, free: 13.95 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001001/1.485, allocations: 1.152 MB / 1.391 GB, free: 12.93 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002642/1.485, allocations: 218 kB / 1.391 GB, free: 12.74 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000396/1.486, allocations: 254.2 kB / 1.391 GB, free: 12.59 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.486, allocations: 352.5 kB / 1.392 GB, free: 12.25 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006719/1.487, allocations: 362.2 kB / 1.392 GB, free: 12.07 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009687/1.488, allocations: 0.74 MB / 1.393 GB, free: 11.41 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/1.489, allocations: 0.9797 MB / 1.394 GB, free: 10.69 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/1.489, allocations: 6.812 kB / 1.394 GB, free: 10.69 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002646/1.492, allocations: 1.297 MB / 1.395 GB, free: 9.641 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/1.492, allocations: 12.19 kB / 1.395 GB, free: 9.629 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/1.492, allocations: 8 kB / 1.395 GB, free: 9.621 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.206e-05/1.492, allocations: 16 kB / 1.395 GB, free: 9.605 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009668/1.493, allocations: 251.6 kB / 1.395 GB, free: 9.359 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.185e-05/1.493, allocations: 15.94 kB / 1.395 GB, free: 9.344 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/1.495, allocations: 166.3 kB / 1.395 GB, free: 9.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-05/1.495, allocations: 59.97 kB / 1.395 GB, free: 9.121 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001581/1.497, allocations: 0.7563 MB / 1.396 GB, free: 8.359 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000919/1.498, allocations: 0.731 MB / 1.397 GB, free: 7.473 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001313/1.499, allocations: 0.9602 MB / 1.398 GB, free: 6.395 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.582e-06/1.499, allocations: 4 kB / 1.398 GB, free: 6.391 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002542/1.501, allocations: 1.262 MB / 1.399 GB, free: 5.117 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/1.501, allocations: 11.94 kB / 1.399 GB, free: 5.105 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/1.501, allocations: 12 kB / 1.399 GB, free: 5.094 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/1.502, allocations: 19.98 kB / 1.399 GB, free: 5.074 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008874/1.502, allocations: 247.6 kB / 1.399 GB, free: 4.832 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/1.502, allocations: 19.94 kB / 1.399 GB, free: 4.812 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/1.504, allocations: 115.4 kB / 1.399 GB, free: 4.699 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.085e-05/1.505, allocations: 51.98 kB / 1.399 GB, free: 4.648 MB / 1.076 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.0003909/1.505, allocations: 251.9 kB / 1.4 GB, free: 4.395 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006741/1.506, allocations: 236.9 kB / 1.4 GB, free: 4.16 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/1.508, allocations: 0.8819 MB / 1.401 GB, free: 3.266 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.628e-05/1.508, allocations: 8 kB / 1.401 GB, free: 3.258 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/1.508, allocations: 0 / 1.401 GB, free: 3.258 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001034/1.509, allocations: 0.6891 MB / 1.401 GB, free: 2.539 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005694/1.515, allocations: 2.582 MB / 1.404 GB, free: 15.88 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/1.515, allocations: 0 / 1.404 GB, free: 15.88 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005474/1.515, allocations: 123.9 kB / 1.404 GB, free: 15.76 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.31e-05/1.515, allocations: 4 kB / 1.404 GB, free: 15.75 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/1.515, allocations: 19.98 kB / 1.404 GB, free: 15.73 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.614e-06/1.515, allocations: 4 kB / 1.404 GB, free: 15.73 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/1.515, allocations: 8.031 kB / 1.404 GB, free: 15.72 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/1.518, allocations: 1.309 MB / 1.405 GB, free: 14.38 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.519, allocations: 425.9 kB / 1.406 GB, free: 13.95 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000737/1.52, allocations: 12 kB / 1.406 GB, free: 13.93 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.521, allocations: 39.95 kB / 1.406 GB, free: 13.89 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/1.521, allocations: 44.44 kB / 1.406 GB, free: 13.85 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/1.521, allocations: 35.97 kB / 1.406 GB, free: 13.82 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.00316/1.525, allocations: 1.577 MB / 1.407 GB, free: 12.23 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.9e-07/1.525, allocations: 3.938 kB / 1.407 GB, free: 12.23 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.004619/1.529, allocations: 1.099 MB / 1.409 GB, free: 11.13 MB / 1.092 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.002206/1.531, allocations: 0.7604 MB / 1.409 GB, free: 10.5 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002945/1.534, allocations: 1.355 MB / 1.411 GB, free: 9.156 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/1.534, allocations: 4.25 kB / 1.411 GB, free: 9.152 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0005825/1.535, allocations: 335 kB / 1.411 GB, free: 8.824 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007442/1.542, allocations: 1.386 MB / 1.412 GB, free: 7.488 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008798/1.551, allocations: 3.661 MB / 1.416 GB, free: 3.781 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/1.553, allocations: 1.59 MB / 1.417 GB, free: 2.16 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.003462/1.557, allocations: 0.4942 MB / 1.418 GB, free: 1.664 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009424/1.558, allocations: 175.3 kB / 1.418 GB, free: 1.492 MB / 1.092 GB Notification: Performance of SimCode: time 1.323e-06/1.558, allocations: 0 / 1.418 GB, free: 1.492 MB / 1.092 GB Notification: Performance of Templates: time 0.08372/1.642, allocations: 44.78 MB / 1.462 GB, free: 5.262 MB / 1.139 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches