Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001421/0.001421, allocations: 100.1 kB / 15.88 MB, free: 12 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.00173/0.00173, allocations: 200 kB / 16.79 MB, free: 6.828 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.7/2.7, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 64.78 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3125, allocations: 157.4 MB / 1.053 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1148/0.4273, allocations: 111.9 MB / 1.162 GB, free: 8.016 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.03041/0.4577, allocations: 20.32 MB / 1.182 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004574/0.4624, allocations: 99.31 kB / 1.182 GB, free: 3.559 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004111/0.4666, allocations: 1.049 MB / 1.183 GB, free: 2.504 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.01085/0.4775, allocations: 3.384 MB / 1.186 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.007871/0.4853, allocations: 2.842 MB / 1.189 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.01121/0.4966, allocations: 9.528 MB / 1.198 GB, free: 2.746 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004255/0.5009, allocations: 2.144 MB / 1.2 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006106/0.507, allocations: 2.399 MB / 1.203 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004467/0.5115, allocations: 2.127 MB / 1.205 GB, free: 12 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.5125, allocations: 120 kB / 1.205 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00455/0.5171, allocations: 1.474 MB / 1.206 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.5183, allocations: 0.5639 MB / 1.207 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.003105/0.5215, allocations: 1.368 MB / 1.208 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004688/0.5262, allocations: 3.391 MB / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.5262, allocations: 0 / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5262, allocations: 0 / 1.212 GB, free: 5.066 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001402/0.5264, allocations: 0 / 1.212 GB, free: 5.066 MB / 0.9669 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.007205/0.5336, allocations: 3.241 MB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.5336, allocations: 11.97 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.5347, allocations: 332.5 kB / 1.215 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004059/0.5387, allocations: 2.139 MB / 1.217 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.421e-05/0.5389, allocations: 131 kB / 1.217 GB, free: 15.08 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/0.5391, allocations: 168 kB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002815/0.5419, allocations: 1.616 MB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/0.542, allocations: 7.906 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.5421, allocations: 60 kB / 1.219 GB, free: 13.17 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.524e-05/0.5422, allocations: 47.92 kB / 1.219 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.5442, allocations: 1.147 MB / 1.22 GB, free: 11.97 MB / 0.9825 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.01103/0.5552, allocations: 7.881 MB / 1.228 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000796/0.556, allocations: 477.7 kB / 1.228 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004989/0.5565, allocations: 327 kB / 1.229 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005988/0.5572, allocations: 0.7524 MB / 1.23 GB, free: 1.859 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.5572, allocations: 43.12 kB / 1.23 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 3.006e-06/0.5572, allocations: 0 / 1.23 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.002192/0.5594, allocations: 0.9919 MB / 1.231 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.5595, allocations: 55.97 kB / 1.231 GB, free: 0.7461 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/0.5626, allocations: 2.316 MB / 1.233 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.5628, allocations: 49.7 kB / 1.233 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009004/0.5637, allocations: 1.157 MB / 1.234 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/0.564, allocations: 212.9 kB / 1.234 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003695/0.5643, allocations: 254.7 kB / 1.234 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.5645, allocations: 349.9 kB / 1.235 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006409/0.5651, allocations: 361.9 kB / 1.235 GB, free: 12.02 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009172/0.566, allocations: 0.7502 MB / 1.236 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.5674, allocations: 0.9785 MB / 1.237 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.5674, allocations: 4 kB / 1.237 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002452/0.5699, allocations: 1.296 MB / 1.238 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.5699, allocations: 8 kB / 1.238 GB, free: 8.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.57, allocations: 8 kB / 1.238 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/0.57, allocations: 12 kB / 1.238 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009771/0.571, allocations: 251.6 kB / 1.238 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.425e-05/0.571, allocations: 19.92 kB / 1.238 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/0.5729, allocations: 242.3 kB / 1.239 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.573, allocations: 51.98 kB / 1.239 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001361/0.5744, allocations: 0.7641 MB / 1.239 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009135/0.5753, allocations: 0.7348 MB / 1.24 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001286/0.5766, allocations: 0.9562 MB / 1.241 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.628e-06/0.5767, allocations: 4 kB / 1.241 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002327/0.579, allocations: 1.266 MB / 1.242 GB, free: 4.117 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.579, allocations: 8 kB / 1.242 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.579, allocations: 8 kB / 1.242 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.5791, allocations: 16 kB / 1.242 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009109/0.58, allocations: 244.2 kB / 1.243 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.925e-05/0.58, allocations: 23.92 kB / 1.243 GB, free: 3.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.5818, allocations: 183.2 kB / 1.243 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-05/0.5819, allocations: 47.98 kB / 1.243 GB, free: 3.598 MB / 0.9981 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.0003044/0.5822, allocations: 255.8 kB / 1.243 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003946/0.5826, allocations: 237 kB / 1.243 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.5844, allocations: 0.8865 MB / 1.244 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.5844, allocations: 8 kB / 1.244 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.5844, allocations: 8 kB / 1.244 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009815/0.5854, allocations: 0.6814 MB / 1.245 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6399/1.225, allocations: 2.572 MB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/1.225, allocations: 1.375 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/1.226, allocations: 124.6 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.115e-05/1.226, allocations: 3.062 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.086e-05/1.226, allocations: 19.84 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.15e-05/1.226, allocations: 5.344 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.226, allocations: 1 kB / 1.247 GB, free: 186 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002753/1.229, allocations: 1.316 MB / 1.249 GB, free: 185.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/1.23, allocations: 410.6 kB / 1.249 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000341/1.23, allocations: 14.03 kB / 1.249 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/1.232, allocations: 118.8 kB / 1.249 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/1.232, allocations: 48.5 kB / 1.249 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.047e-05/1.232, allocations: 33.84 kB / 1.249 GB, free: 185.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002319/1.234, allocations: 1.551 MB / 1.251 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.234, allocations: 0 / 1.251 GB, free: 185.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002991/1.237, allocations: 1.094 MB / 1.252 GB, free: 185.6 MB / 0.9981 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.001686/1.239, allocations: 0.7304 MB / 1.253 GB, free: 185.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002603/1.241, allocations: 1.358 MB / 1.254 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.234e-06/1.241, allocations: 0 / 1.254 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005099/1.242, allocations: 325.6 kB / 1.254 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007035/1.249, allocations: 1.392 MB / 1.256 GB, free: 185.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006888/1.256, allocations: 4.592 MB / 1.26 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00169/1.258, allocations: 1.586 MB / 1.262 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008506/1.259, allocations: 181.5 kB / 1.262 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of SimCode: time 7.92e-07/1.259, allocations: 3.938 kB / 1.262 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.07032/1.329, allocations: 39.58 MB / 1.301 GB, free: 163.8 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches