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.001248/0.001248, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001284/0.001284, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.482/1.482, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.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.419/2.419, allocations: 390.2 MB / 0.6643 GB, free: 0.5078 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 71.88 kB / 0.812 GB, free: 14.74 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8202/0.8217, allocations: 140.4 MB / 0.9491 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1049/0.9266, allocations: 111.7 MB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03153/0.9581, allocations: 20.1 MB / 1.078 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005766/0.964, allocations: 103.3 kB / 1.078 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004597/0.9686, allocations: 1.092 MB / 1.079 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.9799, allocations: 3.434 MB / 1.082 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.009601/0.9895, allocations: 2.876 MB / 1.085 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01363/1.003, allocations: 7.264 MB / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005571/1.009, allocations: 2.537 MB / 1.095 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008836/1.018, allocations: 2.821 MB / 1.097 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004318/1.022, allocations: 2.194 MB / 1.1 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001322/1.023, allocations: 259.9 kB / 1.1 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005059/1.028, allocations: 1.661 MB / 1.101 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001474/1.03, allocations: 0.685 MB / 1.102 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003992/1.034, allocations: 1.516 MB / 1.104 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0102/1.044, allocations: 4.35 MB / 1.108 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/1.044, allocations: 3.938 kB / 1.108 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.126e-06/1.044, allocations: 0 / 1.108 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002278/1.044, allocations: 3.938 kB / 1.108 GB, free: 14.98 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.009467/1.054, allocations: 3.223 MB / 1.111 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/1.054, allocations: 8.031 kB / 1.111 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001498/1.055, allocations: 328.5 kB / 1.111 GB, free: 11.36 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005562/1.061, allocations: 2.155 MB / 1.113 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/1.061, allocations: 123 kB / 1.114 GB, free: 9.008 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005185/1.062, allocations: 172 kB / 1.114 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004145/1.066, allocations: 1.615 MB / 1.115 GB, free: 7.16 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-05/1.066, allocations: 4 kB / 1.115 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/1.066, allocations: 64 kB / 1.115 GB, free: 7.094 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.25e-05/1.066, allocations: 43.94 kB / 1.115 GB, free: 7.051 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002505/1.069, allocations: 1.143 MB / 1.116 GB, free: 5.902 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.01506/1.084, allocations: 7.889 MB / 1.124 GB, free: 13.5 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008915/1.085, allocations: 489.5 kB / 1.125 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/1.085, allocations: 319 kB / 1.125 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007021/1.086, allocations: 0.7601 MB / 1.126 GB, free: 11.78 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.135e-05/1.086, allocations: 39.12 kB / 1.126 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 2.925e-06/1.086, allocations: 0 / 1.126 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002655/1.089, allocations: 0.9919 MB / 1.127 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/1.089, allocations: 59.97 kB / 1.127 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/1.093, allocations: 2.316 MB / 1.129 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002459/1.093, allocations: 45.7 kB / 1.129 GB, free: 8.281 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001002/1.094, allocations: 1.149 MB / 1.13 GB, free: 7.121 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/1.094, allocations: 220.9 kB / 1.13 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003908/1.095, allocations: 254.6 kB / 1.131 GB, free: 6.648 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001303/1.095, allocations: 341.9 kB / 1.131 GB, free: 6.309 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006768/1.095, allocations: 369.8 kB / 1.131 GB, free: 5.945 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009623/1.096, allocations: 0.7424 MB / 1.132 GB, free: 5.043 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/1.098, allocations: 0.9824 MB / 1.133 GB, free: 3.953 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/1.098, allocations: 4 kB / 1.133 GB, free: 3.949 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00266/1.1, allocations: 1.295 MB / 1.134 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/1.1, allocations: 8 kB / 1.134 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/1.1, allocations: 12.12 kB / 1.134 GB, free: 2.621 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/1.101, allocations: 12 kB / 1.134 GB, free: 2.609 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009866/1.102, allocations: 251.8 kB / 1.135 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.647e-05/1.102, allocations: 19.92 kB / 1.135 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/1.104, allocations: 254.1 kB / 1.135 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/1.104, allocations: 51.98 kB / 1.135 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001516/1.105, allocations: 0.7524 MB / 1.136 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001019/1.106, allocations: 0.7388 MB / 1.136 GB, free: 392 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001364/1.108, allocations: 0.9561 MB / 1.137 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.101e-06/1.108, allocations: 7.938 kB / 1.137 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002691/1.111, allocations: 1.251 MB / 1.138 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/1.111, allocations: 8 kB / 1.138 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.111, allocations: 8 kB / 1.138 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/1.111, allocations: 15.98 kB / 1.139 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009393/1.112, allocations: 255.6 kB / 1.139 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-05/1.112, allocations: 19.94 kB / 1.139 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/1.114, allocations: 195.4 kB / 1.139 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/1.114, allocations: 51.98 kB / 1.139 GB, free: 13.5 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.0004341/1.115, allocations: 247.9 kB / 1.139 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006305/1.115, allocations: 233.1 kB / 1.139 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/1.117, allocations: 0.8819 MB / 1.14 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/1.117, allocations: 8 kB / 1.14 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.117, allocations: 7.938 kB / 1.14 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001005/1.118, allocations: 0.6814 MB / 1.141 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004601/1.123, allocations: 2.574 MB / 1.144 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/1.123, allocations: 3.984 kB / 1.144 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000533/1.124, allocations: 124 kB / 1.144 GB, free: 8.629 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/1.124, allocations: 4 kB / 1.144 GB, free: 8.625 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.987e-05/1.124, allocations: 19.98 kB / 1.144 GB, free: 8.605 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.333e-06/1.124, allocations: 4 kB / 1.144 GB, free: 8.602 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.124, allocations: 3.938 kB / 1.144 GB, free: 8.598 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/1.126, allocations: 1.309 MB / 1.145 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009581/1.127, allocations: 421.9 kB / 1.145 GB, free: 6.824 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/1.127, allocations: 12 kB / 1.145 GB, free: 6.812 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/1.128, allocations: 112 kB / 1.145 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.128, allocations: 44.45 kB / 1.146 GB, free: 6.656 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/1.128, allocations: 39.97 kB / 1.146 GB, free: 6.617 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002304/1.131, allocations: 1.55 MB / 1.147 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.9e-07/1.131, allocations: 0 / 1.147 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003015/1.134, allocations: 1.107 MB / 1.148 GB, free: 3.953 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.001801/1.136, allocations: 0.751 MB / 1.149 GB, free: 3.34 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003003/1.139, allocations: 1.445 MB / 1.15 GB, free: 1.898 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/1.139, allocations: 0 / 1.15 GB, free: 1.898 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005221/1.139, allocations: 319 kB / 1.151 GB, free: 1.586 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006102/1.145, allocations: 1.389 MB / 1.152 GB, free: 256 kB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006837/1.152, allocations: 4.536 MB / 1.156 GB, free: 11.67 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/1.153, allocations: 1.594 MB / 1.158 GB, free: 10.04 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002573/1.156, allocations: 497.5 kB / 1.158 GB, free: 9.555 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003971/1.156, allocations: 183.4 kB / 1.159 GB, free: 9.375 MB / 0.92 GB Notification: Performance of SimCode: time 1.192e-06/1.156, allocations: 0 / 1.159 GB, free: 9.375 MB / 0.92 GB Notification: Performance of Templates: time 0.08988/1.246, allocations: 46.12 MB / 1.204 GB, free: 11.83 MB / 0.9669 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/jenkins/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