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.001332/0.001332, allocations: 108.9 kB / 16.37 MB, free: 6.016 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.001476/0.001476, allocations: 197.2 kB / 17.31 MB, free: 5.613 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.251/2.251, allocations: 390.3 MB / 0.6655 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 61.95 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2923, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1106/0.403, allocations: 112.7 MB / 1.061 GB, free: 6.973 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0334/0.4364, allocations: 20.23 MB / 1.081 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006741/0.4432, allocations: 111.3 kB / 1.081 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005189/0.4485, allocations: 1.273 MB / 1.082 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.6817/1.13, allocations: 3.689 MB / 1.086 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.008631/1.139, allocations: 3.112 MB / 1.089 GB, free: 37.14 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01431/1.153, allocations: 7.209 MB / 1.096 GB, free: 37.13 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005697/1.159, allocations: 2.577 MB / 1.098 GB, free: 36.83 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/1.169, allocations: 2.809 MB / 1.101 GB, free: 36.8 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006714/1.176, allocations: 2.13 MB / 1.103 GB, free: 36.42 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0009965/1.177, allocations: 253.7 kB / 1.104 GB, free: 36.42 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005502/1.182, allocations: 1.652 MB / 1.105 GB, free: 36.42 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0012/1.184, allocations: 0.6846 MB / 1.106 GB, free: 36.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003757/1.187, allocations: 1.52 MB / 1.107 GB, free: 35.88 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009796/1.197, allocations: 4.383 MB / 1.112 GB, free: 35.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.197, allocations: 5.578 kB / 1.112 GB, free: 35.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/1.197, allocations: 0 / 1.112 GB, free: 35.34 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001527/1.197, allocations: 0 / 1.112 GB, free: 35.34 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.01002/1.208, allocations: 3.223 MB / 1.115 GB, free: 33.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/1.208, allocations: 8.219 kB / 1.115 GB, free: 33.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/1.209, allocations: 328.3 kB / 1.115 GB, free: 33.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005351/1.214, allocations: 2.207 MB / 1.117 GB, free: 33.06 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/1.214, allocations: 125.3 kB / 1.117 GB, free: 33.06 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003032/1.215, allocations: 166 kB / 1.117 GB, free: 33.06 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003398/1.218, allocations: 1.612 MB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.697e-05/1.218, allocations: 3.812 kB / 1.119 GB, free: 32.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/1.218, allocations: 71.62 kB / 1.119 GB, free: 32.85 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.785e-05/1.218, allocations: 38.09 kB / 1.119 GB, free: 32.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00241/1.221, allocations: 1.148 MB / 1.12 GB, free: 32.84 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.01421/1.235, allocations: 7.927 MB / 1.128 GB, free: 29.13 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009205/1.236, allocations: 478.5 kB / 1.128 GB, free: 29.11 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005566/1.237, allocations: 325 kB / 1.129 GB, free: 29.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005693/1.237, allocations: 0.7558 MB / 1.13 GB, free: 28.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/1.237, allocations: 39.84 kB / 1.13 GB, free: 28.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=60): time 3.176e-06/1.237, allocations: 0 / 1.13 GB, free: 28.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=60): time 0.002838/1.24, allocations: 0.995 MB / 1.131 GB, free: 28.03 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/1.24, allocations: 58.34 kB / 1.131 GB, free: 27.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004842/1.245, allocations: 2.34 MB / 1.133 GB, free: 27.71 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0003888/1.245, allocations: 48.86 kB / 1.133 GB, free: 27.68 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009815/1.246, allocations: 1.144 MB / 1.134 GB, free: 27.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/1.247, allocations: 219.2 kB / 1.134 GB, free: 27.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/1.247, allocations: 258.2 kB / 1.135 GB, free: 27.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.555e-05/1.247, allocations: 349.4 kB / 1.135 GB, free: 26.87 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000664/1.248, allocations: 359.8 kB / 1.135 GB, free: 26.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008765/1.249, allocations: 0.7477 MB / 1.136 GB, free: 26.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/1.25, allocations: 0.978 MB / 1.137 GB, free: 25.93 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/1.25, allocations: 2.344 kB / 1.137 GB, free: 25.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002565/1.253, allocations: 1.29 MB / 1.138 GB, free: 25.44 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/1.253, allocations: 10.72 kB / 1.138 GB, free: 25.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.772e-05/1.253, allocations: 8.75 kB / 1.138 GB, free: 25.44 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.7e-05/1.253, allocations: 18 kB / 1.138 GB, free: 25.44 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/1.254, allocations: 253.6 kB / 1.138 GB, free: 25.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.602e-05/1.254, allocations: 25.92 kB / 1.138 GB, free: 25.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/1.256, allocations: 173.2 kB / 1.139 GB, free: 25.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/1.256, allocations: 54.42 kB / 1.139 GB, free: 25.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001504/1.257, allocations: 0.7562 MB / 1.139 GB, free: 24.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009113/1.258, allocations: 0.7417 MB / 1.14 GB, free: 24.33 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00132/1.26, allocations: 0.9487 MB / 1.141 GB, free: 23.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.913e-06/1.26, allocations: 10.23 kB / 1.141 GB, free: 23.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002524/1.262, allocations: 1.256 MB / 1.142 GB, free: 23.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/1.262, allocations: 12.69 kB / 1.142 GB, free: 23.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/1.262, allocations: 7.469 kB / 1.142 GB, free: 23.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/1.262, allocations: 15 kB / 1.142 GB, free: 23.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008317/1.263, allocations: 250.5 kB / 1.143 GB, free: 23.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/1.263, allocations: 23.89 kB / 1.143 GB, free: 23.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/1.265, allocations: 122.8 kB / 1.143 GB, free: 23.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.914e-05/1.265, allocations: 52.86 kB / 1.143 GB, free: 23.14 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.0003978/1.265, allocations: 256.6 kB / 1.143 GB, free: 22.92 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000404/1.266, allocations: 236.1 kB / 1.143 GB, free: 22.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001808/1.268, allocations: 0.8759 MB / 1.144 GB, free: 22.44 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/1.268, allocations: 17.53 kB / 1.144 GB, free: 22.43 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/1.268, allocations: 1.344 kB / 1.144 GB, free: 22.43 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009661/1.269, allocations: 0.6779 MB / 1.145 GB, free: 22.07 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004631/1.273, allocations: 2.591 MB / 1.147 GB, free: 20.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.273, allocations: 6.062 kB / 1.147 GB, free: 20.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/1.274, allocations: 125 kB / 1.147 GB, free: 20.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.039e-05/1.274, allocations: 5.047 kB / 1.147 GB, free: 20.86 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/1.274, allocations: 14.59 kB / 1.147 GB, free: 20.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/1.274, allocations: 2.938 kB / 1.147 GB, free: 20.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/1.274, allocations: 5.562 kB / 1.147 GB, free: 20.85 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/1.276, allocations: 1.319 MB / 1.149 GB, free: 20.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008904/1.277, allocations: 413.8 kB / 1.149 GB, free: 19.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/1.277, allocations: 14.34 kB / 1.149 GB, free: 19.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009269/1.278, allocations: 58.28 kB / 1.149 GB, free: 19.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/1.278, allocations: 41.98 kB / 1.149 GB, free: 19.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/1.278, allocations: 31.25 kB / 1.149 GB, free: 19.85 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.002134/1.28, allocations: 1.568 MB / 1.151 GB, free: 19.26 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.01e-07/1.28, allocations: 0 / 1.151 GB, free: 19.26 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00328/1.284, allocations: 1.112 MB / 1.152 GB, free: 19.03 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.001936/1.285, allocations: 0.7545 MB / 1.153 GB, free: 18.77 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002626/1.288, allocations: 1.349 MB / 1.154 GB, free: 18.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.288, allocations: 0 / 1.154 GB, free: 18.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005442/1.289, allocations: 326.8 kB / 1.154 GB, free: 18.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00631/1.295, allocations: 1.386 MB / 1.156 GB, free: 17.87 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006777/1.302, allocations: 3.671 MB / 1.159 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/1.303, allocations: 1.594 MB / 1.161 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002586/1.306, allocations: 0.494 MB / 1.161 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005198/1.306, allocations: 180.9 kB / 1.161 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of SimCode: time 1.683e-06/1.306, allocations: 0 / 1.161 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.07119/1.378, allocations: 44.43 MB / 1.205 GB, free: 8.73 MB / 0.8887 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 -s cvode -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