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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001162/0.001162, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001171/0.001172, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.438/1.438, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.785/2.785, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.89 kB / 1.055 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9785/0.9799, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1205/1.1, allocations: 112.6 MB / 1.318 GB, free: 12.57 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.03165/1.132, allocations: 20.24 MB / 1.338 GB, free: 8.285 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005359/1.138, allocations: 115.3 kB / 1.338 GB, free: 8.172 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.004764/1.142, allocations: 1.281 MB / 1.34 GB, free: 6.883 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.01197/1.154, allocations: 3.687 MB / 1.343 GB, free: 3.188 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.008364/1.163, allocations: 3.121 MB / 1.346 GB, free: 104 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01095/1.174, allocations: 7.204 MB / 1.353 GB, free: 8.875 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004943/1.179, allocations: 2.587 MB / 1.356 GB, free: 6.23 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007191/1.186, allocations: 2.88 MB / 1.359 GB, free: 3.348 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00464/1.191, allocations: 2.127 MB / 1.361 GB, free: 1.211 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.001122/1.192, allocations: 252 kB / 1.361 GB, free: 0.9648 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004963/1.197, allocations: 1.658 MB / 1.363 GB, free: 15.3 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.001278/1.198, allocations: 0.6889 MB / 1.363 GB, free: 14.61 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.003266/1.201, allocations: 1.508 MB / 1.365 GB, free: 13.1 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.008168/1.209, allocations: 4.383 MB / 1.369 GB, free: 8.703 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/1.209, allocations: 3.938 kB / 1.369 GB, free: 8.699 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.104e-06/1.209, allocations: 0 / 1.369 GB, free: 8.699 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0001543/1.21, allocations: 0 / 1.369 GB, free: 8.699 MB / 1.092 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.007035/1.217, allocations: 3.234 MB / 1.372 GB, free: 5.398 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/1.217, allocations: 8.031 kB / 1.372 GB, free: 5.391 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008498/1.218, allocations: 332.5 kB / 1.372 GB, free: 5.062 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003619/1.221, allocations: 2.194 MB / 1.375 GB, free: 2.797 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.415e-05/1.221, allocations: 127 kB / 1.375 GB, free: 2.672 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002102/1.222, allocations: 164 kB / 1.375 GB, free: 2.512 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002687/1.224, allocations: 1.619 MB / 1.376 GB, free: 0.8281 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.34e-05/1.224, allocations: 0 / 1.376 GB, free: 0.8281 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/1.224, allocations: 64 kB / 1.376 GB, free: 0.7656 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.536e-05/1.224, allocations: 47.94 kB / 1.377 GB, free: 0.7188 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/1.226, allocations: 1.147 MB / 1.378 GB, free: 15.56 MB / 1.107 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.01043/1.237, allocations: 7.904 MB / 1.385 GB, free: 7.148 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007385/1.238, allocations: 482.3 kB / 1.386 GB, free: 6.672 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004712/1.238, allocations: 323 kB / 1.386 GB, free: 6.352 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006179/1.239, allocations: 0.7563 MB / 1.387 GB, free: 5.43 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/1.239, allocations: 43.12 kB / 1.387 GB, free: 5.379 MB / 1.107 GB Notification: Performance of pre-optimization done (n=60): time 3.457e-06/1.239, allocations: 3.984 kB / 1.387 GB, free: 5.375 MB / 1.107 GB Notification: Performance of matching and sorting (n=60): time 0.001993/1.241, allocations: 0.9919 MB / 1.388 GB, free: 4.379 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/1.241, allocations: 55.97 kB / 1.388 GB, free: 4.309 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002952/1.244, allocations: 2.339 MB / 1.39 GB, free: 1.957 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/1.244, allocations: 49.64 kB / 1.39 GB, free: 1.902 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009383/1.245, allocations: 1.157 MB / 1.391 GB, free: 0.7344 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/1.245, allocations: 220.9 kB / 1.392 GB, free: 0.5156 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/1.245, allocations: 254.7 kB / 1.392 GB, free: 264 kB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001352/1.246, allocations: 345.9 kB / 1.392 GB, free: 15.91 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/1.246, allocations: 357.9 kB / 1.393 GB, free: 15.56 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009215/1.247, allocations: 0.7541 MB / 1.393 GB, free: 14.65 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/1.249, allocations: 0.9746 MB / 1.394 GB, free: 13.57 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/1.249, allocations: 8 kB / 1.394 GB, free: 13.56 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002421/1.251, allocations: 1.295 MB / 1.395 GB, free: 12.25 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/1.251, allocations: 8 kB / 1.396 GB, free: 12.24 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/1.251, allocations: 8 kB / 1.396 GB, free: 12.23 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/1.251, allocations: 16 kB / 1.396 GB, free: 12.22 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009622/1.252, allocations: 251.6 kB / 1.396 GB, free: 11.97 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.631e-05/1.252, allocations: 19.92 kB / 1.396 GB, free: 11.95 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/1.254, allocations: 162.8 kB / 1.396 GB, free: 11.79 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/1.254, allocations: 55.98 kB / 1.396 GB, free: 11.74 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001392/1.255, allocations: 0.7563 MB / 1.397 GB, free: 10.98 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009316/1.256, allocations: 0.7388 MB / 1.397 GB, free: 10.08 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001293/1.257, allocations: 0.9487 MB / 1.398 GB, free: 9.016 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-05/1.257, allocations: 7.984 kB / 1.398 GB, free: 9.008 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002208/1.26, allocations: 1.265 MB / 1.4 GB, free: 7.73 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/1.26, allocations: 9.719 kB / 1.4 GB, free: 7.723 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/1.26, allocations: 8 kB / 1.4 GB, free: 7.715 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/1.26, allocations: 12 kB / 1.4 GB, free: 7.703 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/1.261, allocations: 252.2 kB / 1.4 GB, free: 7.457 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.859e-05/1.261, allocations: 19.94 kB / 1.4 GB, free: 7.438 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001541/1.262, allocations: 123.2 kB / 1.4 GB, free: 7.316 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.158e-05/1.262, allocations: 55.98 kB / 1.4 GB, free: 7.262 MB / 1.123 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.0003248/1.263, allocations: 255.8 kB / 1.4 GB, free: 7.004 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000364/1.263, allocations: 233 kB / 1.401 GB, free: 6.773 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/1.265, allocations: 0.8819 MB / 1.401 GB, free: 5.879 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/1.265, allocations: 11.98 kB / 1.401 GB, free: 5.867 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/1.265, allocations: 0 / 1.401 GB, free: 5.867 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001019/1.266, allocations: 0.6853 MB / 1.402 GB, free: 5.152 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/1.27, allocations: 2.586 MB / 1.405 GB, free: 2.488 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/1.27, allocations: 0 / 1.405 GB, free: 2.488 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005172/1.27, allocations: 128 kB / 1.405 GB, free: 2.363 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/1.27, allocations: 4 kB / 1.405 GB, free: 2.359 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/1.27, allocations: 16 kB / 1.405 GB, free: 2.344 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/1.271, allocations: 4 kB / 1.405 GB, free: 2.34 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.271, allocations: 7.938 kB / 1.405 GB, free: 2.332 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/1.273, allocations: 1.313 MB / 1.406 GB, free: 0.9883 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007721/1.273, allocations: 421.9 kB / 1.406 GB, free: 0.5547 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/1.274, allocations: 12 kB / 1.406 GB, free: 0.543 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/1.275, allocations: 47.92 kB / 1.407 GB, free: 0.4961 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.496e-05/1.275, allocations: 48.45 kB / 1.407 GB, free: 460 kB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.536e-05/1.275, allocations: 31.97 kB / 1.407 GB, free: 428 kB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002278/1.277, allocations: 1.573 MB / 1.408 GB, free: 14.84 MB / 1.139 GB Notification: Performance of sort global known variables: time 2.4e-07/1.277, allocations: 0 / 1.408 GB, free: 14.84 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.002748/1.28, allocations: 1.107 MB / 1.409 GB, free: 13.73 MB / 1.139 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.00172/1.282, allocations: 0.7486 MB / 1.41 GB, free: 13.12 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002605/1.284, allocations: 1.354 MB / 1.411 GB, free: 11.77 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/1.284, allocations: 4 kB / 1.411 GB, free: 11.77 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0005361/1.285, allocations: 327 kB / 1.412 GB, free: 11.45 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006688/1.291, allocations: 1.389 MB / 1.413 GB, free: 10.11 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009936/1.301, allocations: 3.726 MB / 1.417 GB, free: 6.328 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001866/1.303, allocations: 1.59 MB / 1.418 GB, free: 4.707 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009958/1.304, allocations: 179.4 kB / 1.418 GB, free: 4.531 MB / 1.139 GB Notification: Performance of SimCode: time 1.473e-06/1.304, allocations: 3.938 kB / 1.418 GB, free: 4.527 MB / 1.139 GB Notification: Performance of Templates: time 0.1091/1.413, allocations: 39.83 MB / 1.457 GB, free: 13.02 MB / 1.186 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