Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001888/0.001888, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002083/0.002084, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.573/1.573, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.718/2.718, allocations: 437 MB / 0.7103 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 67.89 kB / 0.8692 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.942/0.9436, allocations: 151.6 MB / 1.017 GB, free: 2.586 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1071/1.051, allocations: 112.7 MB / 1.127 GB, free: 1.543 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.04364/1.094, allocations: 20.24 MB / 1.147 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008275/1.103, allocations: 107.3 kB / 1.147 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005375/1.108, allocations: 1.281 MB / 1.148 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0138/1.122, allocations: 3.691 MB / 1.152 GB, free: 8.156 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.009155/1.131, allocations: 3.066 MB / 1.155 GB, free: 5.125 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01236/1.144, allocations: 7.189 MB / 1.162 GB, free: 13.92 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005289/1.149, allocations: 2.583 MB / 1.165 GB, free: 11.27 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008583/1.158, allocations: 2.8 MB / 1.167 GB, free: 8.473 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005632/1.163, allocations: 2.128 MB / 1.169 GB, free: 6.336 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001016/1.164, allocations: 252 kB / 1.17 GB, free: 6.09 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005343/1.17, allocations: 1.646 MB / 1.171 GB, free: 4.441 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001005/1.171, allocations: 0.6967 MB / 1.172 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003138/1.174, allocations: 1.508 MB / 1.173 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.008147/1.182, allocations: 4.334 MB / 1.178 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/1.182, allocations: 0 / 1.178 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.208e-06/1.182, allocations: 4 kB / 1.178 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001167/1.182, allocations: 0 / 1.178 GB, free: 13.88 MB / 0.9356 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.007893/1.19, allocations: 3.23 MB / 1.181 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/1.19, allocations: 19.98 kB / 1.181 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009785/1.191, allocations: 324.6 kB / 1.181 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/1.195, allocations: 2.1 MB / 1.183 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.603e-05/1.195, allocations: 123 kB / 1.183 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/1.196, allocations: 172 kB / 1.183 GB, free: 7.777 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00288/1.199, allocations: 1.616 MB / 1.185 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/1.199, allocations: 0 / 1.185 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001396/1.199, allocations: 64 kB / 1.185 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.313e-05/1.199, allocations: 47.88 kB / 1.185 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/1.201, allocations: 1.143 MB / 1.186 GB, free: 4.84 MB / 0.9356 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.01221/1.213, allocations: 7.975 MB / 1.194 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008365/1.214, allocations: 493.6 kB / 1.194 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005064/1.214, allocations: 319 kB / 1.195 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006813/1.215, allocations: 0.7524 MB / 1.196 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/1.215, allocations: 39.12 kB / 1.196 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.425e-06/1.215, allocations: 0 / 1.196 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002218/1.217, allocations: 0.9959 MB / 1.197 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/1.218, allocations: 55.97 kB / 1.197 GB, free: 9.516 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/1.221, allocations: 2.339 MB / 1.199 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001605/1.221, allocations: 45.7 kB / 1.199 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009472/1.222, allocations: 1.146 MB / 1.2 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/1.222, allocations: 216.8 kB / 1.2 GB, free: 5.742 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003411/1.222, allocations: 258.6 kB / 1.2 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000138/1.222, allocations: 353.9 kB / 1.201 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006473/1.223, allocations: 357.9 kB / 1.201 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000947/1.224, allocations: 0.7424 MB / 1.202 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/1.225, allocations: 0.9824 MB / 1.203 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.225, allocations: 0 / 1.203 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002569/1.228, allocations: 1.295 MB / 1.204 GB, free: 1.477 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/1.228, allocations: 8 kB / 1.204 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/1.228, allocations: 8 kB / 1.204 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/1.228, allocations: 16 kB / 1.204 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009681/1.229, allocations: 255.5 kB / 1.204 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.446e-05/1.229, allocations: 19.94 kB / 1.204 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/1.231, allocations: 166.8 kB / 1.205 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/1.231, allocations: 51.98 kB / 1.205 GB, free: 0.9609 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001458/1.232, allocations: 0.7641 MB / 1.205 GB, free: 196 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009584/1.233, allocations: 0.7311 MB / 1.206 GB, free: 15.3 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001365/1.235, allocations: 0.9487 MB / 1.207 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.415e-06/1.235, allocations: 4 kB / 1.207 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002487/1.237, allocations: 1.266 MB / 1.208 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/1.237, allocations: 11.98 kB / 1.208 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/1.237, allocations: 11.94 kB / 1.208 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/1.237, allocations: 16 kB / 1.208 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008972/1.238, allocations: 244.2 kB / 1.209 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-05/1.238, allocations: 19.94 kB / 1.209 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/1.24, allocations: 127.2 kB / 1.209 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-05/1.24, allocations: 47.98 kB / 1.209 GB, free: 12.48 MB / 0.9669 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.0003287/1.24, allocations: 251.9 kB / 1.209 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006513/1.241, allocations: 240.9 kB / 1.209 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/1.243, allocations: 0.8819 MB / 1.21 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.452e-05/1.243, allocations: 8 kB / 1.21 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/1.243, allocations: 4 kB / 1.21 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001103/1.244, allocations: 0.6853 MB / 1.211 GB, free: 10.37 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0055/1.25, allocations: 2.585 MB / 1.213 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/1.25, allocations: 0 / 1.213 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/1.25, allocations: 131.8 kB / 1.213 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.511e-05/1.25, allocations: 0 / 1.213 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/1.251, allocations: 23.98 kB / 1.213 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.437e-06/1.251, allocations: 4 kB / 1.213 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.251, allocations: 0 / 1.213 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002616/1.253, allocations: 1.313 MB / 1.215 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.254, allocations: 418 kB / 1.215 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005816/1.255, allocations: 12 kB / 1.215 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/1.256, allocations: 47.86 kB / 1.215 GB, free: 5.723 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/1.256, allocations: 44.44 kB / 1.215 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.748e-05/1.256, allocations: 35.97 kB / 1.215 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.003711/1.26, allocations: 1.569 MB / 1.217 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.8e-07/1.26, allocations: 0 / 1.217 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.005535/1.266, allocations: 1.103 MB / 1.218 GB, free: 2.961 MB / 0.9669 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.002598/1.268, allocations: 0.7599 MB / 1.219 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003651/1.272, allocations: 1.437 MB / 1.22 GB, free: 0.9062 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/1.272, allocations: 4 kB / 1.22 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0006548/1.273, allocations: 331.3 kB / 1.22 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008084/1.281, allocations: 1.385 MB / 1.222 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007822/1.289, allocations: 3.732 MB / 1.225 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/1.29, allocations: 1.59 MB / 1.227 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002714/1.293, allocations: 0.4904 MB / 1.227 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006182/1.294, allocations: 175.3 kB / 1.227 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of SimCode: time 1.372e-06/1.294, allocations: 4 kB / 1.227 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of Templates: time 0.7119/2.006, allocations: 46.87 MB / 1.273 GB, free: 215.1 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches