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.008381/0.008381, allocations: 101.5 kB / 15.88 MB, free: 5.867 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.002029/0.002029, allocations: 196.6 kB / 16.79 MB, free: 5.809 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 / 240.5 MB, free: 4.543 MB / 190.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.442/2.442, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 0.8125 GB, free: 14.92 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7531/0.7545, allocations: 140.4 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1087/0.8633, allocations: 111.9 MB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03045/0.8938, allocations: 20.33 MB / 1.079 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006231/0.9001, allocations: 99.31 kB / 1.079 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004679/0.9049, allocations: 1.041 MB / 1.08 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.9173, allocations: 3.383 MB / 1.083 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.008524/0.9258, allocations: 2.844 MB / 1.086 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01331/0.9391, allocations: 9.545 MB / 1.095 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004311/0.9435, allocations: 2.14 MB / 1.097 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006783/0.9503, allocations: 2.388 MB / 1.1 GB, free: 8.004 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004603/0.9549, allocations: 2.139 MB / 1.102 GB, free: 5.855 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006643/0.9556, allocations: 120 kB / 1.102 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004642/0.9603, allocations: 1.466 MB / 1.103 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0009154/0.9612, allocations: 0.5717 MB / 1.104 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002482/0.9637, allocations: 1.368 MB / 1.105 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.004456/0.9682, allocations: 3.399 MB / 1.109 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.9682, allocations: 0 / 1.109 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9682, allocations: 0 / 1.109 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.813e-05/0.9683, allocations: 0 / 1.109 GB, free: 14.91 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.006394/0.9747, allocations: 3.222 MB / 1.112 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.9748, allocations: 8.031 kB / 1.112 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008228/0.9756, allocations: 332.5 kB / 1.112 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/0.9792, allocations: 2.151 MB / 1.114 GB, free: 9.066 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/0.9793, allocations: 127 kB / 1.114 GB, free: 8.941 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002214/0.9795, allocations: 171.9 kB / 1.114 GB, free: 8.773 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002695/0.9822, allocations: 1.608 MB / 1.116 GB, free: 7.102 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.9822, allocations: 8 kB / 1.116 GB, free: 7.094 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.9824, allocations: 56 kB / 1.116 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.075e-05/0.9824, allocations: 55.92 kB / 1.116 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.9844, allocations: 1.143 MB / 1.117 GB, free: 5.836 MB / 0.8731 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.01133/0.9957, allocations: 7.877 MB / 1.125 GB, free: 13.45 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008406/0.9966, allocations: 485.5 kB / 1.125 GB, free: 12.97 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005087/0.9971, allocations: 326.9 kB / 1.126 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006763/0.9978, allocations: 0.7563 MB / 1.126 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.9979, allocations: 39.12 kB / 1.126 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 2.574e-06/0.9979, allocations: 0 / 1.126 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002219/1, allocations: 0.9958 MB / 1.127 GB, free: 10.67 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/1, allocations: 59.97 kB / 1.127 GB, free: 10.6 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003083/1.003, allocations: 2.32 MB / 1.13 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002034/1.003, allocations: 45.7 kB / 1.13 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009674/1.004, allocations: 1.146 MB / 1.131 GB, free: 7.062 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/1.005, allocations: 220.9 kB / 1.131 GB, free: 6.844 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/1.005, allocations: 258.6 kB / 1.131 GB, free: 6.586 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.005, allocations: 345.9 kB / 1.132 GB, free: 6.242 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006845/1.006, allocations: 361.8 kB / 1.132 GB, free: 5.887 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009639/1.007, allocations: 0.7502 MB / 1.133 GB, free: 4.977 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/1.008, allocations: 0.9863 MB / 1.134 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/1.008, allocations: 4 kB / 1.134 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002425/1.011, allocations: 1.295 MB / 1.135 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/1.011, allocations: 8.906 kB / 1.135 GB, free: 2.562 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/1.011, allocations: 8 kB / 1.135 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/1.011, allocations: 16 kB / 1.135 GB, free: 2.539 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009693/1.012, allocations: 255.6 kB / 1.135 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/1.012, allocations: 15.94 kB / 1.135 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/1.014, allocations: 254.1 kB / 1.136 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.255e-05/1.014, allocations: 51.98 kB / 1.136 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00135/1.015, allocations: 0.7563 MB / 1.136 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008914/1.016, allocations: 0.7407 MB / 1.137 GB, free: 320 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001336/1.017, allocations: 0.9523 MB / 1.138 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.462e-06/1.017, allocations: 4 kB / 1.138 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00234/1.02, allocations: 1.251 MB / 1.139 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.02, allocations: 11.94 kB / 1.139 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/1.02, allocations: 8 kB / 1.139 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/1.02, allocations: 12 kB / 1.139 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009081/1.021, allocations: 251.6 kB / 1.139 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/1.021, allocations: 19.94 kB / 1.139 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002135/1.023, allocations: 199.3 kB / 1.14 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/1.023, allocations: 47.98 kB / 1.14 GB, free: 13.44 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.0004259/1.023, allocations: 247.9 kB / 1.14 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006228/1.024, allocations: 233.1 kB / 1.14 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002242/1.026, allocations: 0.8896 MB / 1.141 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.026, allocations: 8 kB / 1.141 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/1.026, allocations: 0 / 1.141 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00102/1.027, allocations: 0.6814 MB / 1.142 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005787/1.033, allocations: 2.578 MB / 1.144 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/1.033, allocations: 0 / 1.144 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006103/1.034, allocations: 124 kB / 1.144 GB, free: 8.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/1.034, allocations: 11.94 kB / 1.144 GB, free: 8.559 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/1.034, allocations: 19.94 kB / 1.144 GB, free: 8.539 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.291e-05/1.034, allocations: 7.938 kB / 1.144 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.034, allocations: 0 / 1.144 GB, free: 8.531 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/1.037, allocations: 1.313 MB / 1.146 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/1.038, allocations: 421.9 kB / 1.146 GB, free: 6.754 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002863/1.038, allocations: 12 kB / 1.146 GB, free: 6.742 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/1.04, allocations: 111.7 kB / 1.146 GB, free: 6.633 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/1.04, allocations: 48.38 kB / 1.146 GB, free: 6.582 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.121e-05/1.04, allocations: 35.98 kB / 1.146 GB, free: 6.547 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002296/1.042, allocations: 1.554 MB / 1.148 GB, free: 4.988 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/1.042, allocations: 4 kB / 1.148 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003003/1.045, allocations: 1.103 MB / 1.149 GB, free: 3.879 MB / 0.9044 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.001793/1.047, allocations: 0.7345 MB / 1.15 GB, free: 3.281 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002539/1.049, allocations: 1.346 MB / 1.151 GB, free: 1.938 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.05, allocations: 4 kB / 1.151 GB, free: 1.934 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005231/1.05, allocations: 328.4 kB / 1.151 GB, free: 1.613 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006471/1.057, allocations: 1.386 MB / 1.153 GB, free: 256 kB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007247/1.064, allocations: 4.591 MB / 1.157 GB, free: 11.61 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/1.065, allocations: 1.586 MB / 1.159 GB, free: 9.992 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007421/1.066, allocations: 187.3 kB / 1.159 GB, free: 9.809 MB / 0.92 GB Notification: Performance of SimCode: time 8.41e-07/1.066, allocations: 0 / 1.159 GB, free: 9.809 MB / 0.92 GB Notification: Performance of Templates: time 0.06212/1.128, allocations: 39.6 MB / 1.197 GB, free: 2.512 MB / 0.9512 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