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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007364/0.007364, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.002023/0.002023, allocations: 189.8 kB / 16.67 MB, free: 5.934 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.207/1.207, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.433/2.433, allocations: 482.6 MB / 0.755 GB, free: 6.656 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 68.38 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2508, allocations: 162.3 MB / 1.242 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.09923/0.3501, allocations: 112.5 MB / 1.352 GB, free: 8.07 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.02439/0.3745, allocations: 20.09 MB / 1.371 GB, free: 3.938 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.3764, allocations: 107.3 kB / 1.371 GB, free: 3.832 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.002409/0.3788, allocations: 1.277 MB / 1.373 GB, free: 2.547 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.006333/0.3852, allocations: 3.649 MB / 1.376 GB, free: 14.88 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.005493/0.3907, allocations: 3.116 MB / 1.379 GB, free: 11.8 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.006507/0.3972, allocations: 7.165 MB / 1.386 GB, free: 4.613 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002561/0.3998, allocations: 2.56 MB / 1.389 GB, free: 1.992 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004532/0.4043, allocations: 2.981 MB / 1.392 GB, free: 15.01 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002145/0.4065, allocations: 2.065 MB / 1.394 GB, free: 12.93 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0003185/0.4068, allocations: 252 kB / 1.394 GB, free: 12.69 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.4094, allocations: 1.646 MB / 1.396 GB, free: 11.04 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0005619/0.41, allocations: 0.6773 MB / 1.396 GB, free: 10.36 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.001263/0.4112, allocations: 1.504 MB / 1.398 GB, free: 8.848 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.004131/0.4154, allocations: 4.379 MB / 1.402 GB, free: 4.453 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.4154, allocations: 0 / 1.402 GB, free: 4.453 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4154, allocations: 0 / 1.402 GB, free: 4.453 MB / 1.123 GB Notification: Performance of Transformations before backend: time 2.025e-05/0.4154, allocations: 0 / 1.402 GB, free: 4.453 MB / 1.123 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.004093/0.4195, allocations: 3.273 MB / 1.405 GB, free: 1.109 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.4196, allocations: 8.031 kB / 1.405 GB, free: 1.102 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002264/0.4198, allocations: 219.7 kB / 1.405 GB, free: 0.875 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005785/0.4204, allocations: 338.1 kB / 1.406 GB, free: 0.543 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.4233, allocations: 2.207 MB / 1.408 GB, free: 14.27 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.941e-05/0.4234, allocations: 127 kB / 1.408 GB, free: 14.14 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.4236, allocations: 171.9 kB / 1.408 GB, free: 13.97 MB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.4259, allocations: 1.604 MB / 1.41 GB, free: 12.3 MB / 1.139 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.426, allocations: 0 / 1.41 GB, free: 12.3 MB / 1.139 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.4261, allocations: 67.98 kB / 1.41 GB, free: 12.24 MB / 1.139 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.254e-05/0.4261, allocations: 51.88 kB / 1.41 GB, free: 12.19 MB / 1.139 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.4279, allocations: 1.139 MB / 1.411 GB, free: 11.04 MB / 1.139 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.008546/0.4365, allocations: 8.135 MB / 1.419 GB, free: 2.344 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.4372, allocations: 481.8 kB / 1.419 GB, free: 1.867 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.4377, allocations: 327 kB / 1.42 GB, free: 1.543 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006024/0.4383, allocations: 0.7485 MB / 1.42 GB, free: 0.6289 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.4383, allocations: 47.12 kB / 1.42 GB, free: 0.5703 MB / 1.139 GB Notification: Performance of pre-optimization done (n=60): time 1.633e-06/0.4383, allocations: 0 / 1.42 GB, free: 0.5703 MB / 1.139 GB Notification: Performance of matching and sorting (n=60): time 0.001598/0.4399, allocations: 0.9973 MB / 1.421 GB, free: 15.57 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.44, allocations: 59.97 kB / 1.421 GB, free: 15.5 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.4425, allocations: 2.289 MB / 1.424 GB, free: 13.2 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 7.05e-05/0.4426, allocations: 49.7 kB / 1.424 GB, free: 13.14 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008819/0.4435, allocations: 1.159 MB / 1.425 GB, free: 11.97 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.4436, allocations: 222.1 kB / 1.425 GB, free: 11.75 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003123/0.444, allocations: 254.8 kB / 1.425 GB, free: 11.5 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4441, allocations: 353.9 kB / 1.426 GB, free: 11.14 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000582/0.4447, allocations: 357.9 kB / 1.426 GB, free: 10.79 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/0.4456, allocations: 0.7385 MB / 1.427 GB, free: 9.898 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.4469, allocations: 0.9863 MB / 1.428 GB, free: 8.797 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.4469, allocations: 11.88 kB / 1.428 GB, free: 8.785 MB / 1.154 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001904/0.4488, allocations: 1.293 MB / 1.429 GB, free: 7.488 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.4489, allocations: 10.19 kB / 1.429 GB, free: 7.48 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4489, allocations: 8 kB / 1.429 GB, free: 7.473 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.4489, allocations: 16 kB / 1.429 GB, free: 7.457 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008407/0.4497, allocations: 255.5 kB / 1.429 GB, free: 7.207 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/0.4498, allocations: 19.94 kB / 1.429 GB, free: 7.188 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.4508, allocations: 175 kB / 1.429 GB, free: 7.016 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.928e-05/0.4509, allocations: 51.98 kB / 1.429 GB, free: 6.965 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001055/0.4519, allocations: 0.7563 MB / 1.43 GB, free: 6.203 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008638/0.4528, allocations: 0.7427 MB / 1.431 GB, free: 5.293 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001225/0.454, allocations: 0.9405 MB / 1.432 GB, free: 4.238 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.162e-06/0.4541, allocations: 7.984 kB / 1.432 GB, free: 4.23 MB / 1.154 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.001829/0.4559, allocations: 1.275 MB / 1.433 GB, free: 2.949 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.4559, allocations: 11.98 kB / 1.433 GB, free: 2.938 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4559, allocations: 12 kB / 1.433 GB, free: 2.926 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.4559, allocations: 15.94 kB / 1.433 GB, free: 2.91 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/0.4567, allocations: 247.6 kB / 1.433 GB, free: 2.668 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.025e-05/0.4568, allocations: 15.94 kB / 1.433 GB, free: 2.652 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.4578, allocations: 123.9 kB / 1.434 GB, free: 2.531 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-05/0.4579, allocations: 55.98 kB / 1.434 GB, free: 2.477 MB / 1.154 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.0001985/0.4581, allocations: 251.8 kB / 1.434 GB, free: 2.223 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/0.4584, allocations: 250.3 kB / 1.434 GB, free: 1.977 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.4598, allocations: 0.8801 MB / 1.435 GB, free: 1.082 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.4598, allocations: 4 kB / 1.435 GB, free: 1.078 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.788e-06/0.4598, allocations: 0 / 1.435 GB, free: 1.078 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009385/0.4608, allocations: 0.6931 MB / 1.436 GB, free: 360 kB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003076/0.4638, allocations: 2.565 MB / 1.438 GB, free: 13.72 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.4639, allocations: 0 / 1.438 GB, free: 13.72 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.4643, allocations: 123.8 kB / 1.438 GB, free: 13.6 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4643, allocations: 8.094 kB / 1.438 GB, free: 13.59 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.4644, allocations: 19.98 kB / 1.438 GB, free: 13.57 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.4644, allocations: 4 kB / 1.438 GB, free: 13.57 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4644, allocations: 0 / 1.438 GB, free: 13.57 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.4661, allocations: 1.326 MB / 1.44 GB, free: 12.22 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.4666, allocations: 419.3 kB / 1.44 GB, free: 11.79 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.4668, allocations: 16 kB / 1.44 GB, free: 11.77 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.4676, allocations: 47.92 kB / 1.44 GB, free: 11.73 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/0.4677, allocations: 48.44 kB / 1.44 GB, free: 11.68 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.4678, allocations: 31.98 kB / 1.44 GB, free: 11.64 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.001799/0.4696, allocations: 1.54 MB / 1.442 GB, free: 10.1 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4696, allocations: 0 / 1.442 GB, free: 10.1 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001865/0.4714, allocations: 1.111 MB / 1.443 GB, free: 8.984 MB / 1.17 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.003668/0.4751, allocations: 2.521 MB / 1.445 GB, free: 6.566 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.001984/0.4771, allocations: 1.363 MB / 1.446 GB, free: 5.203 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4771, allocations: 0 / 1.446 GB, free: 5.203 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.4776, allocations: 327 kB / 1.447 GB, free: 4.883 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004631/0.4822, allocations: 1.387 MB / 1.448 GB, free: 3.539 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/0.5003, allocations: 14.85 MB / 1.463 GB, free: 4.227 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.5014, allocations: 1.578 MB / 1.464 GB, free: 2.609 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001268/0.5027, allocations: 493.6 kB / 1.465 GB, free: 2.129 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.5037, allocations: 0.9522 MB / 1.466 GB, free: 1.176 MB / 1.186 GB Notification: Performance of SimCode: time 3.61e-07/0.5037, allocations: 0 / 1.466 GB, free: 1.176 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 16.52/17.02, allocations: 63.92 MB / 1.528 GB, free: 1.973 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/35.72, allocations: 36.73 kB / 1.528 GB, free: 1.941 MB / 1.248 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > 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