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.001545/0.001545, allocations: 108 kB / 15.61 MB, free: 152 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.002301/0.002301, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.483/1.483, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.529/2.529, allocations: 390.2 MB / 0.6646 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 59.91 kB / 0.8125 GB, free: 14.5 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8537/0.8552, allocations: 140.4 MB / 0.9496 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.113/0.9683, allocations: 112.7 MB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03142/0.9998, allocations: 20.23 MB / 1.079 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005004/1.005, allocations: 107.3 kB / 1.079 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004601/1.01, allocations: 1.277 MB / 1.081 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01082/1.02, allocations: 3.688 MB / 1.084 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.008617/1.029, allocations: 3.076 MB / 1.087 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01062/1.04, allocations: 7.206 MB / 1.094 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004246/1.044, allocations: 2.568 MB / 1.097 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006347/1.05, allocations: 2.795 MB / 1.1 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003895/1.054, allocations: 2.127 MB / 1.102 GB, free: 5.664 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0007093/1.055, allocations: 256 kB / 1.102 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004275/1.059, allocations: 1.654 MB / 1.104 GB, free: 3.758 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008674/1.06, allocations: 0.689 MB / 1.104 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002335/1.062, allocations: 1.516 MB / 1.106 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007453/1.07, allocations: 4.327 MB / 1.11 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 1.254e-05/1.07, allocations: 4 kB / 1.11 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.946e-06/1.07, allocations: 7.875 kB / 1.11 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.416e-05/1.07, allocations: 0 / 1.11 GB, free: 13.19 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.007619/1.078, allocations: 3.214 MB / 1.113 GB, free: 9.91 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.078, allocations: 12.03 kB / 1.113 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/1.079, allocations: 332.6 kB / 1.113 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004533/1.083, allocations: 2.1 MB / 1.115 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.81e-05/1.083, allocations: 127 kB / 1.116 GB, free: 7.273 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002824/1.084, allocations: 167.9 kB / 1.116 GB, free: 7.109 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00296/1.087, allocations: 1.612 MB / 1.117 GB, free: 5.434 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/1.087, allocations: 4 kB / 1.117 GB, free: 5.43 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/1.087, allocations: 64 kB / 1.117 GB, free: 5.367 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-05/1.087, allocations: 47.92 kB / 1.117 GB, free: 5.32 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/1.089, allocations: 1.147 MB / 1.119 GB, free: 4.168 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.01338/1.103, allocations: 7.971 MB / 1.126 GB, free: 11.69 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008144/1.103, allocations: 481.7 kB / 1.127 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005386/1.104, allocations: 327 kB / 1.127 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000857/1.105, allocations: 0.7485 MB / 1.128 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/1.105, allocations: 47.06 kB / 1.128 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 3.016e-06/1.105, allocations: 3.938 kB / 1.128 GB, free: 9.914 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002217/1.107, allocations: 0.9919 MB / 1.129 GB, free: 8.914 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/1.107, allocations: 59.97 kB / 1.129 GB, free: 8.844 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003415/1.111, allocations: 2.339 MB / 1.131 GB, free: 6.492 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001766/1.111, allocations: 45.7 kB / 1.131 GB, free: 6.441 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001227/1.112, allocations: 1.149 MB / 1.132 GB, free: 5.281 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000234/1.112, allocations: 216.9 kB / 1.133 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/1.113, allocations: 254.6 kB / 1.133 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002103/1.113, allocations: 349.9 kB / 1.133 GB, free: 4.465 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008827/1.114, allocations: 357.9 kB / 1.133 GB, free: 4.113 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000963/1.115, allocations: 0.7541 MB / 1.134 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/1.116, allocations: 0.9824 MB / 1.135 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/1.116, allocations: 8 kB / 1.135 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002595/1.119, allocations: 1.295 MB / 1.136 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/1.119, allocations: 12 kB / 1.136 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/1.119, allocations: 8 kB / 1.136 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/1.119, allocations: 12 kB / 1.136 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000981/1.12, allocations: 247.6 kB / 1.137 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-05/1.12, allocations: 23.92 kB / 1.137 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/1.122, allocations: 170.6 kB / 1.137 GB, free: 336 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.947e-05/1.122, allocations: 51.98 kB / 1.137 GB, free: 284 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001583/1.123, allocations: 0.7564 MB / 1.138 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001109/1.125, allocations: 0.7426 MB / 1.138 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001489/1.126, allocations: 0.9484 MB / 1.139 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.71e-06/1.126, allocations: 4 kB / 1.139 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002564/1.129, allocations: 1.262 MB / 1.141 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/1.129, allocations: 8 kB / 1.141 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/1.129, allocations: 8 kB / 1.141 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/1.129, allocations: 16 kB / 1.141 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000892/1.13, allocations: 248.3 kB / 1.141 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/1.13, allocations: 27.92 kB / 1.141 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/1.131, allocations: 123.1 kB / 1.141 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.991e-05/1.131, allocations: 51.92 kB / 1.141 GB, free: 11.8 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.0003321/1.132, allocations: 252.4 kB / 1.141 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/1.132, allocations: 237.1 kB / 1.141 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001794/1.134, allocations: 0.8896 MB / 1.142 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/1.134, allocations: 8 kB / 1.142 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.134, allocations: 0 / 1.142 GB, free: 10.4 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001097/1.135, allocations: 0.6775 MB / 1.143 GB, free: 9.691 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/1.139, allocations: 2.589 MB / 1.146 GB, free: 7.035 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.139, allocations: 4 kB / 1.146 GB, free: 7.031 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/1.14, allocations: 119.9 kB / 1.146 GB, free: 6.914 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/1.14, allocations: 15.86 kB / 1.146 GB, free: 6.898 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.979e-05/1.14, allocations: 12 kB / 1.146 GB, free: 6.887 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/1.14, allocations: 4 kB / 1.146 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.14, allocations: 4 kB / 1.146 GB, free: 6.879 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/1.142, allocations: 1.313 MB / 1.147 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007697/1.143, allocations: 417.9 kB / 1.147 GB, free: 5.105 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002698/1.143, allocations: 16 kB / 1.147 GB, free: 5.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.144, allocations: 47.94 kB / 1.147 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/1.144, allocations: 48.38 kB / 1.148 GB, free: 4.992 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.157e-05/1.144, allocations: 35.98 kB / 1.148 GB, free: 4.957 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002493/1.147, allocations: 1.566 MB / 1.149 GB, free: 3.387 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.01e-07/1.147, allocations: 0 / 1.149 GB, free: 3.387 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003291/1.15, allocations: 1.115 MB / 1.15 GB, free: 2.27 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.00191/1.152, allocations: 0.7584 MB / 1.151 GB, free: 1.648 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003205/1.155, allocations: 1.444 MB / 1.152 GB, free: 208 kB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/1.155, allocations: 0 / 1.152 GB, free: 208 kB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005895/1.156, allocations: 327.8 kB / 1.153 GB, free: 15.88 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007095/1.163, allocations: 1.393 MB / 1.154 GB, free: 14.54 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/1.17, allocations: 3.727 MB / 1.158 GB, free: 10.78 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/1.171, allocations: 1.59 MB / 1.159 GB, free: 9.152 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002701/1.174, allocations: 498.7 kB / 1.16 GB, free: 8.66 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004508/1.175, allocations: 179.4 kB / 1.16 GB, free: 8.484 MB / 0.92 GB Notification: Performance of SimCode: time 9.32e-07/1.175, allocations: 0 / 1.16 GB, free: 8.484 MB / 0.92 GB Notification: Performance of Templates: time 0.08266/1.257, allocations: 46.87 MB / 1.206 GB, free: 10.18 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