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.0008176/0.0008177, allocations: 99.42 kB / 16.02 MB, free: 76 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.001/0.001, allocations: 185.1 kB / 16.92 MB, free: 6.688 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.375 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.414/2.414, allocations: 390.9 MB / 0.667 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003944/0.0003942, allocations: 8.281 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7529/0.7533, allocations: 142.4 MB / 0.9557 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1096/0.863, allocations: 110.2 MB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03244/0.8954, allocations: 20.1 MB / 1.083 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005608/0.9011, allocations: 91.38 kB / 1.083 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004547/0.9057, allocations: 1.041 MB / 1.084 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01219/0.9179, allocations: 3.383 MB / 1.087 GB, free: 8.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.008916/0.9269, allocations: 2.867 MB / 1.09 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01402/0.9409, allocations: 9.537 MB / 1.099 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004924/0.9459, allocations: 2.071 MB / 1.101 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006877/0.9528, allocations: 2.325 MB / 1.104 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004721/0.9575, allocations: 2.03 MB / 1.106 GB, free: 5.59 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0009873/0.9586, allocations: 88 kB / 1.106 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004868/0.9635, allocations: 1.45 MB / 1.107 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.9647, allocations: 0.517 MB / 1.108 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003333/0.9681, allocations: 1.33 MB / 1.109 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005574/0.9737, allocations: 3.327 MB / 1.112 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.9737, allocations: 0 / 1.112 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.156e-06/0.9737, allocations: 0 / 1.112 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001828/0.9739, allocations: 0 / 1.112 GB, free: 14.85 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.006796/0.9807, allocations: 2.685 MB / 1.115 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.9808, allocations: 8.031 kB / 1.115 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.9822, allocations: 328.5 kB / 1.115 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00618/0.9884, allocations: 2.162 MB / 1.117 GB, free: 9.531 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.9886, allocations: 123 kB / 1.117 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005024/0.9891, allocations: 164 kB / 1.118 GB, free: 9.25 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00386/0.993, allocations: 1.612 MB / 1.119 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.9931, allocations: 3.938 kB / 1.119 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.9933, allocations: 67.98 kB / 1.119 GB, free: 7.504 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.411e-05/0.9934, allocations: 51.92 kB / 1.119 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00251/0.9959, allocations: 1.155 MB / 1.12 GB, free: 6.293 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.0133/1.009, allocations: 7.901 MB / 1.128 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009022/1.01, allocations: 0.4896 MB / 1.129 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005659/1.011, allocations: 327 kB / 1.129 GB, free: 13.07 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007243/1.011, allocations: 0.7563 MB / 1.13 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/1.012, allocations: 39.12 kB / 1.13 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 4.449e-06/1.012, allocations: 3.984 kB / 1.13 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002617/1.014, allocations: 1.011 MB / 1.131 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/1.014, allocations: 55.97 kB / 1.131 GB, free: 11 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/1.021, allocations: 2.32 MB / 1.133 GB, free: 8.672 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0003336/1.021, allocations: 45.7 kB / 1.133 GB, free: 8.621 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.00185/1.023, allocations: 1.145 MB / 1.134 GB, free: 7.465 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000565/1.023, allocations: 220.9 kB / 1.134 GB, free: 7.246 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004205/1.024, allocations: 105.7 kB / 1.134 GB, free: 7.137 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002927/1.024, allocations: 353.9 kB / 1.135 GB, free: 6.785 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/1.026, allocations: 354.5 kB / 1.135 GB, free: 6.438 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/1.027, allocations: 0.7541 MB / 1.136 GB, free: 5.527 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/1.03, allocations: 0.9902 MB / 1.137 GB, free: 4.426 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.807e-05/1.03, allocations: 4 kB / 1.137 GB, free: 4.422 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004765/1.035, allocations: 1.303 MB / 1.138 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005585/1.036, allocations: 346.6 kB / 1.138 GB, free: 2.652 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/1.036, allocations: 11.94 kB / 1.138 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.549e-05/1.036, allocations: 12 kB / 1.138 GB, free: 2.629 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/1.037, allocations: 255.6 kB / 1.139 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.335e-05/1.037, allocations: 19.94 kB / 1.139 GB, free: 2.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/1.041, allocations: 254.2 kB / 1.139 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/1.041, allocations: 55.98 kB / 1.139 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/1.041, allocations: 7.938 kB / 1.139 GB, free: 2.047 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003192/1.045, allocations: 1.034 MB / 1.14 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/1.045, allocations: 8 kB / 1.14 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/1.045, allocations: 12.28 kB / 1.14 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/1.046, allocations: 256.1 kB / 1.14 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-05/1.046, allocations: 15.94 kB / 1.14 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003408/1.05, allocations: 226.5 kB / 1.141 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/1.05, allocations: 51.98 kB / 1.141 GB, free: 468 kB / 0.8887 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.002341/1.052, allocations: 0.5827 MB / 1.141 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/1.053, allocations: 244.9 kB / 1.141 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/1.058, allocations: 0.8897 MB / 1.142 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/1.058, allocations: 4 kB / 1.142 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/1.058, allocations: 4 kB / 1.142 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002098/1.06, allocations: 0.697 MB / 1.143 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008995/1.069, allocations: 2.578 MB / 1.145 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/1.069, allocations: 0 / 1.145 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/1.07, allocations: 131.8 kB / 1.146 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.999e-05/1.07, allocations: 4 kB / 1.146 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.225e-05/1.07, allocations: 20.09 kB / 1.146 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.218e-05/1.07, allocations: 4 kB / 1.146 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.07, allocations: 0 / 1.146 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004295/1.074, allocations: 1.341 MB / 1.147 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/1.076, allocations: 453.8 kB / 1.147 GB, free: 9.336 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005602/1.077, allocations: 15.98 kB / 1.147 GB, free: 9.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/1.079, allocations: 111.5 kB / 1.148 GB, free: 9.215 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/1.08, allocations: 48.5 kB / 1.148 GB, free: 9.168 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/1.08, allocations: 47.84 kB / 1.148 GB, free: 9.121 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.004738/1.084, allocations: 1.546 MB / 1.149 GB, free: 7.57 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.163e-06/1.085, allocations: 0 / 1.149 GB, free: 7.57 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.006018/1.091, allocations: 1.107 MB / 1.15 GB, free: 6.461 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.003176/1.094, allocations: 0.7236 MB / 1.151 GB, free: 5.871 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.00527/1.099, allocations: 1.369 MB / 1.152 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/1.099, allocations: 0 / 1.152 GB, free: 4.504 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.001099/1.1, allocations: 336.3 kB / 1.153 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01599/1.116, allocations: 1.383 MB / 1.154 GB, free: 2.816 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/1.132, allocations: 4.679 MB / 1.158 GB, free: 14.09 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002841/1.134, allocations: 1.586 MB / 1.16 GB, free: 12.47 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/1.136, allocations: 179.4 kB / 1.16 GB, free: 12.29 MB / 0.92 GB Notification: Performance of SimCode: time 2.184e-06/1.136, allocations: 0 / 1.16 GB, free: 12.29 MB / 0.92 GB Notification: Performance of Templates: time 0.1131/1.249, allocations: 39.21 MB / 1.198 GB, free: 5.379 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