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.001061/0.001061, allocations: 91.92 kB / 16.02 MB, free: 80 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.001414/0.001414, allocations: 177 kB / 16.92 MB, free: 6.652 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.419/1.419, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.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.647/2.647, allocations: 437.8 MB / 0.7128 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 12 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6855/0.6858, allocations: 153.8 MB / 1.024 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1234/0.8093, allocations: 110.1 MB / 1.131 GB, free: 1.332 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0359/0.8452, allocations: 20.12 MB / 1.151 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005488/0.8508, allocations: 95.31 kB / 1.151 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004709/0.8555, allocations: 1.045 MB / 1.152 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01303/0.8686, allocations: 3.377 MB / 1.155 GB, free: 8.637 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.01004/0.8786, allocations: 2.868 MB / 1.158 GB, free: 5.805 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0148/0.8934, allocations: 9.526 MB / 1.167 GB, free: 12.25 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005891/0.8994, allocations: 2.075 MB / 1.169 GB, free: 10.13 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006906/0.9063, allocations: 2.317 MB / 1.172 GB, free: 7.801 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00479/0.9111, allocations: 2.034 MB / 1.174 GB, free: 5.758 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001033/0.9122, allocations: 92 kB / 1.174 GB, free: 5.668 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005786/0.918, allocations: 1.454 MB / 1.175 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001425/0.9195, allocations: 0.5092 MB / 1.176 GB, free: 3.699 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003965/0.9235, allocations: 1.33 MB / 1.177 GB, free: 2.355 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005836/0.9293, allocations: 3.327 MB / 1.18 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.9294, allocations: 0 / 1.18 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.835e-06/0.9294, allocations: 0 / 1.18 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001784/0.9296, allocations: 0 / 1.18 GB, free: 15.02 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.007281/0.9369, allocations: 2.685 MB / 1.183 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.9369, allocations: 12.03 kB / 1.183 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.9383, allocations: 332.5 kB / 1.183 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005457/0.9438, allocations: 2.158 MB / 1.185 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.944, allocations: 123 kB / 1.185 GB, free: 9.574 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000479/0.9445, allocations: 164 kB / 1.186 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003882/0.9484, allocations: 1.616 MB / 1.187 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.9484, allocations: 0 / 1.187 GB, free: 7.734 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.9486, allocations: 64 kB / 1.187 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.087e-05/0.9487, allocations: 51.92 kB / 1.187 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.9512, allocations: 1.155 MB / 1.188 GB, free: 6.461 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.01329/0.9645, allocations: 7.901 MB / 1.196 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009843/0.9655, allocations: 481.9 kB / 1.197 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/0.9662, allocations: 333.8 kB / 1.197 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007807/0.967, allocations: 0.7601 MB / 1.198 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.967, allocations: 43.12 kB / 1.198 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.935e-06/0.9671, allocations: 0 / 1.198 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002652/0.9697, allocations: 1.008 MB / 1.199 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.9698, allocations: 55.97 kB / 1.199 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004745/0.9745, allocations: 2.316 MB / 1.201 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0002028/0.9748, allocations: 45.7 kB / 1.201 GB, free: 8.809 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.976, allocations: 1.153 MB / 1.202 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/0.9763, allocations: 216.9 kB / 1.202 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.9765, allocations: 109.7 kB / 1.202 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.9766, allocations: 345.9 kB / 1.203 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007416/0.9774, allocations: 358.4 kB / 1.203 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.9785, allocations: 0.7502 MB / 1.204 GB, free: 5.707 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.9801, allocations: 0.9902 MB / 1.205 GB, free: 4.605 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.9801, allocations: 4 kB / 1.205 GB, free: 4.602 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002759/0.9828, allocations: 1.315 MB / 1.206 GB, free: 3.277 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002421/0.9831, allocations: 338.7 kB / 1.206 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.9831, allocations: 8 kB / 1.206 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.219e-05/0.9832, allocations: 16 kB / 1.206 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.9842, allocations: 251.6 kB / 1.207 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.098e-05/0.9842, allocations: 23.91 kB / 1.207 GB, free: 2.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/0.9864, allocations: 246.2 kB / 1.207 GB, free: 2.297 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.9865, allocations: 55.97 kB / 1.207 GB, free: 2.242 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.9865, allocations: 4 kB / 1.207 GB, free: 2.238 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001903/0.9885, allocations: 1.034 MB / 1.208 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.9885, allocations: 8 kB / 1.208 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.9885, allocations: 16 kB / 1.208 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009593/0.9895, allocations: 252 kB / 1.208 GB, free: 0.9297 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-05/0.9895, allocations: 19.98 kB / 1.208 GB, free: 0.9102 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/0.9916, allocations: 222.6 kB / 1.209 GB, free: 0.6914 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.9917, allocations: 51.98 kB / 1.209 GB, free: 0.6406 MB / 0.9512 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.00126/0.993, allocations: 0.5827 MB / 1.209 GB, free: 48 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007514/0.9938, allocations: 237.1 kB / 1.209 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002065/0.9958, allocations: 0.8897 MB / 1.21 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.081e-05/0.9959, allocations: 8 kB / 1.21 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.9959, allocations: 0 / 1.21 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001086/0.997, allocations: 0.7009 MB / 1.211 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005296/1.002, allocations: 2.578 MB / 1.213 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/1.002, allocations: 3.938 kB / 1.213 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005497/1.003, allocations: 127.9 kB / 1.214 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/1.003, allocations: 4 kB / 1.214 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/1.003, allocations: 19.98 kB / 1.214 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/1.003, allocations: 15.95 kB / 1.214 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/1.003, allocations: 4 kB / 1.214 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/1.005, allocations: 1.325 MB / 1.215 GB, free: 9.992 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.006, allocations: 457.8 kB / 1.215 GB, free: 9.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005114/1.007, allocations: 12 kB / 1.215 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.009, allocations: 115.7 kB / 1.215 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/1.009, allocations: 44.52 kB / 1.216 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.385e-05/1.009, allocations: 35.91 kB / 1.216 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.003127/1.012, allocations: 1.554 MB / 1.217 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/1.012, allocations: 0 / 1.217 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.004209/1.016, allocations: 1.099 MB / 1.218 GB, free: 6.66 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.002006/1.018, allocations: 0.7433 MB / 1.219 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003154/1.021, allocations: 1.369 MB / 1.22 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.021, allocations: 0 / 1.22 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0006081/1.022, allocations: 327 kB / 1.221 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008423/1.03, allocations: 1.393 MB / 1.222 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008518/1.039, allocations: 4.672 MB / 1.226 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/1.041, allocations: 1.578 MB / 1.228 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000706/1.041, allocations: 187.4 kB / 1.228 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of SimCode: time 8.01e-07/1.041, allocations: 4 kB / 1.228 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of Templates: time 0.6238/1.665, allocations: 39.17 MB / 1.266 GB, free: 218.2 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/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