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.001127/0.001127, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001253/0.001253, allocations: 192.3 kB / 16.13 MB, free: 6.645 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.398/1.398, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.786/2.786, allocations: 461.8 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.77 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1056/0.4431, allocations: 111.9 MB / 1.161 GB, free: 8.57 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.03109/0.4742, allocations: 20.32 MB / 1.181 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005264/0.4796, allocations: 99.31 kB / 1.181 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.00461/0.4842, allocations: 1.041 MB / 1.182 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.009786/0.494, allocations: 3.382 MB / 1.186 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.007251/0.5013, allocations: 2.843 MB / 1.188 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01289/0.5142, allocations: 9.532 MB / 1.198 GB, free: 3.301 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003622/0.5179, allocations: 2.14 MB / 1.2 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006006/0.5239, allocations: 2.403 MB / 1.202 GB, free: 14.69 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00415/0.5281, allocations: 2.131 MB / 1.204 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0007268/0.5288, allocations: 123.9 kB / 1.204 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.5331, allocations: 1.478 MB / 1.206 GB, free: 10.95 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0009873/0.5341, allocations: 0.56 MB / 1.206 GB, free: 10.39 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.002824/0.537, allocations: 1.371 MB / 1.208 GB, free: 9.008 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.006515/0.5435, allocations: 4.245 MB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.5435, allocations: 0 / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.489e-06/0.5435, allocations: 0 / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001482/0.5437, allocations: 3.938 kB / 1.212 GB, free: 4.746 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.007316/0.551, allocations: 3.226 MB / 1.215 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.5511, allocations: 8.031 kB / 1.215 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/0.5524, allocations: 328.5 kB / 1.215 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006117/0.5585, allocations: 2.155 MB / 1.217 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.5587, allocations: 123 kB / 1.218 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005636/0.5593, allocations: 168 kB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/0.563, allocations: 1.613 MB / 1.219 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.81e-05/0.563, allocations: 0 / 1.219 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.5632, allocations: 71.98 kB / 1.219 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.949e-05/0.5633, allocations: 51.88 kB / 1.219 GB, free: 12.81 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002249/0.5655, allocations: 1.139 MB / 1.221 GB, free: 11.66 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.01141/0.577, allocations: 7.885 MB / 1.228 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000832/0.5778, allocations: 477.7 kB / 1.229 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.5783, allocations: 325.4 kB / 1.229 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006915/0.5791, allocations: 0.7641 MB / 1.23 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.5791, allocations: 39.12 kB / 1.23 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.545e-06/0.5791, allocations: 0 / 1.23 GB, free: 1.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002194/0.5813, allocations: 0.9881 MB / 1.231 GB, free: 0.5039 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.5814, allocations: 55.97 kB / 1.231 GB, free: 448 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.5845, allocations: 2.32 MB / 1.233 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001719/0.5847, allocations: 45.7 kB / 1.233 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009754/0.5857, allocations: 1.145 MB / 1.234 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.5859, allocations: 224.9 kB / 1.234 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000372/0.5863, allocations: 258.6 kB / 1.235 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.5865, allocations: 345.9 kB / 1.235 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/0.5872, allocations: 369.9 kB / 1.235 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000989/0.5882, allocations: 0.7424 MB / 1.236 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.5896, allocations: 0.9863 MB / 1.237 GB, free: 9.707 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.5897, allocations: 4 kB / 1.237 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002466/0.5921, allocations: 1.292 MB / 1.238 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.5922, allocations: 8 kB / 1.238 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.5922, allocations: 12.12 kB / 1.238 GB, free: 8.387 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.5922, allocations: 12 kB / 1.238 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009607/0.5932, allocations: 255.5 kB / 1.239 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.24e-05/0.5932, allocations: 19.98 kB / 1.239 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.5951, allocations: 246.2 kB / 1.239 GB, free: 7.863 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.111e-05/0.5952, allocations: 51.98 kB / 1.239 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00144/0.5966, allocations: 0.7563 MB / 1.24 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001085/0.5977, allocations: 0.7349 MB / 1.24 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001485/0.5992, allocations: 0.9523 MB / 1.241 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.312e-06/0.5993, allocations: 4 kB / 1.241 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002719/0.602, allocations: 1.262 MB / 1.243 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.602, allocations: 8 kB / 1.243 GB, free: 3.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.602, allocations: 8 kB / 1.243 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.6021, allocations: 16.28 kB / 1.243 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009914/0.6031, allocations: 247.6 kB / 1.243 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.353e-05/0.6031, allocations: 27.92 kB / 1.243 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/0.6053, allocations: 183.5 kB / 1.243 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.06e-05/0.6053, allocations: 47.98 kB / 1.243 GB, free: 3.285 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.0003831/0.6057, allocations: 251.8 kB / 1.243 GB, free: 3.031 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/0.6062, allocations: 241 kB / 1.243 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.6085, allocations: 0.8857 MB / 1.244 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/0.6085, allocations: 8 kB / 1.244 GB, free: 1.887 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.6085, allocations: 0 / 1.244 GB, free: 1.887 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001065/0.6096, allocations: 0.6853 MB / 1.245 GB, free: 1.168 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5148/1.124, allocations: 2.567 MB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/1.124, allocations: 1 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/1.125, allocations: 126.6 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/1.125, allocations: 3.469 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.546e-05/1.125, allocations: 18.83 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.243e-06/1.125, allocations: 4.547 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.125, allocations: 1.844 kB / 1.248 GB, free: 186.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002342/1.128, allocations: 1.317 MB / 1.249 GB, free: 186.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007997/1.128, allocations: 416.8 kB / 1.249 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/1.129, allocations: 15.19 kB / 1.249 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/1.13, allocations: 113.9 kB / 1.249 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/1.13, allocations: 47.3 kB / 1.25 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.764e-05/1.13, allocations: 33.73 kB / 1.25 GB, free: 186.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002046/1.132, allocations: 1.548 MB / 1.251 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/1.132, allocations: 2.594 kB / 1.251 GB, free: 186.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002592/1.135, allocations: 1.092 MB / 1.252 GB, free: 186.3 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.001641/1.136, allocations: 0.7271 MB / 1.253 GB, free: 186.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002405/1.139, allocations: 1.359 MB / 1.254 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.139, allocations: 3.125 kB / 1.254 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004533/1.139, allocations: 330 kB / 1.255 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006401/1.146, allocations: 1.387 MB / 1.256 GB, free: 186.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006537/1.152, allocations: 4.529 MB / 1.26 GB, free: 183.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001462/1.154, allocations: 1.591 MB / 1.262 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.003177/1.157, allocations: 0.4905 MB / 1.262 GB, free: 183 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009827/1.158, allocations: 178.4 kB / 1.262 GB, free: 183 MB / 0.9981 GB Notification: Performance of SimCode: time 1.833e-06/1.158, allocations: 0 / 1.262 GB, free: 183 MB / 0.9981 GB Notification: Performance of Templates: time 0.07714/1.235, allocations: 45.26 MB / 1.307 GB, free: 157.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