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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001499/0.001499, allocations: 116.9 kB / 16.37 MB, free: 6.016 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.00164/0.00164, allocations: 189.7 kB / 17.3 MB, free: 5.613 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.242/2.242, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 65.42 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3235, allocations: 140.4 MB / 0.9511 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1083/0.4318, allocations: 112.7 MB / 1.061 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03287/0.4647, allocations: 20.23 MB / 1.081 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005643/0.4704, allocations: 107.4 kB / 1.081 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0047/0.4752, allocations: 1.281 MB / 1.082 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.6869/1.162, allocations: 3.68 MB / 1.086 GB, free: 37.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.008958/1.171, allocations: 3.112 MB / 1.089 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01469/1.186, allocations: 7.222 MB / 1.096 GB, free: 37.13 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005385/1.191, allocations: 2.572 MB / 1.098 GB, free: 36.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008855/1.2, allocations: 2.813 MB / 1.101 GB, free: 36.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005522/1.206, allocations: 2.128 MB / 1.103 GB, free: 36.43 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001039/1.207, allocations: 257.3 kB / 1.104 GB, free: 36.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005641/1.212, allocations: 1.645 MB / 1.105 GB, free: 36.43 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001107/1.214, allocations: 0.6928 MB / 1.106 GB, free: 36.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003408/1.217, allocations: 1.512 MB / 1.107 GB, free: 35.89 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008868/1.226, allocations: 4.385 MB / 1.112 GB, free: 35.35 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/1.226, allocations: 0.5 kB / 1.112 GB, free: 35.35 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.015e-06/1.226, allocations: 4.5 kB / 1.112 GB, free: 35.35 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001406/1.226, allocations: 0 / 1.112 GB, free: 35.35 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.008428/1.234, allocations: 3.228 MB / 1.115 GB, free: 33.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.235, allocations: 10.31 kB / 1.115 GB, free: 33.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/1.236, allocations: 330.7 kB / 1.115 GB, free: 33.67 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004613/1.24, allocations: 2.201 MB / 1.117 GB, free: 33.07 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/1.241, allocations: 125.1 kB / 1.117 GB, free: 33.07 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/1.241, allocations: 167.1 kB / 1.117 GB, free: 33.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003293/1.244, allocations: 1.618 MB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/1.244, allocations: 4.312 kB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/1.244, allocations: 59.94 kB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.759e-05/1.244, allocations: 40.77 kB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002288/1.247, allocations: 1.151 MB / 1.12 GB, free: 32.84 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.01277/1.259, allocations: 7.925 MB / 1.128 GB, free: 29.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/1.26, allocations: 476.2 kB / 1.128 GB, free: 29.12 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005193/1.261, allocations: 323.1 kB / 1.129 GB, free: 29.11 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005647/1.261, allocations: 0.7534 MB / 1.13 GB, free: 28.26 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/1.262, allocations: 44.42 kB / 1.13 GB, free: 28.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=60): time 2.585e-06/1.262, allocations: 0 / 1.13 GB, free: 28.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=60): time 0.002533/1.264, allocations: 0.9836 MB / 1.131 GB, free: 28.05 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/1.264, allocations: 61.62 kB / 1.131 GB, free: 27.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003814/1.268, allocations: 2.345 MB / 1.133 GB, free: 27.73 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002242/1.268, allocations: 47.17 kB / 1.133 GB, free: 27.7 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008978/1.269, allocations: 1.147 MB / 1.134 GB, free: 27.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002332/1.269, allocations: 221.1 kB / 1.134 GB, free: 27.22 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/1.27, allocations: 255.1 kB / 1.135 GB, free: 27.2 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.372e-05/1.27, allocations: 346.7 kB / 1.135 GB, free: 26.89 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006895/1.27, allocations: 361.8 kB / 1.135 GB, free: 26.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009272/1.271, allocations: 0.7489 MB / 1.136 GB, free: 26.44 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/1.273, allocations: 0.9809 MB / 1.137 GB, free: 25.88 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/1.273, allocations: 2.094 kB / 1.137 GB, free: 25.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002654/1.276, allocations: 1.29 MB / 1.138 GB, free: 25.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/1.276, allocations: 11.28 kB / 1.138 GB, free: 25.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/1.276, allocations: 12.31 kB / 1.138 GB, free: 25.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.273e-05/1.276, allocations: 18.38 kB / 1.138 GB, free: 25.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009787/1.277, allocations: 251.4 kB / 1.138 GB, free: 25.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.276e-05/1.277, allocations: 23.81 kB / 1.138 GB, free: 25.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/1.278, allocations: 171.8 kB / 1.139 GB, free: 25.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/1.279, allocations: 56.31 kB / 1.139 GB, free: 25.26 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001418/1.28, allocations: 0.7579 MB / 1.139 GB, free: 24.88 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000822/1.281, allocations: 0.7313 MB / 1.14 GB, free: 24.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001224/1.282, allocations: 0.9602 MB / 1.141 GB, free: 23.67 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.291e-06/1.282, allocations: 3.25 kB / 1.141 GB, free: 23.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002036/1.284, allocations: 1.255 MB / 1.142 GB, free: 23.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/1.284, allocations: 11.09 kB / 1.142 GB, free: 23.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.284, allocations: 10.62 kB / 1.142 GB, free: 23.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/1.284, allocations: 13.38 kB / 1.142 GB, free: 23.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000808/1.285, allocations: 250.8 kB / 1.143 GB, free: 23.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/1.285, allocations: 23.66 kB / 1.143 GB, free: 23.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/1.287, allocations: 126.2 kB / 1.143 GB, free: 23.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.116e-05/1.287, allocations: 53.8 kB / 1.143 GB, free: 23.1 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.0002878/1.287, allocations: 246.2 kB / 1.143 GB, free: 22.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/1.287, allocations: 236.1 kB / 1.143 GB, free: 22.76 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/1.289, allocations: 0.8847 MB / 1.144 GB, free: 22.39 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/1.289, allocations: 10.34 kB / 1.144 GB, free: 22.39 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.289, allocations: 3.562 kB / 1.144 GB, free: 22.39 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009109/1.29, allocations: 0.6818 MB / 1.145 GB, free: 22.03 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003551/1.293, allocations: 2.589 MB / 1.147 GB, free: 20.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/1.293, allocations: 2.5 kB / 1.147 GB, free: 20.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004718/1.294, allocations: 125.2 kB / 1.147 GB, free: 20.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/1.294, allocations: 2.812 kB / 1.147 GB, free: 20.82 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/1.294, allocations: 17.42 kB / 1.147 GB, free: 20.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/1.294, allocations: 8.781 kB / 1.147 GB, free: 20.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.294, allocations: 3.938 kB / 1.147 GB, free: 20.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/1.296, allocations: 1.32 MB / 1.149 GB, free: 20.13 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006897/1.296, allocations: 422.4 kB / 1.149 GB, free: 19.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/1.296, allocations: 12.91 kB / 1.149 GB, free: 19.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008738/1.297, allocations: 42.72 kB / 1.149 GB, free: 19.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/1.297, allocations: 35.81 kB / 1.149 GB, free: 19.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.13e-05/1.298, allocations: 35.45 kB / 1.149 GB, free: 19.81 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001893/1.299, allocations: 1.574 MB / 1.151 GB, free: 19.21 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/1.299, allocations: 0 / 1.151 GB, free: 19.21 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002793/1.302, allocations: 1.111 MB / 1.152 GB, free: 18.99 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.001484/1.304, allocations: 0.7475 MB / 1.153 GB, free: 18.73 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00209/1.306, allocations: 1.35 MB / 1.154 GB, free: 18.34 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.306, allocations: 7.375 kB / 1.154 GB, free: 18.34 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004365/1.306, allocations: 331.1 kB / 1.154 GB, free: 18.24 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004657/1.311, allocations: 1.389 MB / 1.156 GB, free: 17.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005444/1.316, allocations: 3.669 MB / 1.159 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/1.317, allocations: 1.595 MB / 1.161 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001974/1.319, allocations: 0.4963 MB / 1.161 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/1.32, allocations: 176.3 kB / 1.161 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of SimCode: time 6.41e-07/1.32, allocations: 0 / 1.161 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.07214/1.392, allocations: 44.43 MB / 1.205 GB, free: 8.75 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 -s gbode -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