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.001265/0.001265, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.00121/0.00121, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.382/1.382, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.611/2.611, allocations: 437 MB / 0.711 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 68.83 kB / 0.8699 GB, free: 2.211 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3274, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.7826/1.11, allocations: 112.7 MB / 1.128 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.03721/1.147, allocations: 20.24 MB / 1.148 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006987/1.154, allocations: 109 kB / 1.148 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005391/1.16, allocations: 1.283 MB / 1.149 GB, free: 7.371 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01467/1.175, allocations: 3.688 MB / 1.153 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01059/1.185, allocations: 3.072 MB / 1.156 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01385/1.199, allocations: 7.196 MB / 1.163 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006252/1.205, allocations: 2.572 MB / 1.165 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009756/1.215, allocations: 2.807 MB / 1.168 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006019/1.221, allocations: 2.125 MB / 1.17 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001499/1.223, allocations: 254.8 kB / 1.17 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006809/1.23, allocations: 1.645 MB / 1.172 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001917/1.231, allocations: 0.6949 MB / 1.173 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004644/1.236, allocations: 1.511 MB / 1.174 GB, free: 8.828 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01024/1.246, allocations: 4.33 MB / 1.178 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 9.128e-06/1.246, allocations: 3.938 kB / 1.178 GB, free: 5.801 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.464e-06/1.246, allocations: 4 kB / 1.178 GB, free: 5.797 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001865/1.247, allocations: 3.938 kB / 1.178 GB, free: 5.793 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.009885/1.257, allocations: 3.226 MB / 1.181 GB, free: 3.414 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/1.257, allocations: 13.97 kB / 1.181 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001597/1.258, allocations: 330.5 kB / 1.182 GB, free: 3.246 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005428/1.264, allocations: 2.107 MB / 1.184 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/1.264, allocations: 132.3 kB / 1.184 GB, free: 1.574 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005067/1.264, allocations: 164.9 kB / 1.184 GB, free: 1.523 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004138/1.269, allocations: 1.611 MB / 1.186 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.176e-05/1.269, allocations: 2.5 kB / 1.186 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002439/1.269, allocations: 62.38 kB / 1.186 GB, free: 484 kB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.06e-05/1.269, allocations: 37.88 kB / 1.186 GB, free: 484 kB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002628/1.272, allocations: 1.155 MB / 1.187 GB, free: 15.88 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.01443/1.286, allocations: 7.974 MB / 1.195 GB, free: 8.566 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/1.287, allocations: 476.4 kB / 1.195 GB, free: 8.098 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005561/1.288, allocations: 326.8 kB / 1.195 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008213/1.288, allocations: 0.7602 MB / 1.196 GB, free: 6.852 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/1.288, allocations: 47.12 kB / 1.196 GB, free: 6.797 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 4.508e-06/1.288, allocations: 0 / 1.196 GB, free: 6.797 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002773/1.291, allocations: 0.988 MB / 1.197 GB, free: 5.801 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/1.291, allocations: 55.97 kB / 1.197 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004895/1.296, allocations: 2.335 MB / 1.2 GB, free: 3.387 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002423/1.296, allocations: 45.7 kB / 1.2 GB, free: 3.336 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001294/1.298, allocations: 1.149 MB / 1.201 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003319/1.298, allocations: 217 kB / 1.201 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005823/1.299, allocations: 254.6 kB / 1.201 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001735/1.299, allocations: 349.9 kB / 1.201 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007945/1.3, allocations: 357.9 kB / 1.202 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/1.301, allocations: 0.7541 MB / 1.203 GB, free: 88 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/1.303, allocations: 0.9784 MB / 1.204 GB, free: 15 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/1.303, allocations: 7.984 kB / 1.204 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003035/1.306, allocations: 1.291 MB / 1.205 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/1.306, allocations: 11.94 kB / 1.205 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/1.306, allocations: 8 kB / 1.205 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.877e-05/1.306, allocations: 16 kB / 1.205 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.307, allocations: 256.1 kB / 1.205 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.959e-05/1.307, allocations: 15.94 kB / 1.205 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00198/1.309, allocations: 166.3 kB / 1.205 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/1.309, allocations: 55.98 kB / 1.205 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001625/1.311, allocations: 0.7563 MB / 1.206 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001013/1.312, allocations: 0.7426 MB / 1.207 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001424/1.313, allocations: 0.9446 MB / 1.208 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.005e-06/1.313, allocations: 11.94 kB / 1.208 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002802/1.316, allocations: 1.261 MB / 1.209 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.316, allocations: 8 kB / 1.209 GB, free: 9.156 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/1.316, allocations: 12.83 kB / 1.209 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/1.316, allocations: 12 kB / 1.209 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009174/1.317, allocations: 251.6 kB / 1.209 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.054e-05/1.317, allocations: 19.94 kB / 1.209 GB, free: 8.867 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/1.319, allocations: 119.2 kB / 1.209 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/1.319, allocations: 55.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.0003749/1.32, allocations: 248 kB / 1.21 GB, free: 8.445 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008518/1.321, allocations: 236.9 kB / 1.21 GB, free: 8.211 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/1.323, allocations: 0.8896 MB / 1.211 GB, free: 7.312 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/1.323, allocations: 8 kB / 1.211 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.323, allocations: 0 / 1.211 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001071/1.324, allocations: 0.6853 MB / 1.211 GB, free: 6.594 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005608/1.33, allocations: 2.586 MB / 1.214 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/1.33, allocations: 0 / 1.214 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005647/1.33, allocations: 127.8 kB / 1.214 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.467e-05/1.33, allocations: 4 kB / 1.214 GB, free: 3.801 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/1.33, allocations: 23.98 kB / 1.214 GB, free: 3.777 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/1.33, allocations: 4 kB / 1.214 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.33, allocations: 96 / 1.214 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/1.333, allocations: 1.313 MB / 1.215 GB, free: 2.43 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.334, allocations: 418 kB / 1.216 GB, free: 2 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007089/1.335, allocations: 16 kB / 1.216 GB, free: 1.984 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/1.336, allocations: 43.86 kB / 1.216 GB, free: 1.941 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/1.336, allocations: 52.38 kB / 1.216 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-05/1.336, allocations: 31.97 kB / 1.216 GB, free: 1.859 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.003244/1.34, allocations: 1.569 MB / 1.217 GB, free: 288 kB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/1.34, allocations: 4 kB / 1.217 GB, free: 284 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.004707/1.344, allocations: 1.103 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.00216/1.347, allocations: 0.749 MB / 1.219 GB, free: 14.55 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003325/1.35, allocations: 1.441 MB / 1.221 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.35, allocations: 0 / 1.221 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0006427/1.351, allocations: 339 kB / 1.221 GB, free: 12.78 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007651/1.358, allocations: 1.379 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.008003/1.366, allocations: 3.788 MB / 1.226 GB, free: 7.617 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001852/1.368, allocations: 1.586 MB / 1.228 GB, free: 6 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007751/1.369, allocations: 187.4 kB / 1.228 GB, free: 5.816 MB / 0.92 GB Notification: Performance of SimCode: time 2.094e-06/1.369, allocations: 0 / 1.228 GB, free: 5.816 MB / 0.92 GB Notification: Performance of Templates: time 0.06776/1.437, allocations: 39.58 MB / 1.266 GB, free: 14.54 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=480 -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