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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001471/0.001471, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.001668/0.001668, allocations: 191 kB / 17.29 MB, free: 5.516 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.542/1.542, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.53/2.53, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 63.06 kB / 0.8707 GB, free: 1.422 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3365, allocations: 151.6 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.813/1.149, allocations: 112.7 MB / 1.129 GB, free: 6.344 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03611/1.186, allocations: 20.24 MB / 1.149 GB, free: 7.875 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007654/1.193, allocations: 109.4 kB / 1.149 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00531/1.199, allocations: 1.279 MB / 1.15 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01445/1.213, allocations: 3.684 MB / 1.154 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.008909/1.222, allocations: 3.127 MB / 1.157 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01254/1.235, allocations: 7.22 MB / 1.164 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005473/1.24, allocations: 2.58 MB / 1.166 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0117/1.252, allocations: 2.807 MB / 1.169 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006018/1.258, allocations: 2.133 MB / 1.171 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.000835/1.259, allocations: 253.9 kB / 1.171 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005084/1.264, allocations: 1.649 MB / 1.173 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0008403/1.265, allocations: 0.6837 MB / 1.173 GB, free: 9.27 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.00296/1.268, allocations: 1.519 MB / 1.175 GB, free: 8.23 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.007695/1.275, allocations: 4.389 MB / 1.179 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/1.275, allocations: 2.875 kB / 1.179 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.984e-06/1.275, allocations: 0 / 1.179 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.612e-05/1.276, allocations: 4 kB / 1.179 GB, free: 5.176 MB / 0.8731 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.006297/1.282, allocations: 3.22 MB / 1.182 GB, free: 2.801 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/1.282, allocations: 14.41 kB / 1.182 GB, free: 2.797 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009221/1.283, allocations: 325.4 kB / 1.183 GB, free: 2.637 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004272/1.287, allocations: 2.203 MB / 1.185 GB, free: 0.9805 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.568e-05/1.287, allocations: 133 kB / 1.185 GB, free: 0.918 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/1.287, allocations: 164.5 kB / 1.185 GB, free: 0.8672 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/1.29, allocations: 1.604 MB / 1.187 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/1.29, allocations: 3.938 kB / 1.187 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/1.29, allocations: 62.97 kB / 1.187 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-05/1.29, allocations: 46.33 kB / 1.187 GB, free: 15.81 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/1.292, allocations: 1.146 MB / 1.188 GB, free: 15.23 MB / 0.8887 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.01245/1.305, allocations: 7.917 MB / 1.196 GB, free: 7.711 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/1.306, allocations: 473.9 kB / 1.196 GB, free: 7.238 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005043/1.306, allocations: 330.8 kB / 1.196 GB, free: 6.914 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007236/1.307, allocations: 0.7563 MB / 1.197 GB, free: 5.992 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.652e-05/1.307, allocations: 43.12 kB / 1.197 GB, free: 5.941 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 1.873e-06/1.307, allocations: 0 / 1.197 GB, free: 5.941 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.00232/1.309, allocations: 0.9841 MB / 1.198 GB, free: 4.949 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/1.309, allocations: 63.95 kB / 1.198 GB, free: 4.875 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003268/1.312, allocations: 2.335 MB / 1.201 GB, free: 2.527 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001734/1.313, allocations: 45.7 kB / 1.201 GB, free: 2.477 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001069/1.314, allocations: 1.153 MB / 1.202 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/1.314, allocations: 216.9 kB / 1.202 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000376/1.314, allocations: 254.6 kB / 1.202 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001399/1.315, allocations: 345.9 kB / 1.202 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006889/1.315, allocations: 361.9 kB / 1.203 GB, free: 144 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/1.317, allocations: 0.7464 MB / 1.204 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001677/1.318, allocations: 0.9785 MB / 1.205 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.208e-06/1.318, allocations: 0 / 1.205 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00322/1.321, allocations: 1.303 MB / 1.206 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/1.322, allocations: 12 kB / 1.206 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.893e-05/1.322, allocations: 11.94 kB / 1.206 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.757e-05/1.322, allocations: 16 kB / 1.206 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/1.323, allocations: 247.6 kB / 1.206 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.28e-05/1.323, allocations: 23.92 kB / 1.206 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/1.325, allocations: 162.4 kB / 1.206 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.325, allocations: 47.98 kB / 1.206 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00189/1.327, allocations: 0.7648 MB / 1.207 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001021/1.328, allocations: 0.7387 MB / 1.208 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001377/1.329, allocations: 0.9523 MB / 1.209 GB, free: 9.578 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.965e-06/1.329, allocations: 0 / 1.209 GB, free: 9.578 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002599/1.332, allocations: 1.258 MB / 1.21 GB, free: 8.312 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/1.332, allocations: 12.19 kB / 1.21 GB, free: 8.301 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/1.332, allocations: 15.92 kB / 1.21 GB, free: 8.285 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/1.332, allocations: 16 kB / 1.21 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009093/1.333, allocations: 255.6 kB / 1.21 GB, free: 8.02 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.208e-05/1.333, allocations: 15.98 kB / 1.21 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/1.335, allocations: 123.2 kB / 1.21 GB, free: 7.883 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/1.335, allocations: 55.92 kB / 1.21 GB, free: 7.828 MB / 0.9044 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.0004167/1.336, allocations: 243.9 kB / 1.211 GB, free: 7.582 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004931/1.336, allocations: 240.9 kB / 1.211 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/1.338, allocations: 0.8858 MB / 1.212 GB, free: 6.449 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/1.338, allocations: 8 kB / 1.212 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/1.338, allocations: 0 / 1.212 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001017/1.339, allocations: 0.6814 MB / 1.212 GB, free: 5.73 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/1.343, allocations: 2.589 MB / 1.215 GB, free: 3.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/1.343, allocations: 4 kB / 1.215 GB, free: 3.066 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/1.344, allocations: 123.9 kB / 1.215 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/1.344, allocations: 4 kB / 1.215 GB, free: 2.941 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/1.344, allocations: 12 kB / 1.215 GB, free: 2.93 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/1.344, allocations: 7.984 kB / 1.215 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.344, allocations: 192 / 1.215 GB, free: 2.922 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/1.346, allocations: 1.325 MB / 1.216 GB, free: 1.566 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009417/1.347, allocations: 406 kB / 1.217 GB, free: 1.148 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/1.347, allocations: 15.98 kB / 1.217 GB, free: 1.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009103/1.348, allocations: 51.94 kB / 1.217 GB, free: 1.082 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/1.348, allocations: 44.44 kB / 1.217 GB, free: 1.039 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/1.348, allocations: 31.98 kB / 1.217 GB, free: 1.008 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002462/1.351, allocations: 1.566 MB / 1.218 GB, free: 15.43 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.71e-07/1.351, allocations: 4 kB / 1.218 GB, free: 15.43 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003377/1.354, allocations: 1.115 MB / 1.219 GB, free: 14.31 MB / 0.92 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.001902/1.356, allocations: 0.7513 MB / 1.22 GB, free: 13.69 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002551/1.359, allocations: 1.359 MB / 1.222 GB, free: 12.33 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.359, allocations: 0.625 kB / 1.222 GB, free: 12.33 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005144/1.359, allocations: 331 kB / 1.222 GB, free: 12 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00568/1.365, allocations: 1.382 MB / 1.223 GB, free: 10.67 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/1.371, allocations: 3.677 MB / 1.227 GB, free: 6.953 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/1.373, allocations: 1.586 MB / 1.228 GB, free: 5.336 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002274/1.375, allocations: 0.4936 MB / 1.229 GB, free: 4.84 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/1.375, allocations: 175.4 kB / 1.229 GB, free: 4.668 MB / 0.92 GB Notification: Performance of SimCode: time 1.142e-06/1.375, allocations: 3.938 kB / 1.229 GB, free: 4.664 MB / 0.92 GB Notification: Performance of Templates: time 0.07429/1.45, allocations: 44.44 MB / 1.272 GB, free: 8.82 MB / 0.9669 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 -s gbode -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/jenkins1/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