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.001324/0.001324, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0015/0.001501, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.454/1.454, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.776/2.776, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 75.12 kB / 0.8986 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3383, allocations: 157.4 MB / 1.052 GB, free: 8.766 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1046/0.4429, allocations: 111.7 MB / 1.161 GB, free: 8.742 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02902/0.472, allocations: 20.1 MB / 1.181 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005041/0.4771, allocations: 95.38 kB / 1.181 GB, free: 4.504 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004449/0.4815, allocations: 1.092 MB / 1.182 GB, free: 3.406 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.01075/0.4924, allocations: 3.434 MB / 1.185 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.008332/0.5007, allocations: 2.873 MB / 1.188 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01036/0.5111, allocations: 7.263 MB / 1.195 GB, free: 5.836 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00425/0.5154, allocations: 2.533 MB / 1.198 GB, free: 3.246 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006804/0.5222, allocations: 2.823 MB / 1.201 GB, free: 432 kB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003721/0.5259, allocations: 2.19 MB / 1.203 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0008935/0.5269, allocations: 252 kB / 1.203 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00439/0.5313, allocations: 1.665 MB / 1.205 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001158/0.5324, allocations: 0.6889 MB / 1.205 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.002847/0.5353, allocations: 1.512 MB / 1.207 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.007114/0.5424, allocations: 4.354 MB / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.5425, allocations: 0 / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5425, allocations: 0 / 1.211 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001378/0.5426, allocations: 3.938 kB / 1.211 GB, free: 5.727 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.007777/0.5504, allocations: 3.226 MB / 1.214 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5505, allocations: 8.625 kB / 1.214 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.5517, allocations: 328.5 kB / 1.214 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005362/0.5571, allocations: 2.155 MB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.5572, allocations: 127 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004633/0.5577, allocations: 164 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003984/0.5617, allocations: 1.608 MB / 1.218 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.106e-05/0.5618, allocations: 11.84 kB / 1.218 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/0.562, allocations: 64 kB / 1.218 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.733e-05/0.562, allocations: 47.92 kB / 1.219 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.5645, allocations: 1.147 MB / 1.22 GB, free: 12.64 MB / 0.9825 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.01258/0.5771, allocations: 7.881 MB / 1.227 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.5779, allocations: 474.1 kB / 1.228 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005079/0.5785, allocations: 327 kB / 1.228 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006602/0.5792, allocations: 0.7563 MB / 1.229 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.5792, allocations: 43.11 kB / 1.229 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.314e-06/0.5792, allocations: 0 / 1.229 GB, free: 2.484 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002268/0.5815, allocations: 0.9842 MB / 1.23 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.5815, allocations: 59.97 kB / 1.23 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003873/0.5854, allocations: 2.324 MB / 1.232 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001525/0.5856, allocations: 45.7 kB / 1.232 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.5867, allocations: 1.157 MB / 1.233 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002688/0.587, allocations: 209 kB / 1.234 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004354/0.5875, allocations: 258.6 kB / 1.234 GB, free: 13.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5876, allocations: 349.9 kB / 1.234 GB, free: 13.05 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000769/0.5884, allocations: 365.9 kB / 1.234 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00103/0.5894, allocations: 0.7385 MB / 1.235 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.591, allocations: 0.9863 MB / 1.236 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/0.591, allocations: 4 kB / 1.236 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00276/0.5938, allocations: 1.284 MB / 1.237 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.5938, allocations: 16 kB / 1.237 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/0.5938, allocations: 8 kB / 1.237 GB, free: 9.383 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.405e-05/0.5939, allocations: 23.86 kB / 1.237 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.5949, allocations: 247.6 kB / 1.238 GB, free: 9.117 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.739e-05/0.5949, allocations: 19.94 kB / 1.238 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.5969, allocations: 246.2 kB / 1.238 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.597, allocations: 51.98 kB / 1.238 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001482/0.5985, allocations: 0.7563 MB / 1.239 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001066/0.5996, allocations: 0.7427 MB / 1.239 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001534/0.6011, allocations: 0.9483 MB / 1.24 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-05/0.6012, allocations: 7.938 kB / 1.24 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002641/0.6038, allocations: 1.262 MB / 1.242 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.6038, allocations: 9.719 kB / 1.242 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.6039, allocations: 8.047 kB / 1.242 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.6039, allocations: 19.98 kB / 1.242 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/0.6048, allocations: 243.6 kB / 1.242 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.154e-05/0.6048, allocations: 24.42 kB / 1.242 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.6068, allocations: 183.1 kB / 1.242 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.6069, allocations: 51.98 kB / 1.242 GB, free: 4.27 MB / 0.9981 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.0003039/0.6072, allocations: 255.8 kB / 1.242 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005993/0.6078, allocations: 237 kB / 1.243 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.6097, allocations: 0.8828 MB / 1.243 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.6097, allocations: 8 kB / 1.244 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.6097, allocations: 0 / 1.244 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001015/0.6108, allocations: 0.6853 MB / 1.244 GB, free: 2.156 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5477/1.158, allocations: 2.567 MB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/1.159, allocations: 1.828 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005452/1.159, allocations: 125 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/1.159, allocations: 3.844 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/1.159, allocations: 20.19 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/1.159, allocations: 4.844 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.159, allocations: 1.344 kB / 1.247 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/1.161, allocations: 1.314 MB / 1.248 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000808/1.162, allocations: 416.5 kB / 1.249 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/1.162, allocations: 19.34 kB / 1.249 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.164, allocations: 113.6 kB / 1.249 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/1.164, allocations: 45.64 kB / 1.249 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-05/1.164, allocations: 31.89 kB / 1.249 GB, free: 186.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00208/1.166, allocations: 1.555 MB / 1.25 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of sort global known variables: time 4.21e-07/1.166, allocations: 3.938 kB / 1.25 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002306/1.168, allocations: 1.092 MB / 1.251 GB, free: 186.2 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 (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.001444/1.17, allocations: 0.7361 MB / 1.252 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002497/1.172, allocations: 1.446 MB / 1.253 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.172, allocations: 2.594 kB / 1.253 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004822/1.173, allocations: 332 kB / 1.254 GB, free: 186 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005371/1.178, allocations: 1.379 MB / 1.255 GB, free: 185.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00573/1.184, allocations: 4.541 MB / 1.26 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/1.185, allocations: 1.59 MB / 1.261 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002572/1.188, allocations: 0.4901 MB / 1.262 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004564/1.188, allocations: 175.3 kB / 1.262 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/1.188, allocations: 0 / 1.262 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.07493/1.263, allocations: 46.12 MB / 1.307 GB, free: 157.6 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