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.001203/0.001203, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001217/0.001217, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.26/2.26, allocations: 390.3 MB / 0.6653 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 66.42 kB / 0.8132 GB, free: 33.08 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3117, allocations: 140.4 MB / 0.9503 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1257/0.4374, allocations: 112.7 MB / 1.06 GB, free: 7.832 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03474/0.4722, allocations: 20.23 MB / 1.08 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006588/0.4788, allocations: 111.3 kB / 1.08 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005667/0.4845, allocations: 1.273 MB / 1.081 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.5563/1.041, allocations: 3.689 MB / 1.085 GB, free: 37.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00804/1.049, allocations: 3.076 MB / 1.088 GB, free: 37.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01269/1.062, allocations: 7.192 MB / 1.095 GB, free: 37.84 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006259/1.068, allocations: 2.578 MB / 1.098 GB, free: 37.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008674/1.077, allocations: 2.801 MB / 1.1 GB, free: 37.52 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00546/1.082, allocations: 2.127 MB / 1.102 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001493/1.084, allocations: 254.2 kB / 1.103 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006078/1.09, allocations: 1.642 MB / 1.104 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001658/1.091, allocations: 0.6891 MB / 1.105 GB, free: 37.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004351/1.096, allocations: 1.514 MB / 1.106 GB, free: 36.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009817/1.106, allocations: 4.333 MB / 1.111 GB, free: 36.1 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.106, allocations: 4.5 kB / 1.111 GB, free: 36.09 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/1.106, allocations: 0 / 1.111 GB, free: 36.09 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001248/1.106, allocations: 0.5938 kB / 1.111 GB, free: 36.09 MB / 0.8575 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.007345/1.113, allocations: 3.227 MB / 1.114 GB, free: 34.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/1.113, allocations: 10.09 kB / 1.114 GB, free: 34.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/1.114, allocations: 324.7 kB / 1.114 GB, free: 34.42 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004259/1.119, allocations: 2.107 MB / 1.116 GB, free: 33.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.993e-05/1.119, allocations: 127.7 kB / 1.116 GB, free: 33.83 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002737/1.119, allocations: 169.4 kB / 1.116 GB, free: 33.83 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/1.122, allocations: 1.604 MB / 1.118 GB, free: 33.63 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.723e-05/1.122, allocations: 4.625 kB / 1.118 GB, free: 33.63 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/1.122, allocations: 63.5 kB / 1.118 GB, free: 33.63 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.307e-05/1.122, allocations: 38.69 kB / 1.118 GB, free: 33.63 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/1.124, allocations: 1.15 MB / 1.119 GB, free: 33.61 MB / 0.8575 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.01157/1.136, allocations: 7.983 MB / 1.127 GB, free: 29.88 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000876/1.137, allocations: 480.8 kB / 1.127 GB, free: 29.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005103/1.137, allocations: 327.5 kB / 1.128 GB, free: 29.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004989/1.138, allocations: 0.7519 MB / 1.129 GB, free: 28.99 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/1.138, allocations: 45.31 kB / 1.129 GB, free: 28.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=60): time 3.817e-06/1.138, allocations: 3.984 kB / 1.129 GB, free: 28.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=60): time 0.002433/1.14, allocations: 0.9857 MB / 1.13 GB, free: 28.77 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/1.14, allocations: 60.94 kB / 1.13 GB, free: 28.71 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003763/1.144, allocations: 2.338 MB / 1.132 GB, free: 28.46 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003043/1.144, allocations: 46.7 kB / 1.132 GB, free: 28.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001098/1.146, allocations: 1.157 MB / 1.133 GB, free: 28.09 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/1.146, allocations: 212.7 kB / 1.133 GB, free: 27.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004025/1.146, allocations: 254.3 kB / 1.133 GB, free: 27.93 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.312e-05/1.146, allocations: 347.7 kB / 1.134 GB, free: 27.62 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007133/1.147, allocations: 363 kB / 1.134 GB, free: 27.61 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009382/1.148, allocations: 0.748 MB / 1.135 GB, free: 27.17 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/1.149, allocations: 0.9738 MB / 1.136 GB, free: 26.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/1.15, allocations: 6.594 kB / 1.136 GB, free: 26.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002813/1.152, allocations: 1.29 MB / 1.137 GB, free: 26.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/1.152, allocations: 9.5 kB / 1.137 GB, free: 26.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/1.152, allocations: 8.062 kB / 1.137 GB, free: 26.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.661e-05/1.152, allocations: 18.31 kB / 1.137 GB, free: 26.22 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009621/1.153, allocations: 254.5 kB / 1.137 GB, free: 26.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.68e-05/1.153, allocations: 23.47 kB / 1.137 GB, free: 26.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/1.156, allocations: 175.6 kB / 1.138 GB, free: 26.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/1.156, allocations: 52.78 kB / 1.138 GB, free: 26.1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001614/1.157, allocations: 0.7567 MB / 1.138 GB, free: 25.72 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008874/1.158, allocations: 0.741 MB / 1.139 GB, free: 25.12 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00131/1.159, allocations: 0.9634 MB / 1.14 GB, free: 24.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.951e-06/1.16, allocations: 2.875 kB / 1.14 GB, free: 24.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002554/1.162, allocations: 1.254 MB / 1.141 GB, free: 24.02 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/1.162, allocations: 12.5 kB / 1.141 GB, free: 24.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/1.162, allocations: 12.03 kB / 1.141 GB, free: 24.01 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/1.162, allocations: 14.47 kB / 1.141 GB, free: 24.01 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008556/1.163, allocations: 246.9 kB / 1.142 GB, free: 24 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.596e-05/1.163, allocations: 25.94 kB / 1.142 GB, free: 24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/1.165, allocations: 120.2 kB / 1.142 GB, free: 23.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.031e-05/1.165, allocations: 59.7 kB / 1.142 GB, free: 23.93 MB / 0.8575 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.0003789/1.165, allocations: 250.6 kB / 1.142 GB, free: 23.71 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003691/1.166, allocations: 231.4 kB / 1.142 GB, free: 23.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/1.168, allocations: 0.8823 MB / 1.143 GB, free: 23.22 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/1.168, allocations: 10.75 kB / 1.143 GB, free: 23.22 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.168, allocations: 0 / 1.143 GB, free: 23.22 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009454/1.169, allocations: 0.6828 MB / 1.144 GB, free: 22.86 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/1.173, allocations: 2.593 MB / 1.146 GB, free: 21.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.173, allocations: 2.219 kB / 1.146 GB, free: 21.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/1.173, allocations: 124.8 kB / 1.146 GB, free: 21.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/1.173, allocations: 2.5 kB / 1.146 GB, free: 21.65 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/1.173, allocations: 23.19 kB / 1.146 GB, free: 21.64 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/1.173, allocations: 7.891 kB / 1.146 GB, free: 21.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.173, allocations: 0 / 1.146 GB, free: 21.63 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/1.175, allocations: 1.319 MB / 1.148 GB, free: 20.96 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007674/1.176, allocations: 416.7 kB / 1.148 GB, free: 20.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/1.176, allocations: 16.28 kB / 1.148 GB, free: 20.66 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009276/1.177, allocations: 44.94 kB / 1.148 GB, free: 20.65 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/1.177, allocations: 39.33 kB / 1.148 GB, free: 20.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.813e-05/1.177, allocations: 39.02 kB / 1.148 GB, free: 20.63 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002439/1.18, allocations: 1.569 MB / 1.15 GB, free: 20.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/1.18, allocations: 0 / 1.15 GB, free: 20.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003675/1.183, allocations: 1.103 MB / 1.151 GB, free: 19.82 MB / 0.8575 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.002066/1.185, allocations: 0.7582 MB / 1.152 GB, free: 19.55 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003085/1.189, allocations: 1.446 MB / 1.153 GB, free: 19.14 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.189, allocations: 0 / 1.153 GB, free: 19.14 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000492/1.189, allocations: 329.3 kB / 1.153 GB, free: 19.05 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006111/1.195, allocations: 1.392 MB / 1.155 GB, free: 18.63 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006049/1.201, allocations: 3.797 MB / 1.158 GB, free: 16.64 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009879/1.202, allocations: 1.59 MB / 1.16 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006752/1.203, allocations: 180.8 kB / 1.16 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of SimCode: time 1.743e-06/1.203, allocations: 2.938 kB / 1.16 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of Templates: time 0.0612/1.264, allocations: 39.6 MB / 1.199 GB, free: 14.58 MB / 0.8887 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/jenkins1/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