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.001107/0.001106, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.00812/0.00812, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.778/2.778, allocations: 462.7 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005059/0.0005059, allocations: 16.12 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.3989, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1201/0.5191, allocations: 110.1 MB / 1.166 GB, free: 6.969 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.03842/0.5575, allocations: 20.12 MB / 1.186 GB, free: 2.805 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005587/0.5632, allocations: 95.31 kB / 1.186 GB, free: 2.711 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004771/0.568, allocations: 1.041 MB / 1.187 GB, free: 1.664 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.012/0.58, allocations: 3.382 MB / 1.19 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.008843/0.5889, allocations: 2.859 MB / 1.193 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01368/0.6026, allocations: 9.528 MB / 1.202 GB, free: 1.891 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004624/0.6072, allocations: 2.071 MB / 1.204 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00711/0.6144, allocations: 2.329 MB / 1.207 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004733/0.6191, allocations: 2.041 MB / 1.209 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0009472/0.6201, allocations: 88 kB / 1.209 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004819/0.6249, allocations: 1.446 MB / 1.21 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.6262, allocations: 0.5132 MB / 1.211 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.003362/0.6296, allocations: 1.338 MB / 1.212 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.007377/0.637, allocations: 4.142 MB / 1.216 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.637, allocations: 3.938 kB / 1.216 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.935e-06/0.637, allocations: 0 / 1.216 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001681/0.6372, allocations: 4 kB / 1.216 GB, free: 3.812 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.006416/0.6436, allocations: 2.701 MB / 1.219 GB, free: 1.047 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.6437, allocations: 8.031 kB / 1.219 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001225/0.6449, allocations: 324.6 kB / 1.219 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004757/0.6497, allocations: 2.147 MB / 1.221 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.6498, allocations: 131 kB / 1.221 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/0.6501, allocations: 171.9 kB / 1.221 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002968/0.6531, allocations: 1.612 MB / 1.223 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/0.6531, allocations: 4 kB / 1.223 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002214/0.6534, allocations: 60 kB / 1.223 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.375e-05/0.6534, allocations: 47.88 kB / 1.223 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002095/0.6555, allocations: 1.151 MB / 1.224 GB, free: 11.26 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.01242/0.668, allocations: 7.913 MB / 1.232 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008627/0.6689, allocations: 489.7 kB / 1.232 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.6694, allocations: 323 kB / 1.233 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007017/0.6701, allocations: 0.7563 MB / 1.233 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.6702, allocations: 43.12 kB / 1.233 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 3.206e-06/0.6702, allocations: 0 / 1.233 GB, free: 1.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.00238/0.6726, allocations: 1.008 MB / 1.234 GB, free: 48 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.6726, allocations: 55.97 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003534/0.6762, allocations: 2.316 MB / 1.237 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001924/0.6764, allocations: 45.7 kB / 1.237 GB, free: 13.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001046/0.6774, allocations: 1.153 MB / 1.238 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.6777, allocations: 217 kB / 1.238 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.6779, allocations: 109.6 kB / 1.238 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.678, allocations: 345.9 kB / 1.239 GB, free: 11.77 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/0.6787, allocations: 362.4 kB / 1.239 GB, free: 11.41 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009543/0.6797, allocations: 0.754 MB / 1.24 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001497/0.6812, allocations: 0.9863 MB / 1.241 GB, free: 9.406 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.6812, allocations: 8 kB / 1.241 GB, free: 9.398 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002645/0.6839, allocations: 1.299 MB / 1.242 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002448/0.6841, allocations: 350.8 kB / 1.242 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.6842, allocations: 12 kB / 1.242 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.6842, allocations: 12 kB / 1.242 GB, free: 7.605 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009744/0.6852, allocations: 259.5 kB / 1.242 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.207e-05/0.6852, allocations: 16 kB / 1.243 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.6872, allocations: 250.2 kB / 1.243 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.6873, allocations: 51.98 kB / 1.243 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/0.6873, allocations: 7.938 kB / 1.243 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001736/0.689, allocations: 1.031 MB / 1.244 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.6891, allocations: 8 kB / 1.244 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.6891, allocations: 16 kB / 1.244 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00086/0.6899, allocations: 251.6 kB / 1.244 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/0.69, allocations: 24.39 kB / 1.244 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.6918, allocations: 210.7 kB / 1.244 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.531e-05/0.6919, allocations: 55.98 kB / 1.244 GB, free: 5.441 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.001071/0.6929, allocations: 0.5725 MB / 1.245 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/0.6933, allocations: 244.9 kB / 1.245 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/0.695, allocations: 0.8989 MB / 1.246 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.695, allocations: 8 kB / 1.246 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.695, allocations: 0 / 1.246 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001049/0.6961, allocations: 0.697 MB / 1.247 GB, free: 2.973 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.7, allocations: 2.586 MB / 1.249 GB, free: 324 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.7, allocations: 4 kB / 1.249 GB, free: 320 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005186/0.7006, allocations: 123.8 kB / 1.249 GB, free: 196 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.7006, allocations: 7.984 kB / 1.249 GB, free: 188 kB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.976e-05/0.7006, allocations: 16 kB / 1.249 GB, free: 172 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.7006, allocations: 4 kB / 1.249 GB, free: 168 kB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.7006, allocations: 0 / 1.249 GB, free: 168 kB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5698/1.27, allocations: 1.332 MB / 1.251 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/1.272, allocations: 449.4 kB / 1.251 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003349/1.272, allocations: 15.64 kB / 1.251 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/1.273, allocations: 121 kB / 1.251 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/1.273, allocations: 45.52 kB / 1.251 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.91e-05/1.274, allocations: 34.69 kB / 1.251 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002678/1.276, allocations: 1.552 MB / 1.253 GB, free: 183.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.01e-07/1.276, allocations: 1.25 kB / 1.253 GB, free: 183.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003044/1.279, allocations: 1.091 MB / 1.254 GB, free: 183.5 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.001661/1.281, allocations: 0.7397 MB / 1.255 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002205/1.283, allocations: 1.375 MB / 1.256 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/1.283, allocations: 3.938 kB / 1.256 GB, free: 183.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004425/1.284, allocations: 330.8 kB / 1.256 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006667/1.29, allocations: 1.386 MB / 1.258 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005834/1.296, allocations: 4.601 MB / 1.262 GB, free: 181.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/1.298, allocations: 1.588 MB / 1.264 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002692/1.3, allocations: 0.4984 MB / 1.264 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/1.301, allocations: 177.6 kB / 1.264 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of SimCode: time 2.334e-06/1.301, allocations: 0.6562 kB / 1.264 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of Templates: time 0.08476/1.386, allocations: 45.04 MB / 1.308 GB, free: 156.3 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