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.001627/0.001628, allocations: 107.6 kB / 15.99 MB, free: 5.91 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.001901/0.001901, allocations: 192.5 kB / 16.91 MB, free: 5.758 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.422/1.422, allocations: 222.9 MB / 240.6 MB, free: 15.23 MB / 206.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.276/2.276, allocations: 390.2 MB / 0.665 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 67.86 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2629, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1117/0.3747, allocations: 111.7 MB / 1.059 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02846/0.4032, allocations: 20.08 MB / 1.078 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005901/0.4092, allocations: 99.31 kB / 1.079 GB, free: 4.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.004127/0.4133, allocations: 1.104 MB / 1.08 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.4241, allocations: 3.434 MB / 1.083 GB, free: 448 kB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.5945/1.019, allocations: 2.867 MB / 1.086 GB, free: 38.76 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01363/1.032, allocations: 7.261 MB / 1.093 GB, free: 38.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005501/1.038, allocations: 2.534 MB / 1.095 GB, free: 38.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009844/1.048, allocations: 2.826 MB / 1.098 GB, free: 38.47 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0058/1.053, allocations: 2.195 MB / 1.1 GB, free: 38.13 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001404/1.055, allocations: 253.8 kB / 1.1 GB, free: 38.13 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007006/1.062, allocations: 1.662 MB / 1.102 GB, free: 38.13 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001622/1.064, allocations: 0.6946 MB / 1.103 GB, free: 38.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004419/1.068, allocations: 1.509 MB / 1.104 GB, free: 37.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007453/1.075, allocations: 3.437 MB / 1.108 GB, free: 37.47 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/1.076, allocations: 4 kB / 1.108 GB, free: 37.46 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.845e-06/1.076, allocations: 2.047 kB / 1.108 GB, free: 37.46 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001934/1.076, allocations: 0 / 1.108 GB, free: 37.46 MB / 0.8575 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.009205/1.085, allocations: 3.224 MB / 1.111 GB, free: 35.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/1.085, allocations: 9.125 kB / 1.111 GB, free: 35.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/1.086, allocations: 328.7 kB / 1.111 GB, free: 35.79 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004917/1.091, allocations: 2.156 MB / 1.113 GB, free: 35.2 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/1.091, allocations: 128.2 kB / 1.113 GB, free: 35.2 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003126/1.092, allocations: 173.6 kB / 1.113 GB, free: 35.19 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003624/1.095, allocations: 1.605 MB / 1.115 GB, free: 34.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.159e-05/1.095, allocations: 4.844 kB / 1.115 GB, free: 34.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/1.096, allocations: 63.66 kB / 1.115 GB, free: 34.99 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.602e-05/1.096, allocations: 43.84 kB / 1.115 GB, free: 34.99 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/1.098, allocations: 1.148 MB / 1.116 GB, free: 34.97 MB / 0.8575 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.01318/1.111, allocations: 7.882 MB / 1.124 GB, free: 31.26 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009204/1.112, allocations: 487.3 kB / 1.124 GB, free: 31.22 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005284/1.113, allocations: 325.6 kB / 1.125 GB, free: 31.21 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005137/1.113, allocations: 0.7562 MB / 1.125 GB, free: 30.37 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/1.113, allocations: 47.81 kB / 1.126 GB, free: 30.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=60): time 2.394e-06/1.113, allocations: 0 / 1.126 GB, free: 30.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=60): time 0.002657/1.116, allocations: 0.9885 MB / 1.126 GB, free: 30.15 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/1.116, allocations: 61 kB / 1.127 GB, free: 30.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/1.12, allocations: 2.314 MB / 1.129 GB, free: 29.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002667/1.12, allocations: 47.48 kB / 1.129 GB, free: 29.81 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009723/1.121, allocations: 1.153 MB / 1.13 GB, free: 29.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/1.121, allocations: 217.5 kB / 1.13 GB, free: 29.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004512/1.122, allocations: 254.1 kB / 1.13 GB, free: 29.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.532e-05/1.122, allocations: 349.7 kB / 1.131 GB, free: 29 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007364/1.123, allocations: 361.1 kB / 1.131 GB, free: 28.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009956/1.124, allocations: 0.7482 MB / 1.132 GB, free: 28.55 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/1.125, allocations: 0.9741 MB / 1.133 GB, free: 28.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/1.125, allocations: 2.5 kB / 1.133 GB, free: 28.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003427/1.129, allocations: 1.296 MB / 1.134 GB, free: 28.06 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.027e-05/1.129, allocations: 7.906 kB / 1.134 GB, free: 28.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/1.129, allocations: 12.22 kB / 1.134 GB, free: 28.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.88e-05/1.129, allocations: 18.06 kB / 1.134 GB, free: 28.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/1.13, allocations: 251.2 kB / 1.134 GB, free: 28.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.191e-05/1.13, allocations: 26.05 kB / 1.134 GB, free: 28.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/1.133, allocations: 246.5 kB / 1.135 GB, free: 27.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/1.134, allocations: 52.98 kB / 1.135 GB, free: 27.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002416/1.136, allocations: 0.7663 MB / 1.135 GB, free: 27.87 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001096/1.137, allocations: 0.7338 MB / 1.136 GB, free: 27.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001508/1.139, allocations: 0.9626 MB / 1.137 GB, free: 26.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-05/1.139, allocations: 6.422 kB / 1.137 GB, free: 26.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003409/1.142, allocations: 1.249 MB / 1.138 GB, free: 26.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/1.142, allocations: 13.41 kB / 1.138 GB, free: 26.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/1.142, allocations: 8.438 kB / 1.138 GB, free: 26.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/1.142, allocations: 13.59 kB / 1.138 GB, free: 26.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/1.143, allocations: 251.2 kB / 1.139 GB, free: 26.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.281e-05/1.143, allocations: 22.86 kB / 1.139 GB, free: 26.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002832/1.146, allocations: 184.9 kB / 1.139 GB, free: 26.35 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.564e-05/1.146, allocations: 52.72 kB / 1.139 GB, free: 26.34 MB / 0.8575 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.0004574/1.147, allocations: 249.8 kB / 1.139 GB, free: 26.12 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005169/1.147, allocations: 234.8 kB / 1.139 GB, free: 26 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/1.149, allocations: 0.8853 MB / 1.14 GB, free: 25.63 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/1.149, allocations: 10.72 kB / 1.14 GB, free: 25.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/1.149, allocations: 3.188 kB / 1.14 GB, free: 25.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008995/1.15, allocations: 0.6808 MB / 1.141 GB, free: 25.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004752/1.155, allocations: 2.576 MB / 1.143 GB, free: 24.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.155, allocations: 1.375 kB / 1.143 GB, free: 24.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/1.155, allocations: 128.3 kB / 1.143 GB, free: 24.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/1.155, allocations: 5.438 kB / 1.143 GB, free: 24.06 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.325e-05/1.155, allocations: 12.72 kB / 1.143 GB, free: 24.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/1.155, allocations: 8.875 kB / 1.143 GB, free: 24.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.155, allocations: 3.188 kB / 1.143 GB, free: 24.05 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/1.157, allocations: 1.317 MB / 1.145 GB, free: 23.39 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009711/1.158, allocations: 423.7 kB / 1.145 GB, free: 23.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003168/1.159, allocations: 10.56 kB / 1.145 GB, free: 23.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/1.16, allocations: 116.9 kB / 1.145 GB, free: 23.05 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.549e-05/1.16, allocations: 45.17 kB / 1.145 GB, free: 23.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.508e-05/1.16, allocations: 37.02 kB / 1.145 GB, free: 23.04 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002111/1.162, allocations: 1.55 MB / 1.147 GB, free: 22.45 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.6e-07/1.162, allocations: 0 / 1.147 GB, free: 22.45 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003587/1.166, allocations: 1.104 MB / 1.148 GB, free: 22.22 MB / 0.8575 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.00191/1.168, allocations: 0.7348 MB / 1.149 GB, free: 21.96 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002943/1.171, allocations: 1.446 MB / 1.15 GB, free: 21.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.171, allocations: 0 / 1.15 GB, free: 21.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004967/1.171, allocations: 325.2 kB / 1.15 GB, free: 21.47 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006383/1.178, allocations: 1.401 MB / 1.152 GB, free: 21.05 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006576/1.184, allocations: 4.582 MB / 1.156 GB, free: 18.27 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/1.185, allocations: 1.584 MB / 1.158 GB, free: 17.46 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008101/1.186, allocations: 182.6 kB / 1.158 GB, free: 17.45 MB / 0.8575 GB Notification: Performance of SimCode: time 8.81e-07/1.186, allocations: 4 kB / 1.158 GB, free: 17.44 MB / 0.8575 GB Notification: Performance of Templates: time 0.06107/1.247, allocations: 39.26 MB / 1.196 GB, free: 2.004 MB / 0.8731 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