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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001628/0.001628, allocations: 105.4 kB / 16.27 MB, free: 5.957 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.001658/0.001658, allocations: 190.3 kB / 17.2 MB, free: 5.59 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.437/1.437, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.868/2.868, allocations: 437.1 MB / 0.7111 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 71.52 kB / 0.8699 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3116, allocations: 151.6 MB / 1.018 GB, free: 10.64 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6763/0.988, allocations: 112.6 MB / 1.128 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03481/1.023, allocations: 20.24 MB / 1.148 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00682/1.03, allocations: 106 kB / 1.148 GB, free: 8.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.006232/1.036, allocations: 1.279 MB / 1.149 GB, free: 7.367 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01791/1.054, allocations: 3.694 MB / 1.153 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01078/1.065, allocations: 3.079 MB / 1.156 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01425/1.079, allocations: 7.198 MB / 1.163 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00587/1.085, allocations: 2.565 MB / 1.165 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008802/1.094, allocations: 2.807 MB / 1.168 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005578/1.1, allocations: 2.124 MB / 1.17 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.00102/1.101, allocations: 255.7 kB / 1.17 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00616/1.107, allocations: 1.644 MB / 1.172 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001438/1.108, allocations: 0.6944 MB / 1.173 GB, free: 9.875 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003667/1.112, allocations: 1.512 MB / 1.174 GB, free: 8.844 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008372/1.12, allocations: 4.339 MB / 1.178 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.12, allocations: 0 / 1.178 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.082e-06/1.12, allocations: 0 / 1.178 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001478/1.121, allocations: 0 / 1.178 GB, free: 5.812 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.007286/1.128, allocations: 3.232 MB / 1.181 GB, free: 3.426 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/1.128, allocations: 16.02 kB / 1.181 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/1.129, allocations: 323.8 kB / 1.182 GB, free: 3.262 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/1.133, allocations: 2.105 MB / 1.184 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/1.133, allocations: 126.1 kB / 1.184 GB, free: 1.598 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/1.134, allocations: 164.7 kB / 1.184 GB, free: 1.547 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003062/1.137, allocations: 1.612 MB / 1.186 GB, free: 0.543 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/1.137, allocations: 6.094 kB / 1.186 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001465/1.137, allocations: 62.94 kB / 1.186 GB, free: 0.4922 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.621e-05/1.137, allocations: 42.44 kB / 1.186 GB, free: 500 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002195/1.139, allocations: 1.15 MB / 1.187 GB, free: 15.9 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.01337/1.153, allocations: 7.973 MB / 1.195 GB, free: 8.574 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008776/1.153, allocations: 476.4 kB / 1.195 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005505/1.154, allocations: 326.8 kB / 1.195 GB, free: 7.785 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007643/1.155, allocations: 0.7602 MB / 1.196 GB, free: 6.859 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.52e-05/1.155, allocations: 43.12 kB / 1.196 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 3.016e-06/1.155, allocations: 0 / 1.196 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002519/1.157, allocations: 0.988 MB / 1.197 GB, free: 5.812 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/1.157, allocations: 59.97 kB / 1.197 GB, free: 5.742 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/1.161, allocations: 2.335 MB / 1.2 GB, free: 3.395 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002324/1.161, allocations: 45.7 kB / 1.2 GB, free: 3.344 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001126/1.163, allocations: 1.149 MB / 1.201 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000294/1.163, allocations: 216.9 kB / 1.201 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003882/1.163, allocations: 254.6 kB / 1.201 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001668/1.163, allocations: 349.9 kB / 1.202 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007081/1.164, allocations: 357.9 kB / 1.202 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/1.165, allocations: 0.7502 MB / 1.203 GB, free: 100 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/1.167, allocations: 0.994 MB / 1.204 GB, free: 15 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/1.167, allocations: 3.984 kB / 1.204 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003154/1.17, allocations: 1.295 MB / 1.205 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/1.17, allocations: 8.875 kB / 1.205 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/1.17, allocations: 8 kB / 1.205 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.824e-05/1.17, allocations: 20 kB / 1.205 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/1.171, allocations: 251.6 kB / 1.205 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.373e-05/1.171, allocations: 19.94 kB / 1.205 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00212/1.174, allocations: 162.3 kB / 1.205 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/1.174, allocations: 51.98 kB / 1.205 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001632/1.175, allocations: 0.7602 MB / 1.206 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001072/1.176, allocations: 0.7349 MB / 1.207 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001461/1.178, allocations: 0.9523 MB / 1.208 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.549e-06/1.178, allocations: 4 kB / 1.208 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002642/1.181, allocations: 1.255 MB / 1.209 GB, free: 9.176 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/1.181, allocations: 8.156 kB / 1.209 GB, free: 9.168 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/1.181, allocations: 15.98 kB / 1.209 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/1.181, allocations: 16.05 kB / 1.209 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000945/1.182, allocations: 255.5 kB / 1.209 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/1.182, allocations: 19.94 kB / 1.209 GB, free: 8.867 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/1.183, allocations: 123.2 kB / 1.209 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/1.184, allocations: 51.98 kB / 1.209 GB, free: 8.695 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.0003605/1.184, allocations: 244 kB / 1.21 GB, free: 8.449 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005142/1.184, allocations: 240.9 kB / 1.21 GB, free: 8.211 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/1.186, allocations: 0.8819 MB / 1.211 GB, free: 7.32 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/1.186, allocations: 8 kB / 1.211 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/1.186, allocations: 0 / 1.211 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001106/1.188, allocations: 0.693 MB / 1.211 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/1.192, allocations: 2.582 MB / 1.214 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/1.192, allocations: 0 / 1.214 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005829/1.193, allocations: 131.8 kB / 1.214 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/1.193, allocations: 0 / 1.214 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/1.193, allocations: 24.08 kB / 1.214 GB, free: 3.781 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.508e-06/1.193, allocations: 8 kB / 1.214 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.193, allocations: 0 / 1.214 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/1.195, allocations: 1.317 MB / 1.215 GB, free: 2.422 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001117/1.197, allocations: 414 kB / 1.216 GB, free: 1.996 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/1.197, allocations: 12 kB / 1.216 GB, free: 1.984 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/1.198, allocations: 47.86 kB / 1.216 GB, free: 1.938 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/1.198, allocations: 48.38 kB / 1.216 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/1.198, allocations: 35.97 kB / 1.216 GB, free: 1.855 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002526/1.201, allocations: 1.569 MB / 1.217 GB, free: 284 kB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/1.201, allocations: 0 / 1.217 GB, free: 284 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003656/1.204, allocations: 1.107 MB / 1.219 GB, free: 15.17 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.00236/1.207, allocations: 0.7515 MB / 1.219 GB, free: 14.55 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003173/1.21, allocations: 1.445 MB / 1.221 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.21, allocations: 4 kB / 1.221 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005847/1.211, allocations: 327 kB / 1.221 GB, free: 12.79 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006867/1.217, allocations: 1.386 MB / 1.222 GB, free: 11.45 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006839/1.224, allocations: 3.792 MB / 1.226 GB, free: 7.613 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/1.226, allocations: 1.59 MB / 1.228 GB, free: 5.992 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000656/1.226, allocations: 183.4 kB / 1.228 GB, free: 5.812 MB / 0.92 GB Notification: Performance of SimCode: time 5.21e-07/1.226, allocations: 0 / 1.228 GB, free: 5.812 MB / 0.92 GB Notification: Performance of Templates: time 0.06965/1.296, allocations: 39.59 MB / 1.266 GB, free: 14.53 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=400 -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