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.009956/0.009956, allocations: 101.4 kB / 15.73 MB, free: 6.023 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.002232/0.002233, allocations: 187.7 kB / 16.67 MB, free: 5.961 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.494/1.494, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.832/2.832, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 71.88 kB / 1.054 GB, free: 7.125 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3755, allocations: 157.4 MB / 1.208 GB, free: 9.621 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.8721/1.248, allocations: 112.7 MB / 1.318 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.03533/1.283, allocations: 20.24 MB / 1.338 GB, free: 15.59 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006413/1.289, allocations: 105.7 kB / 1.338 GB, free: 15.55 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004861/1.294, allocations: 1.28 MB / 1.339 GB, free: 14.76 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01315/1.308, allocations: 3.689 MB / 1.342 GB, free: 12.58 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.009504/1.317, allocations: 3.118 MB / 1.346 GB, free: 10.89 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01551/1.333, allocations: 7.213 MB / 1.353 GB, free: 7.406 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00566/1.338, allocations: 2.58 MB / 1.355 GB, free: 6.176 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009891/1.348, allocations: 2.887 MB / 1.358 GB, free: 4.516 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006199/1.354, allocations: 2.125 MB / 1.36 GB, free: 3.227 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0008666/1.355, allocations: 255.2 kB / 1.36 GB, free: 3.227 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005722/1.361, allocations: 1.647 MB / 1.362 GB, free: 2.41 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0009909/1.362, allocations: 0.6872 MB / 1.363 GB, free: 1.871 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003232/1.365, allocations: 1.516 MB / 1.364 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01076/1.376, allocations: 4.394 MB / 1.368 GB, free: 13.78 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/1.376, allocations: 0 / 1.368 GB, free: 13.78 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.983e-06/1.376, allocations: 5.094 kB / 1.368 GB, free: 13.78 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001136/1.376, allocations: 3.938 kB / 1.368 GB, free: 13.77 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.007727/1.384, allocations: 3.22 MB / 1.371 GB, free: 11.4 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/1.384, allocations: 10.38 kB / 1.371 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/1.385, allocations: 323.7 kB / 1.372 GB, free: 11.24 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004739/1.39, allocations: 2.208 MB / 1.374 GB, free: 9.582 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/1.39, allocations: 131.9 kB / 1.374 GB, free: 9.52 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003033/1.39, allocations: 165 kB / 1.374 GB, free: 9.469 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003307/1.394, allocations: 1.606 MB / 1.376 GB, free: 8.469 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.534e-05/1.394, allocations: 9.484 kB / 1.376 GB, free: 8.461 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/1.394, allocations: 62.94 kB / 1.376 GB, free: 8.414 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-05/1.394, allocations: 42.84 kB / 1.376 GB, free: 8.41 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/1.396, allocations: 1.152 MB / 1.377 GB, free: 7.824 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.01288/1.409, allocations: 7.9 MB / 1.385 GB, free: 1.066 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008573/1.41, allocations: 482 kB / 1.385 GB, free: 0.8242 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/1.411, allocations: 325.5 kB / 1.385 GB, free: 0.6562 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006655/1.411, allocations: 0.7576 MB / 1.386 GB, free: 15.78 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/1.411, allocations: 43.25 kB / 1.386 GB, free: 15.73 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.545e-06/1.411, allocations: 0 / 1.386 GB, free: 15.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002135/1.414, allocations: 0.984 MB / 1.387 GB, free: 15.23 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/1.414, allocations: 65.72 kB / 1.387 GB, free: 15.16 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0029/1.417, allocations: 2.338 MB / 1.39 GB, free: 13.93 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.461e-05/1.417, allocations: 45.2 kB / 1.39 GB, free: 13.88 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009414/1.418, allocations: 1.154 MB / 1.391 GB, free: 12.86 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/1.418, allocations: 216 kB / 1.391 GB, free: 12.68 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/1.418, allocations: 258 kB / 1.391 GB, free: 12.52 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001889/1.418, allocations: 346.2 kB / 1.392 GB, free: 12.19 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006733/1.419, allocations: 363.6 kB / 1.392 GB, free: 12 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009439/1.42, allocations: 0.7455 MB / 1.393 GB, free: 11.34 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/1.421, allocations: 0.9815 MB / 1.394 GB, free: 10.62 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.421, allocations: 2.594 kB / 1.394 GB, free: 10.62 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002502/1.424, allocations: 1.29 MB / 1.395 GB, free: 9.574 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.424, allocations: 12.16 kB / 1.395 GB, free: 9.562 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/1.424, allocations: 12 kB / 1.395 GB, free: 9.551 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/1.424, allocations: 15.94 kB / 1.395 GB, free: 9.535 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.425, allocations: 251.6 kB / 1.395 GB, free: 9.289 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.741e-05/1.425, allocations: 19.94 kB / 1.395 GB, free: 9.27 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/1.427, allocations: 166.3 kB / 1.395 GB, free: 9.105 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.681e-05/1.427, allocations: 55.97 kB / 1.395 GB, free: 9.051 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001253/1.428, allocations: 0.7563 MB / 1.396 GB, free: 8.289 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009289/1.429, allocations: 0.733 MB / 1.397 GB, free: 7.402 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001347/1.43, allocations: 0.9602 MB / 1.398 GB, free: 6.324 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.727e-06/1.43, allocations: 3.938 kB / 1.398 GB, free: 6.32 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00203/1.433, allocations: 1.262 MB / 1.399 GB, free: 5.047 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/1.433, allocations: 8 kB / 1.399 GB, free: 5.039 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/1.433, allocations: 8 kB / 1.399 GB, free: 5.031 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/1.433, allocations: 19.94 kB / 1.399 GB, free: 5.012 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008657/1.433, allocations: 255.6 kB / 1.399 GB, free: 4.762 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.805e-05/1.434, allocations: 15.94 kB / 1.399 GB, free: 4.746 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/1.435, allocations: 115.4 kB / 1.399 GB, free: 4.633 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/1.435, allocations: 55.98 kB / 1.399 GB, free: 4.578 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.0003013/1.435, allocations: 247.8 kB / 1.4 GB, free: 4.328 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003834/1.436, allocations: 240.9 kB / 1.4 GB, free: 4.09 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00172/1.438, allocations: 0.8883 MB / 1.401 GB, free: 3.191 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/1.438, allocations: 8 kB / 1.401 GB, free: 3.184 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.438, allocations: 0 / 1.401 GB, free: 3.184 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00099/1.439, allocations: 0.6852 MB / 1.401 GB, free: 2.469 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/1.443, allocations: 2.582 MB / 1.404 GB, free: 15.8 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.443, allocations: 4 kB / 1.404 GB, free: 15.8 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/1.443, allocations: 127.8 kB / 1.404 GB, free: 15.68 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/1.443, allocations: 4 kB / 1.404 GB, free: 15.67 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/1.443, allocations: 15.98 kB / 1.404 GB, free: 15.66 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/1.443, allocations: 8 kB / 1.404 GB, free: 15.65 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.443, allocations: 4.094 kB / 1.404 GB, free: 15.64 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/1.445, allocations: 1.313 MB / 1.405 GB, free: 14.3 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008271/1.446, allocations: 421.9 kB / 1.406 GB, free: 13.87 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/1.446, allocations: 12 kB / 1.406 GB, free: 13.86 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008992/1.447, allocations: 43.95 kB / 1.406 GB, free: 13.81 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.303e-05/1.447, allocations: 44.44 kB / 1.406 GB, free: 13.77 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.364e-05/1.447, allocations: 35.97 kB / 1.406 GB, free: 13.73 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002075/1.449, allocations: 1.573 MB / 1.407 GB, free: 12.16 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.01e-07/1.449, allocations: 0 / 1.407 GB, free: 12.16 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002734/1.452, allocations: 1.103 MB / 1.409 GB, free: 11.05 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.001636/1.454, allocations: 0.7494 MB / 1.409 GB, free: 10.44 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002437/1.456, allocations: 1.363 MB / 1.411 GB, free: 9.082 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.456, allocations: 4.188 kB / 1.411 GB, free: 9.078 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0005113/1.457, allocations: 327 kB / 1.411 GB, free: 8.758 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006065/1.463, allocations: 1.382 MB / 1.412 GB, free: 7.422 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005794/1.469, allocations: 3.669 MB / 1.416 GB, free: 3.707 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/1.47, allocations: 1.59 MB / 1.417 GB, free: 2.086 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001981/1.472, allocations: 0.4903 MB / 1.418 GB, free: 1.594 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/1.472, allocations: 171.4 kB / 1.418 GB, free: 1.426 MB / 1.092 GB Notification: Performance of SimCode: time 1.042e-06/1.472, allocations: 0 / 1.418 GB, free: 1.426 MB / 1.092 GB Notification: Performance of Templates: time 0.07809/1.551, allocations: 45.53 MB / 1.462 GB, free: 4.438 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