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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008862/0.008862, allocations: 99.81 kB / 15.73 MB, free: 6.059 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.002317/0.002317, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.683/2.683, allocations: 472.7 MB / 0.7453 GB, free: 456 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.89 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18/1.181, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1775/1.358, allocations: 112.7 MB / 1.336 GB, free: 12.47 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.03843/1.397, allocations: 20.26 MB / 1.355 GB, free: 8.164 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0056/1.403, allocations: 103.4 kB / 1.356 GB, free: 8.062 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.004798/1.407, allocations: 1.269 MB / 1.357 GB, free: 6.785 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01414/1.422, allocations: 3.684 MB / 1.36 GB, free: 3.086 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.01042/1.432, allocations: 3.123 MB / 1.363 GB, free: 0 / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.01443/1.446, allocations: 7.217 MB / 1.37 GB, free: 8.758 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0059/1.452, allocations: 2.581 MB / 1.373 GB, free: 6.121 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008177/1.461, allocations: 2.817 MB / 1.376 GB, free: 3.305 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004809/1.465, allocations: 2.127 MB / 1.378 GB, free: 1.168 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.001145/1.467, allocations: 252 kB / 1.378 GB, free: 0.9219 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005181/1.472, allocations: 1.654 MB / 1.38 GB, free: 15.27 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.001613/1.473, allocations: 0.689 MB / 1.38 GB, free: 14.57 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.004277/1.478, allocations: 1.508 MB / 1.382 GB, free: 13.06 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.01128/1.489, allocations: 4.413 MB / 1.386 GB, free: 8.633 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/1.489, allocations: 0 / 1.386 GB, free: 8.633 MB / 1.107 GB Notification: Performance of FrontEnd: time 5.891e-06/1.489, allocations: 4 kB / 1.386 GB, free: 8.629 MB / 1.107 GB Notification: Performance of Transformations before backend: time 0.0002523/1.489, allocations: 0 / 1.386 GB, free: 8.629 MB / 1.107 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.009817/1.499, allocations: 3.322 MB / 1.389 GB, free: 5.238 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 8.957e-05/1.499, allocations: 15.98 kB / 1.389 GB, free: 5.223 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001412/1.501, allocations: 338.3 kB / 1.39 GB, free: 4.891 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00552/1.506, allocations: 2.223 MB / 1.392 GB, free: 2.598 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/1.506, allocations: 123 kB / 1.392 GB, free: 2.477 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/1.507, allocations: 164 kB / 1.392 GB, free: 2.316 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003246/1.51, allocations: 1.608 MB / 1.394 GB, free: 0.6445 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.325e-05/1.51, allocations: 4 kB / 1.394 GB, free: 0.6406 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/1.51, allocations: 64 kB / 1.394 GB, free: 0.5781 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.246e-05/1.51, allocations: 51.88 kB / 1.394 GB, free: 0.5273 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/1.512, allocations: 1.14 MB / 1.395 GB, free: 15.38 MB / 1.123 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.01168/1.524, allocations: 7.938 MB / 1.403 GB, free: 6.938 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008329/1.525, allocations: 485.8 kB / 1.403 GB, free: 6.453 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004973/1.525, allocations: 331.4 kB / 1.404 GB, free: 6.125 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000668/1.526, allocations: 0.7485 MB / 1.404 GB, free: 5.207 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.526, allocations: 43.12 kB / 1.404 GB, free: 5.156 MB / 1.123 GB Notification: Performance of pre-optimization done (n=60): time 2.645e-06/1.526, allocations: 0 / 1.404 GB, free: 5.156 MB / 1.123 GB Notification: Performance of matching and sorting (n=60): time 0.002191/1.528, allocations: 0.9973 MB / 1.405 GB, free: 4.152 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/1.528, allocations: 55.97 kB / 1.405 GB, free: 4.086 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/1.531, allocations: 2.347 MB / 1.408 GB, free: 1.727 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.000145/1.532, allocations: 41.7 kB / 1.408 GB, free: 1.68 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001009/1.533, allocations: 1.171 MB / 1.409 GB, free: 0.5 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.000237/1.533, allocations: 230 kB / 1.409 GB, free: 280 kB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003704/1.533, allocations: 262.7 kB / 1.409 GB, free: 8 kB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001562/1.533, allocations: 345.9 kB / 1.41 GB, free: 15.66 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006557/1.534, allocations: 357.9 kB / 1.41 GB, free: 15.31 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009723/1.535, allocations: 0.7502 MB / 1.411 GB, free: 14.41 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/1.536, allocations: 0.9785 MB / 1.412 GB, free: 13.31 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.536, allocations: 0 / 1.412 GB, free: 13.31 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002341/1.539, allocations: 1.312 MB / 1.413 GB, free: 11.99 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/1.539, allocations: 8 kB / 1.413 GB, free: 11.98 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/1.539, allocations: 8 kB / 1.413 GB, free: 11.98 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.197e-05/1.539, allocations: 16 kB / 1.413 GB, free: 11.96 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009718/1.54, allocations: 251.6 kB / 1.413 GB, free: 11.71 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.754e-05/1.54, allocations: 23.92 kB / 1.413 GB, free: 11.69 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/1.541, allocations: 167.3 kB / 1.413 GB, free: 11.53 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.98e-05/1.542, allocations: 55.98 kB / 1.413 GB, free: 11.47 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001398/1.543, allocations: 0.7602 MB / 1.414 GB, free: 10.71 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008782/1.544, allocations: 0.7349 MB / 1.415 GB, free: 9.812 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001307/1.545, allocations: 0.9484 MB / 1.416 GB, free: 8.75 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.021e-06/1.545, allocations: 4 kB / 1.416 GB, free: 8.746 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002229/1.547, allocations: 1.271 MB / 1.417 GB, free: 7.465 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/1.547, allocations: 9.719 kB / 1.417 GB, free: 7.457 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/1.547, allocations: 8 kB / 1.417 GB, free: 7.449 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/1.547, allocations: 16 kB / 1.417 GB, free: 7.434 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008785/1.548, allocations: 252.2 kB / 1.417 GB, free: 7.188 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/1.548, allocations: 27.92 kB / 1.417 GB, free: 7.16 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/1.55, allocations: 123.4 kB / 1.417 GB, free: 7.039 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.971e-05/1.55, allocations: 44 kB / 1.417 GB, free: 6.996 MB / 1.139 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.0003708/1.55, allocations: 251.9 kB / 1.418 GB, free: 6.742 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/1.551, allocations: 254.3 kB / 1.418 GB, free: 6.492 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/1.553, allocations: 0.878 MB / 1.419 GB, free: 5.602 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/1.553, allocations: 11.98 kB / 1.419 GB, free: 5.59 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/1.553, allocations: 4 kB / 1.419 GB, free: 5.586 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001007/1.554, allocations: 0.6775 MB / 1.419 GB, free: 4.875 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003924/1.558, allocations: 2.59 MB / 1.422 GB, free: 2.207 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/1.558, allocations: 0 / 1.422 GB, free: 2.207 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/1.558, allocations: 135.9 kB / 1.422 GB, free: 2.074 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/1.558, allocations: 0 / 1.422 GB, free: 2.074 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/1.558, allocations: 16 kB / 1.422 GB, free: 2.059 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.447e-06/1.558, allocations: 4 kB / 1.422 GB, free: 2.055 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/1.558, allocations: 0 / 1.422 GB, free: 2.055 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/1.56, allocations: 1.327 MB / 1.423 GB, free: 0.6992 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/1.561, allocations: 439.3 kB / 1.424 GB, free: 256 kB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/1.561, allocations: 12 kB / 1.424 GB, free: 244 kB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009351/1.562, allocations: 51.94 kB / 1.424 GB, free: 192 kB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/1.563, allocations: 48.44 kB / 1.424 GB, free: 144 kB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.968e-05/1.563, allocations: 27.98 kB / 1.424 GB, free: 116 kB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002624/1.565, allocations: 1.569 MB / 1.426 GB, free: 14.54 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.51e-07/1.565, allocations: 0 / 1.426 GB, free: 14.54 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.003252/1.568, allocations: 1.119 MB / 1.427 GB, free: 13.42 MB / 1.154 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.002037/1.571, allocations: 0.7515 MB / 1.427 GB, free: 12.8 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.002826/1.573, allocations: 1.362 MB / 1.429 GB, free: 11.44 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/1.573, allocations: 4 kB / 1.429 GB, free: 11.44 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0005352/1.574, allocations: 319 kB / 1.429 GB, free: 11.12 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005539/1.579, allocations: 1.392 MB / 1.43 GB, free: 9.777 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/1.585, allocations: 3.758 MB / 1.434 GB, free: 5.969 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/1.586, allocations: 1.594 MB / 1.436 GB, free: 4.344 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.001974/1.588, allocations: 488.7 kB / 1.436 GB, free: 3.863 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/1.589, allocations: 175.4 kB / 1.436 GB, free: 3.691 MB / 1.154 GB Notification: Performance of SimCode: time 1.042e-06/1.589, allocations: 4 kB / 1.436 GB, free: 3.688 MB / 1.154 GB Notification: Performance of Templates: time 0.07726/1.666, allocations: 44.77 MB / 1.48 GB, free: 7.477 MB / 1.201 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