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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001085/0.001085, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001137/0.001137, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 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: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.017/3.017, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 8.75 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3302, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1044/0.4347, allocations: 104.1 MB / 1.16 GB, free: 12.99 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02891/0.4637, allocations: 19.08 MB / 1.178 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005018/0.4687, allocations: 87.38 kB / 1.178 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.003822/0.4726, allocations: 0.8889 MB / 1.179 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.4843, allocations: 2.864 MB / 1.182 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.007588/0.4919, allocations: 2.381 MB / 1.184 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.01406/0.506, allocations: 8.121 MB / 1.192 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004088/0.5102, allocations: 1.824 MB / 1.194 GB, free: 9.668 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006452/0.5166, allocations: 2.228 MB / 1.196 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004673/0.5214, allocations: 1.929 MB / 1.198 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0009518/0.5224, allocations: 96 kB / 1.198 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004734/0.5271, allocations: 1.146 MB / 1.199 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.5282, allocations: 497.7 kB / 1.2 GB, free: 3.762 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.5297, allocations: 0.5628 MB / 1.2 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.006261/0.536, allocations: 3.273 MB / 1.204 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.536, allocations: 0 / 1.204 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.045e-06/0.536, allocations: 0 / 1.204 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001257/0.5362, allocations: 0 / 1.204 GB, free: 15.91 MB / 0.9669 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.005583/0.5417, allocations: 2.728 MB / 1.206 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.5418, allocations: 8.031 kB / 1.206 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009013/0.5427, allocations: 320.3 kB / 1.207 GB, free: 12.79 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00422/0.5469, allocations: 2.072 MB / 1.209 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.5471, allocations: 123 kB / 1.209 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002541/0.5473, allocations: 168 kB / 1.209 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002913/0.5503, allocations: 1.6 MB / 1.21 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.5503, allocations: 0 / 1.21 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.5505, allocations: 64 kB / 1.21 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-05/0.5505, allocations: 47.94 kB / 1.211 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.5526, allocations: 1.147 MB / 1.212 GB, free: 7.441 MB / 0.9669 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.01237/0.565, allocations: 7.905 MB / 1.219 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.5659, allocations: 477.7 kB / 1.22 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.5664, allocations: 341.5 kB / 1.22 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006588/0.5671, allocations: 0.7485 MB / 1.221 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.5672, allocations: 39.12 kB / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.785e-06/0.5672, allocations: 0 / 1.221 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002287/0.5695, allocations: 1.008 MB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.5695, allocations: 55.97 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003525/0.573, allocations: 2.296 MB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.5733, allocations: 45.7 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.5745, allocations: 1.157 MB / 1.225 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.5748, allocations: 212.9 kB / 1.226 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.5748, allocations: 20 kB / 1.226 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.575, allocations: 349.9 kB / 1.226 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006646/0.5757, allocations: 338.5 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009338/0.5766, allocations: 0.7384 MB / 1.227 GB, free: 6.844 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007766/0.5774, allocations: 466.7 kB / 1.227 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.5774, allocations: 4 kB / 1.227 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002442/0.5799, allocations: 1.272 MB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002892/0.5802, allocations: 351.1 kB / 1.229 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.5802, allocations: 8 kB / 1.229 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.951e-05/0.5802, allocations: 16 kB / 1.229 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009769/0.5812, allocations: 267.5 kB / 1.229 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.046e-05/0.5813, allocations: 15.94 kB / 1.229 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.5831, allocations: 242.2 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.752e-05/0.5832, allocations: 59.98 kB / 1.23 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/0.5832, allocations: 4 kB / 1.23 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0017/0.5849, allocations: 1.023 MB / 1.231 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5849, allocations: 8 kB / 1.231 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.5849, allocations: 12 kB / 1.231 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000888/0.5858, allocations: 255.6 kB / 1.231 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.5859, allocations: 15.94 kB / 1.231 GB, free: 2.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.5876, allocations: 222.7 kB / 1.231 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.5876, allocations: 44 kB / 1.231 GB, free: 2.469 MB / 0.9825 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001069/0.5887, allocations: 0.5788 MB / 1.232 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004353/0.5892, allocations: 237 kB / 1.232 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.5909, allocations: 0.8974 MB / 1.233 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.5909, allocations: 8 kB / 1.233 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5909, allocations: 0 / 1.233 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009911/0.5919, allocations: 0.6931 MB / 1.233 GB, free: 8 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004136/0.5961, allocations: 2.582 MB / 1.236 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.5961, allocations: 0 / 1.236 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005464/0.5966, allocations: 135.9 kB / 1.236 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.5967, allocations: 4 kB / 1.236 GB, free: 13.21 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.5967, allocations: 15.94 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.5967, allocations: 4 kB / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5967, allocations: 0 / 1.236 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.5988, allocations: 1.333 MB / 1.237 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008656/0.5997, allocations: 453.8 kB / 1.238 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.5999, allocations: 12 kB / 1.238 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.601, allocations: 124.6 kB / 1.238 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.807e-05/0.6011, allocations: 44.5 kB / 1.238 GB, free: 11.19 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.617e-05/0.6012, allocations: 31.97 kB / 1.238 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002399/0.6036, allocations: 1.527 MB / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6036, allocations: 0 / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003042/0.6066, allocations: 1.095 MB / 1.241 GB, free: 8.527 MB / 0.9981 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 (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.001731/0.6084, allocations: 0.7174 MB / 1.241 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002616/0.611, allocations: 1.353 MB / 1.243 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.611, allocations: 0 / 1.243 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000549/0.6116, allocations: 328.4 kB / 1.243 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007314/0.6189, allocations: 1.388 MB / 1.244 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/0.6258, allocations: 4.412 MB / 1.249 GB, free: 468 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5674/1.193, allocations: 1.583 MB / 1.25 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002394/1.196, allocations: 0.4912 MB / 1.251 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/1.196, allocations: 172.1 kB / 1.251 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of SimCode: time 8.92e-07/1.196, allocations: 0.5625 kB / 1.251 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.08122/1.277, allocations: 43.8 MB / 1.294 GB, free: 164.8 MB / 0.9981 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