Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006813/0.006813, allocations: 99.2 kB / 15.73 MB, free: 6.066 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.001321/0.001321, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.459/2.459, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 67.89 kB / 0.9509 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8685/0.8699, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1356/1.006, allocations: 112.7 MB / 1.198 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03781/1.043, allocations: 20.25 MB / 1.218 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009027/1.052, allocations: 105.7 kB / 1.218 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.005204/1.058, allocations: 1.3 MB / 1.219 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01306/1.071, allocations: 3.872 MB / 1.223 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.01041/1.081, allocations: 3.128 MB / 1.226 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01138/1.093, allocations: 7.233 MB / 1.233 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004866/1.098, allocations: 2.575 MB / 1.236 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008122/1.106, allocations: 2.905 MB / 1.238 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005349/1.111, allocations: 2.127 MB / 1.24 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001061/1.112, allocations: 256 kB / 1.241 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005872/1.118, allocations: 1.646 MB / 1.242 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001347/1.119, allocations: 0.6928 MB / 1.243 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003837/1.123, allocations: 1.512 MB / 1.244 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01042/1.134, allocations: 4.403 MB / 1.249 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/1.134, allocations: 0 / 1.249 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.184e-06/1.134, allocations: 4 kB / 1.249 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.000183/1.134, allocations: 0 / 1.249 GB, free: 9.152 MB / 0.9825 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.007047/1.141, allocations: 3.324 MB / 1.252 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/1.141, allocations: 12.03 kB / 1.252 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009831/1.142, allocations: 342.3 kB / 1.252 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00427/1.146, allocations: 2.219 MB / 1.254 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.815e-05/1.146, allocations: 127 kB / 1.255 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/1.147, allocations: 168 kB / 1.255 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002897/1.15, allocations: 1.608 MB / 1.256 GB, free: 1.16 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/1.15, allocations: 4 kB / 1.256 GB, free: 1.156 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/1.15, allocations: 60 kB / 1.256 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.239e-05/1.15, allocations: 47.88 kB / 1.256 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/1.152, allocations: 1.147 MB / 1.258 GB, free: 15.9 MB / 0.9981 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.01149/1.163, allocations: 7.942 MB / 1.265 GB, free: 7.449 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008784/1.164, allocations: 481.7 kB / 1.266 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005268/1.165, allocations: 323 kB / 1.266 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006478/1.165, allocations: 0.7602 MB / 1.267 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/1.166, allocations: 43.12 kB / 1.267 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.275e-06/1.166, allocations: 0 / 1.267 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002245/1.168, allocations: 0.9972 MB / 1.268 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/1.168, allocations: 59.97 kB / 1.268 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003222/1.171, allocations: 2.343 MB / 1.27 GB, free: 2.246 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001528/1.171, allocations: 45.7 kB / 1.27 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009867/1.172, allocations: 1.163 MB / 1.271 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/1.172, allocations: 234 kB / 1.272 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003742/1.173, allocations: 262.7 kB / 1.272 GB, free: 0.5273 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.173, allocations: 345.9 kB / 1.272 GB, free: 188 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006784/1.174, allocations: 361.9 kB / 1.273 GB, free: 15.83 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009896/1.175, allocations: 0.7424 MB / 1.273 GB, free: 14.92 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/1.176, allocations: 0.9824 MB / 1.274 GB, free: 13.82 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/1.176, allocations: 4 kB / 1.274 GB, free: 13.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002422/1.179, allocations: 1.297 MB / 1.275 GB, free: 12.52 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/1.179, allocations: 12 kB / 1.275 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/1.179, allocations: 12.12 kB / 1.275 GB, free: 12.49 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.58e-05/1.179, allocations: 12 kB / 1.276 GB, free: 12.48 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/1.18, allocations: 259.5 kB / 1.276 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/1.18, allocations: 19.94 kB / 1.276 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/1.181, allocations: 170.8 kB / 1.276 GB, free: 12.04 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/1.181, allocations: 59.98 kB / 1.276 GB, free: 11.98 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001367/1.183, allocations: 0.7563 MB / 1.277 GB, free: 11.22 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000973/1.184, allocations: 0.7349 MB / 1.277 GB, free: 10.33 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001348/1.185, allocations: 0.9523 MB / 1.278 GB, free: 9.258 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.953e-06/1.185, allocations: 4 kB / 1.278 GB, free: 9.254 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002346/1.187, allocations: 1.275 MB / 1.28 GB, free: 7.973 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/1.187, allocations: 11.98 kB / 1.28 GB, free: 7.961 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/1.187, allocations: 8 kB / 1.28 GB, free: 7.953 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/1.188, allocations: 16 kB / 1.28 GB, free: 7.938 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009738/1.189, allocations: 243.6 kB / 1.28 GB, free: 7.699 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.81e-05/1.189, allocations: 19.94 kB / 1.28 GB, free: 7.68 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/1.191, allocations: 131.5 kB / 1.28 GB, free: 7.551 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/1.191, allocations: 51.98 kB / 1.28 GB, free: 7.5 MB / 1.014 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.0005052/1.191, allocations: 247.9 kB / 1.28 GB, free: 7.25 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005585/1.192, allocations: 250.3 kB / 1.281 GB, free: 7.004 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/1.194, allocations: 0.8858 MB / 1.281 GB, free: 6.105 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/1.194, allocations: 8 kB / 1.281 GB, free: 6.098 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.194, allocations: 0 / 1.281 GB, free: 6.098 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001127/1.195, allocations: 0.6853 MB / 1.282 GB, free: 5.379 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004966/1.2, allocations: 2.59 MB / 1.285 GB, free: 2.719 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/1.2, allocations: 7.938 kB / 1.285 GB, free: 2.711 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/1.201, allocations: 127.8 kB / 1.285 GB, free: 2.586 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/1.201, allocations: 4 kB / 1.285 GB, free: 2.582 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.842e-05/1.201, allocations: 15.98 kB / 1.285 GB, free: 2.566 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.323e-06/1.201, allocations: 8.094 kB / 1.285 GB, free: 2.559 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.201, allocations: 0 / 1.285 GB, free: 2.559 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/1.203, allocations: 1.334 MB / 1.286 GB, free: 1.195 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/1.204, allocations: 427.3 kB / 1.287 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/1.205, allocations: 12 kB / 1.287 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.206, allocations: 47.89 kB / 1.287 GB, free: 0.6992 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/1.206, allocations: 44.44 kB / 1.287 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/1.206, allocations: 35.97 kB / 1.287 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.003011/1.209, allocations: 1.569 MB / 1.288 GB, free: 15.04 MB / 1.029 GB Notification: Performance of sort global known variables: time 4.31e-07/1.209, allocations: 4 kB / 1.288 GB, free: 15.04 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004003/1.213, allocations: 1.119 MB / 1.289 GB, free: 13.92 MB / 1.029 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.002199/1.216, allocations: 0.7611 MB / 1.29 GB, free: 13.29 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.003103/1.219, allocations: 1.351 MB / 1.291 GB, free: 11.94 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/1.219, allocations: 7.938 kB / 1.291 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0006688/1.219, allocations: 327 kB / 1.292 GB, free: 11.61 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/1.226, allocations: 1.387 MB / 1.293 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/1.233, allocations: 3.746 MB / 1.297 GB, free: 6.477 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/1.235, allocations: 1.586 MB / 1.298 GB, free: 4.855 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.002752/1.237, allocations: 0.4947 MB / 1.299 GB, free: 4.355 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007146/1.238, allocations: 175.4 kB / 1.299 GB, free: 4.184 MB / 1.029 GB Notification: Performance of SimCode: time 1.142e-06/1.238, allocations: 0 / 1.299 GB, free: 4.184 MB / 1.029 GB Notification: Performance of Templates: time 0.07669/1.315, allocations: 44.79 MB / 1.343 GB, free: 8.039 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches