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.001146/0.001146, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.01274/0.01274, allocations: 170 kB / 16.27 MB, free: 6.324 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.491/1.491, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.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.66/2.66, allocations: 437.8 MB / 0.7121 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004385, allocations: 8 kB / 0.8728 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9888/0.9893, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1116/1.101, allocations: 110.1 MB / 1.131 GB, free: 1.367 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03295/1.134, allocations: 20.13 MB / 1.15 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006556/1.14, allocations: 95.38 kB / 1.15 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005506/1.146, allocations: 1.041 MB / 1.151 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01438/1.16, allocations: 3.377 MB / 1.155 GB, free: 8.668 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.009884/1.17, allocations: 2.866 MB / 1.157 GB, free: 5.84 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01526/1.186, allocations: 9.523 MB / 1.167 GB, free: 12.29 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005716/1.191, allocations: 2.078 MB / 1.169 GB, free: 10.16 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007324/1.199, allocations: 2.31 MB / 1.171 GB, free: 7.84 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005067/1.204, allocations: 2.049 MB / 1.173 GB, free: 5.781 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001017/1.205, allocations: 88 kB / 1.173 GB, free: 5.695 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005173/1.21, allocations: 1.442 MB / 1.175 GB, free: 4.25 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001539/1.212, allocations: 0.5054 MB / 1.175 GB, free: 3.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003627/1.215, allocations: 1.338 MB / 1.176 GB, free: 2.391 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.009184/1.224, allocations: 4.158 MB / 1.18 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/1.225, allocations: 4 kB / 1.18 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.124e-06/1.225, allocations: 0 / 1.18 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001853/1.225, allocations: 0 / 1.18 GB, free: 14.21 MB / 0.9356 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.007317/1.232, allocations: 2.689 MB / 1.183 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/1.232, allocations: 11.98 kB / 1.183 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/1.233, allocations: 328.5 kB / 1.183 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005323/1.239, allocations: 2.157 MB / 1.185 GB, free: 8.895 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/1.239, allocations: 123 kB / 1.186 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005129/1.239, allocations: 171.9 kB / 1.186 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00396/1.243, allocations: 1.619 MB / 1.187 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.83e-05/1.243, allocations: 7.984 kB / 1.187 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001788/1.244, allocations: 67.94 kB / 1.187 GB, free: 6.848 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/1.244, allocations: 43.94 kB / 1.187 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002566/1.246, allocations: 1.159 MB / 1.189 GB, free: 5.641 MB / 0.9356 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.0136/1.26, allocations: 7.904 MB / 1.196 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/1.261, allocations: 485.9 kB / 1.197 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/1.262, allocations: 331 kB / 1.197 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009602/1.263, allocations: 0.7485 MB / 1.198 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.486e-05/1.263, allocations: 39.12 kB / 1.198 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 4.458e-06/1.263, allocations: 0 / 1.198 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.003538/1.267, allocations: 1.008 MB / 1.199 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/1.267, allocations: 55.97 kB / 1.199 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/1.273, allocations: 2.32 MB / 1.201 GB, free: 8.043 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0003539/1.273, allocations: 45.7 kB / 1.201 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001563/1.275, allocations: 1.161 MB / 1.202 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004303/1.275, allocations: 209 kB / 1.202 GB, free: 6.613 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/1.276, allocations: 109.6 kB / 1.203 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001849/1.276, allocations: 345.9 kB / 1.203 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/1.277, allocations: 358.4 kB / 1.203 GB, free: 5.809 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/1.278, allocations: 0.7541 MB / 1.204 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/1.28, allocations: 0.9902 MB / 1.205 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/1.281, allocations: 4 kB / 1.205 GB, free: 3.781 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003718/1.284, allocations: 1.303 MB / 1.206 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003106/1.285, allocations: 347.1 kB / 1.207 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/1.285, allocations: 8 kB / 1.207 GB, free: 2.008 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.645e-05/1.285, allocations: 12 kB / 1.207 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/1.286, allocations: 255.6 kB / 1.207 GB, free: 1.746 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.62e-05/1.286, allocations: 23.98 kB / 1.207 GB, free: 1.723 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00288/1.289, allocations: 246.2 kB / 1.207 GB, free: 1.48 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001922/1.289, allocations: 51.98 kB / 1.207 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/1.289, allocations: 8.938 kB / 1.207 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002727/1.292, allocations: 1.031 MB / 1.208 GB, free: 396 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/1.292, allocations: 12.16 kB / 1.208 GB, free: 384 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/1.292, allocations: 20 kB / 1.208 GB, free: 364 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/1.293, allocations: 251.6 kB / 1.208 GB, free: 112 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.78e-05/1.293, allocations: 19.94 kB / 1.208 GB, free: 92 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002864/1.296, allocations: 218.6 kB / 1.209 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/1.296, allocations: 55.98 kB / 1.209 GB, free: 15.82 MB / 0.9669 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.001727/1.298, allocations: 0.571 MB / 1.209 GB, free: 15.24 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000897/1.299, allocations: 244.9 kB / 1.21 GB, free: 15 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00292/1.302, allocations: 0.9052 MB / 1.21 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/1.302, allocations: 4 kB / 1.21 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/1.302, allocations: 4 kB / 1.21 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001619/1.304, allocations: 0.6853 MB / 1.211 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008485/1.312, allocations: 2.582 MB / 1.214 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.312, allocations: 4 kB / 1.214 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008659/1.313, allocations: 131.9 kB / 1.214 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.456e-05/1.313, allocations: 4 kB / 1.214 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.338e-05/1.313, allocations: 19.98 kB / 1.214 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.17e-05/1.313, allocations: 4 kB / 1.214 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.313, allocations: 0 / 1.214 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003829/1.317, allocations: 1.337 MB / 1.215 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/1.319, allocations: 453.8 kB / 1.215 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007246/1.32, allocations: 16 kB / 1.216 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002177/1.322, allocations: 119.7 kB / 1.216 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/1.322, allocations: 36.52 kB / 1.216 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/1.322, allocations: 39.91 kB / 1.216 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.004483/1.327, allocations: 1.546 MB / 1.217 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of sort global known variables: time 4.01e-07/1.327, allocations: 0 / 1.217 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.005352/1.332, allocations: 1.095 MB / 1.218 GB, free: 5.855 MB / 0.9669 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.002545/1.335, allocations: 0.7475 MB / 1.219 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00417/1.339, allocations: 1.369 MB / 1.22 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.339, allocations: 7.875 kB / 1.22 GB, free: 3.867 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00081/1.34, allocations: 336.5 kB / 1.221 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01103/1.351, allocations: 1.374 MB / 1.222 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/1.362, allocations: 4.603 MB / 1.227 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/1.364, allocations: 1.59 MB / 1.228 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.004191/1.369, allocations: 0.5024 MB / 1.229 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008759/1.37, allocations: 175.4 kB / 1.229 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of SimCode: time 1.062e-06/1.37, allocations: 0 / 1.229 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of Templates: time 0.6813/2.051, allocations: 45.03 MB / 1.273 GB, free: 209.8 MB / 0.9981 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/jenkins/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