Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.008016/0.008016, allocations: 100.6 kB / 15.73 MB, free: 6.062 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.001749/0.001749, allocations: 194 kB / 16.67 MB, free: 5.973 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.983/2.983, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.86 kB / 1.065 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3646, allocations: 159.1 MB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.8825/1.247, allocations: 112.8 MB / 1.331 GB, free: 15.93 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04278/1.29, allocations: 20.29 MB / 1.351 GB, free: 1.434 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007199/1.297, allocations: 105.5 kB / 1.351 GB, free: 1.395 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.005875/1.303, allocations: 1.318 MB / 1.352 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01378/1.317, allocations: 3.877 MB / 1.356 GB, free: 14.32 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.01041/1.327, allocations: 3.136 MB / 1.359 GB, free: 12.61 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01405/1.341, allocations: 7.201 MB / 1.366 GB, free: 8.387 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00455/1.346, allocations: 2.107 MB / 1.368 GB, free: 6.902 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00773/1.353, allocations: 2.886 MB / 1.371 GB, free: 5.168 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005282/1.359, allocations: 2.127 MB / 1.373 GB, free: 3.875 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.001215/1.36, allocations: 255.2 kB / 1.373 GB, free: 3.875 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005572/1.365, allocations: 1.648 MB / 1.375 GB, free: 3.059 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.001847/1.367, allocations: 0.7249 MB / 1.375 GB, free: 2.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.004873/1.372, allocations: 1.505 MB / 1.377 GB, free: 1.457 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.01365/1.386, allocations: 4.406 MB / 1.381 GB, free: 14.39 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/1.386, allocations: 5.484 kB / 1.381 GB, free: 14.38 MB / 1.076 GB Notification: Performance of FrontEnd: time 3.076e-06/1.386, allocations: 3.938 kB / 1.381 GB, free: 14.38 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0002484/1.386, allocations: 0 / 1.381 GB, free: 14.38 MB / 1.076 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.01122/1.397, allocations: 3.315 MB / 1.384 GB, free: 11.91 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/1.397, allocations: 16.69 kB / 1.384 GB, free: 11.9 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002423/1.4, allocations: 347 kB / 1.385 GB, free: 11.72 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006787/1.407, allocations: 2.214 MB / 1.387 GB, free: 10.06 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/1.407, allocations: 130.8 kB / 1.387 GB, free: 9.996 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005885/1.407, allocations: 168.5 kB / 1.387 GB, free: 9.941 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004647/1.412, allocations: 1.608 MB / 1.389 GB, free: 8.941 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.914e-05/1.412, allocations: 9.375 kB / 1.389 GB, free: 8.934 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003044/1.412, allocations: 66.67 kB / 1.389 GB, free: 8.883 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.408e-05/1.412, allocations: 38.25 kB / 1.389 GB, free: 8.883 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003155/1.416, allocations: 1.155 MB / 1.39 GB, free: 8.293 MB / 1.076 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.01544/1.431, allocations: 7.927 MB / 1.398 GB, free: 1.512 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000919/1.432, allocations: 447.1 kB / 1.398 GB, free: 1.285 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005104/1.432, allocations: 303.3 kB / 1.398 GB, free: 1.125 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000706/1.433, allocations: 0.7522 MB / 1.399 GB, free: 252 kB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/1.433, allocations: 48.55 kB / 1.399 GB, free: 200 kB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.314e-06/1.433, allocations: 3.938 kB / 1.399 GB, free: 196 kB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002571/1.436, allocations: 0.9962 MB / 1.4 GB, free: 15.68 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/1.436, allocations: 57.81 kB / 1.4 GB, free: 15.62 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004669/1.44, allocations: 2.342 MB / 1.403 GB, free: 13.5 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0002576/1.441, allocations: 49.7 kB / 1.403 GB, free: 13.45 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001393/1.442, allocations: 1.163 MB / 1.404 GB, free: 12.28 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/1.442, allocations: 230.1 kB / 1.404 GB, free: 12.05 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005616/1.443, allocations: 254.8 kB / 1.404 GB, free: 11.79 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.443, allocations: 345.9 kB / 1.405 GB, free: 11.45 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007746/1.444, allocations: 361.9 kB / 1.405 GB, free: 11.09 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/1.445, allocations: 0.7541 MB / 1.406 GB, free: 10.18 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/1.447, allocations: 0.9824 MB / 1.407 GB, free: 9.086 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/1.447, allocations: 4 kB / 1.407 GB, free: 9.082 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00325/1.45, allocations: 1.308 MB / 1.408 GB, free: 7.762 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/1.45, allocations: 12.84 kB / 1.408 GB, free: 7.75 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/1.45, allocations: 8 kB / 1.408 GB, free: 7.742 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.132e-05/1.45, allocations: 12 kB / 1.408 GB, free: 7.73 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/1.451, allocations: 251.6 kB / 1.408 GB, free: 7.484 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.856e-05/1.451, allocations: 23.92 kB / 1.408 GB, free: 7.461 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002601/1.454, allocations: 170.9 kB / 1.408 GB, free: 7.293 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/1.454, allocations: 47.98 kB / 1.408 GB, free: 7.246 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00187/1.456, allocations: 0.7602 MB / 1.409 GB, free: 6.48 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001026/1.457, allocations: 0.7426 MB / 1.41 GB, free: 5.578 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001478/1.458, allocations: 0.9525 MB / 1.411 GB, free: 4.508 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.13e-05/1.458, allocations: 0 / 1.411 GB, free: 4.508 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002965/1.461, allocations: 1.271 MB / 1.412 GB, free: 3.227 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/1.461, allocations: 8 kB / 1.412 GB, free: 3.219 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/1.461, allocations: 12.12 kB / 1.412 GB, free: 3.207 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/1.461, allocations: 16 kB / 1.412 GB, free: 3.191 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009314/1.462, allocations: 251.6 kB / 1.412 GB, free: 2.945 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.706e-05/1.462, allocations: 19.92 kB / 1.412 GB, free: 2.926 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/1.464, allocations: 123.5 kB / 1.412 GB, free: 2.805 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/1.465, allocations: 51.98 kB / 1.412 GB, free: 2.754 MB / 1.092 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.0003573/1.465, allocations: 244 kB / 1.413 GB, free: 2.508 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009146/1.466, allocations: 254.3 kB / 1.413 GB, free: 2.258 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/1.468, allocations: 0.8926 MB / 1.414 GB, free: 1.355 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/1.468, allocations: 8 kB / 1.414 GB, free: 1.348 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.468, allocations: 0 / 1.414 GB, free: 1.348 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001102/1.469, allocations: 0.6775 MB / 1.414 GB, free: 0.6406 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005844/1.475, allocations: 2.59 MB / 1.417 GB, free: 13.97 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/1.475, allocations: 4 kB / 1.417 GB, free: 13.97 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/1.476, allocations: 123.9 kB / 1.417 GB, free: 13.85 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/1.476, allocations: 7.938 kB / 1.417 GB, free: 13.84 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/1.476, allocations: 12 kB / 1.417 GB, free: 13.83 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.534e-06/1.476, allocations: 7.938 kB / 1.417 GB, free: 13.82 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/1.476, allocations: 4 kB / 1.417 GB, free: 13.82 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/1.478, allocations: 1.338 MB / 1.418 GB, free: 12.45 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.48, allocations: 419.3 kB / 1.419 GB, free: 12.02 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008974/1.481, allocations: 12 kB / 1.419 GB, free: 12.01 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001703/1.482, allocations: 51.94 kB / 1.419 GB, free: 11.96 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/1.482, allocations: 48.61 kB / 1.419 GB, free: 11.91 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/1.483, allocations: 31.98 kB / 1.419 GB, free: 11.88 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.003278/1.486, allocations: 1.566 MB / 1.421 GB, free: 10.31 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.2e-07/1.486, allocations: 0 / 1.421 GB, free: 10.31 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.004961/1.491, allocations: 1.123 MB / 1.422 GB, free: 9.184 MB / 1.107 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.002442/1.493, allocations: 0.7443 MB / 1.422 GB, free: 8.57 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.002942/1.496, allocations: 1.281 MB / 1.424 GB, free: 7.297 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/1.496, allocations: 3.938 kB / 1.424 GB, free: 7.293 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0005998/1.497, allocations: 303.6 kB / 1.424 GB, free: 6.996 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007824/1.505, allocations: 1.396 MB / 1.425 GB, free: 5.652 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008156/1.513, allocations: 3.746 MB / 1.429 GB, free: 1.855 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/1.515, allocations: 1.594 MB / 1.43 GB, free: 236 kB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.002902/1.518, allocations: 0.4909 MB / 1.431 GB, free: 15.73 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/1.518, allocations: 171.4 kB / 1.431 GB, free: 15.57 MB / 1.123 GB Notification: Performance of SimCode: time 1.683e-06/1.518, allocations: 3.938 kB / 1.431 GB, free: 15.56 MB / 1.123 GB Notification: Performance of Templates: time 0.08074/1.599, allocations: 45.01 MB / 1.475 GB, free: 3.133 MB / 1.154 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches