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.00791/0.007911, allocations: 100.2 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.00177/0.00177, allocations: 195.9 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.63/2.63, allocations: 437 MB / 0.7105 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.91 kB / 1.019 GB, free: 9.469 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.034/1.036, allocations: 151.6 MB / 1.167 GB, free: 3.938 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1224/1.158, allocations: 112.7 MB / 1.277 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0312/1.19, allocations: 20.23 MB / 1.296 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003948/1.194, allocations: 107.3 kB / 1.296 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.004018/1.198, allocations: 1.304 MB / 1.298 GB, free: 13.19 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01106/1.209, allocations: 3.869 MB / 1.302 GB, free: 9.309 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.009312/1.218, allocations: 3.132 MB / 1.305 GB, free: 6.215 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01264/1.231, allocations: 7.224 MB / 1.312 GB, free: 14.96 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004527/1.235, allocations: 2.577 MB / 1.314 GB, free: 12.33 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007235/1.243, allocations: 2.903 MB / 1.317 GB, free: 9.426 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004648/1.247, allocations: 2.127 MB / 1.319 GB, free: 7.289 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.001188/1.249, allocations: 260 kB / 1.319 GB, free: 7.035 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005593/1.254, allocations: 1.646 MB / 1.321 GB, free: 5.387 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001481/1.256, allocations: 0.685 MB / 1.322 GB, free: 4.699 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003534/1.259, allocations: 1.512 MB / 1.323 GB, free: 3.18 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.009398/1.269, allocations: 4.413 MB / 1.327 GB, free: 14.75 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/1.269, allocations: 0 / 1.327 GB, free: 14.75 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.494e-06/1.269, allocations: 0 / 1.327 GB, free: 14.75 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.000161/1.269, allocations: 0 / 1.327 GB, free: 14.75 MB / 1.061 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.007942/1.277, allocations: 3.324 MB / 1.331 GB, free: 11.36 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.277, allocations: 12.58 kB / 1.331 GB, free: 11.35 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/1.278, allocations: 346.3 kB / 1.331 GB, free: 11.01 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/1.282, allocations: 2.221 MB / 1.333 GB, free: 8.719 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/1.283, allocations: 123 kB / 1.333 GB, free: 8.598 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002446/1.283, allocations: 164 kB / 1.333 GB, free: 8.438 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/1.286, allocations: 1.623 MB / 1.335 GB, free: 6.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/1.286, allocations: 0 / 1.335 GB, free: 6.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/1.286, allocations: 64 kB / 1.335 GB, free: 6.688 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.062e-05/1.286, allocations: 47.94 kB / 1.335 GB, free: 6.641 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/1.288, allocations: 1.143 MB / 1.336 GB, free: 5.492 MB / 1.061 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.01268/1.301, allocations: 7.93 MB / 1.344 GB, free: 13.05 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008238/1.302, allocations: 485.8 kB / 1.344 GB, free: 12.57 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004918/1.302, allocations: 319 kB / 1.345 GB, free: 12.26 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006794/1.303, allocations: 0.7524 MB / 1.345 GB, free: 11.34 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/1.303, allocations: 51.12 kB / 1.346 GB, free: 11.28 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.124e-06/1.303, allocations: 0 / 1.346 GB, free: 11.28 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.00224/1.305, allocations: 0.9972 MB / 1.347 GB, free: 10.28 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/1.305, allocations: 55.97 kB / 1.347 GB, free: 10.21 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/1.308, allocations: 2.343 MB / 1.349 GB, free: 7.855 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001659/1.309, allocations: 45.7 kB / 1.349 GB, free: 7.805 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009926/1.31, allocations: 1.175 MB / 1.35 GB, free: 6.621 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/1.31, allocations: 226.1 kB / 1.35 GB, free: 6.398 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/1.31, allocations: 258.7 kB / 1.351 GB, free: 6.137 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.31, allocations: 345.9 kB / 1.351 GB, free: 5.793 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006649/1.311, allocations: 361.8 kB / 1.351 GB, free: 5.438 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/1.312, allocations: 0.7541 MB / 1.352 GB, free: 4.527 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001501/1.314, allocations: 0.9785 MB / 1.353 GB, free: 3.434 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/1.314, allocations: 4 kB / 1.353 GB, free: 3.43 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002715/1.316, allocations: 1.308 MB / 1.354 GB, free: 2.113 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/1.316, allocations: 8 kB / 1.354 GB, free: 2.105 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/1.316, allocations: 8 kB / 1.354 GB, free: 2.098 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.069e-05/1.316, allocations: 16 kB / 1.354 GB, free: 2.082 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/1.318, allocations: 252.2 kB / 1.354 GB, free: 1.836 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/1.318, allocations: 19.94 kB / 1.354 GB, free: 1.816 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/1.319, allocations: 166.8 kB / 1.355 GB, free: 1.652 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.955e-05/1.319, allocations: 55.98 kB / 1.355 GB, free: 1.598 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001485/1.321, allocations: 0.7563 MB / 1.355 GB, free: 0.8359 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009848/1.322, allocations: 0.7426 MB / 1.356 GB, free: 15.94 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001416/1.323, allocations: 0.9524 MB / 1.357 GB, free: 14.87 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.091e-06/1.323, allocations: 4 kB / 1.357 GB, free: 14.86 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002492/1.326, allocations: 1.27 MB / 1.358 GB, free: 13.59 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/1.326, allocations: 12.95 kB / 1.358 GB, free: 13.57 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.326, allocations: 11.94 kB / 1.358 GB, free: 13.56 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/1.326, allocations: 16 kB / 1.358 GB, free: 13.55 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008949/1.327, allocations: 255.6 kB / 1.359 GB, free: 13.3 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.118e-05/1.327, allocations: 19.94 kB / 1.359 GB, free: 13.28 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/1.328, allocations: 115.4 kB / 1.359 GB, free: 13.16 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/1.329, allocations: 55.98 kB / 1.359 GB, free: 13.11 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.0003671/1.329, allocations: 251.9 kB / 1.359 GB, free: 12.86 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/1.329, allocations: 242.4 kB / 1.359 GB, free: 12.62 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/1.331, allocations: 0.8897 MB / 1.36 GB, free: 11.71 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/1.331, allocations: 8 kB / 1.36 GB, free: 11.7 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/1.331, allocations: 0 / 1.36 GB, free: 11.7 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001044/1.332, allocations: 0.6814 MB / 1.361 GB, free: 10.99 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004477/1.337, allocations: 2.586 MB / 1.363 GB, free: 8.328 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.337, allocations: 0 / 1.363 GB, free: 8.328 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005484/1.337, allocations: 123.9 kB / 1.363 GB, free: 8.207 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.395e-06/1.337, allocations: 4 kB / 1.363 GB, free: 8.203 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/1.338, allocations: 19.98 kB / 1.363 GB, free: 8.184 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/1.338, allocations: 7.938 kB / 1.363 GB, free: 8.176 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.338, allocations: 0 / 1.363 GB, free: 8.176 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/1.34, allocations: 1.323 MB / 1.365 GB, free: 6.824 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007171/1.34, allocations: 435.2 kB / 1.365 GB, free: 6.379 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002501/1.341, allocations: 12 kB / 1.365 GB, free: 6.367 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009186/1.341, allocations: 51.94 kB / 1.365 GB, free: 6.316 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.449e-05/1.342, allocations: 48.38 kB / 1.365 GB, free: 6.266 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-05/1.342, allocations: 31.97 kB / 1.365 GB, free: 6.234 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002243/1.344, allocations: 1.569 MB / 1.367 GB, free: 4.66 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.5e-07/1.344, allocations: 3.938 kB / 1.367 GB, free: 4.656 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002678/1.347, allocations: 1.115 MB / 1.368 GB, free: 3.539 MB / 1.092 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.001735/1.348, allocations: 0.7648 MB / 1.369 GB, free: 2.871 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002541/1.351, allocations: 1.353 MB / 1.37 GB, free: 1.52 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.351, allocations: 1.75 kB / 1.37 GB, free: 1.52 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0005481/1.351, allocations: 327 kB / 1.37 GB, free: 1.199 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005505/1.357, allocations: 1.386 MB / 1.372 GB, free: 15.85 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006302/1.363, allocations: 3.73 MB / 1.375 GB, free: 12.07 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001154/1.364, allocations: 1.59 MB / 1.377 GB, free: 10.45 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001929/1.366, allocations: 0.4987 MB / 1.377 GB, free: 9.941 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/1.367, allocations: 179.4 kB / 1.378 GB, free: 9.766 MB / 1.107 GB Notification: Performance of SimCode: time 5.82e-07/1.367, allocations: 0 / 1.378 GB, free: 9.766 MB / 1.107 GB Notification: Performance of Templates: time 0.07416/1.441, allocations: 44.79 MB / 1.421 GB, free: 13.5 MB / 1.154 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