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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006987/0.006987, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001682/0.001682, allocations: 196.2 kB / 16.67 MB, free: 6.355 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.674/2.674, allocations: 469.4 MB / 0.7422 GB, free: 7.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.84 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2817, allocations: 159.1 MB / 1.22 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.7074/0.9892, allocations: 112.7 MB / 1.33 GB, free: 268 kB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0308/1.02, allocations: 20.27 MB / 1.35 GB, free: 1.77 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005268/1.025, allocations: 105.1 kB / 1.35 GB, free: 1.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004642/1.03, allocations: 1.298 MB / 1.351 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01225/1.042, allocations: 3.883 MB / 1.355 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.00872/1.051, allocations: 3.125 MB / 1.358 GB, free: 12.94 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.01147/1.063, allocations: 7.233 MB / 1.365 GB, free: 8.887 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004775/1.067, allocations: 2.572 MB / 1.367 GB, free: 7.246 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007469/1.075, allocations: 2.899 MB / 1.37 GB, free: 5.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004474/1.079, allocations: 2.121 MB / 1.372 GB, free: 4.215 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.001034/1.08, allocations: 259.4 kB / 1.372 GB, free: 4.211 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005315/1.086, allocations: 1.648 MB / 1.374 GB, free: 3.395 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.001348/1.087, allocations: 0.6909 MB / 1.375 GB, free: 2.852 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.003666/1.091, allocations: 1.516 MB / 1.376 GB, free: 1.816 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.009048/1.1, allocations: 4.407 MB / 1.381 GB, free: 14.75 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/1.1, allocations: 0 / 1.381 GB, free: 14.75 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.094e-06/1.1, allocations: 0 / 1.381 GB, free: 14.75 MB / 1.076 GB Notification: Performance of Transformations before backend: time 0.0001708/1.1, allocations: 1.406 kB / 1.381 GB, free: 14.75 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.008678/1.109, allocations: 3.326 MB / 1.384 GB, free: 12.27 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/1.109, allocations: 8.75 kB / 1.384 GB, free: 12.27 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005919/1.109, allocations: 217.1 kB / 1.384 GB, free: 12.09 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/1.111, allocations: 341.5 kB / 1.384 GB, free: 11.92 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00476/1.116, allocations: 2.225 MB / 1.387 GB, free: 10.24 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/1.116, allocations: 127.7 kB / 1.387 GB, free: 10.18 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002848/1.116, allocations: 168 kB / 1.387 GB, free: 10.13 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/1.119, allocations: 1.608 MB / 1.388 GB, free: 9.129 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/1.119, allocations: 5.312 kB / 1.388 GB, free: 9.125 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/1.119, allocations: 67.11 kB / 1.388 GB, free: 9.074 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-05/1.119, allocations: 50.83 kB / 1.388 GB, free: 9.062 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/1.121, allocations: 1.147 MB / 1.39 GB, free: 8.48 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.01115/1.132, allocations: 7.924 MB / 1.397 GB, free: 1.703 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000798/1.133, allocations: 482.4 kB / 1.398 GB, free: 1.461 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004734/1.134, allocations: 326.3 kB / 1.398 GB, free: 1.293 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006041/1.134, allocations: 0.7531 MB / 1.399 GB, free: 424 kB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/1.134, allocations: 47.41 kB / 1.399 GB, free: 372 kB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.475e-06/1.134, allocations: 1.844 kB / 1.399 GB, free: 372 kB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002177/1.137, allocations: 0.9987 MB / 1.4 GB, free: 15.85 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/1.137, allocations: 59.81 kB / 1.4 GB, free: 15.79 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003338/1.14, allocations: 2.333 MB / 1.402 GB, free: 13.69 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0001947/1.14, allocations: 49.7 kB / 1.402 GB, free: 13.64 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/1.141, allocations: 1.171 MB / 1.403 GB, free: 12.46 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/1.142, allocations: 226 kB / 1.404 GB, free: 12.23 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003874/1.142, allocations: 262.8 kB / 1.404 GB, free: 11.97 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001279/1.142, allocations: 341.9 kB / 1.404 GB, free: 11.63 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006627/1.143, allocations: 361.9 kB / 1.405 GB, free: 11.27 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009734/1.144, allocations: 0.7463 MB / 1.405 GB, free: 10.37 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/1.145, allocations: 0.9746 MB / 1.406 GB, free: 9.281 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/1.145, allocations: 8 kB / 1.406 GB, free: 9.273 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002607/1.148, allocations: 1.319 MB / 1.408 GB, free: 7.945 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/1.148, allocations: 8 kB / 1.408 GB, free: 7.938 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/1.148, allocations: 8 kB / 1.408 GB, free: 7.93 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.977e-05/1.148, allocations: 12.72 kB / 1.408 GB, free: 7.918 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009725/1.149, allocations: 259.6 kB / 1.408 GB, free: 7.664 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.807e-05/1.149, allocations: 15.94 kB / 1.408 GB, free: 7.648 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/1.151, allocations: 170.8 kB / 1.408 GB, free: 7.48 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/1.151, allocations: 51.98 kB / 1.408 GB, free: 7.43 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001394/1.152, allocations: 0.7602 MB / 1.409 GB, free: 6.664 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009214/1.153, allocations: 0.7349 MB / 1.409 GB, free: 5.766 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001338/1.155, allocations: 0.9523 MB / 1.41 GB, free: 4.695 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.566e-06/1.155, allocations: 4 kB / 1.41 GB, free: 4.691 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002419/1.157, allocations: 1.271 MB / 1.412 GB, free: 3.41 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/1.157, allocations: 15.94 kB / 1.412 GB, free: 3.395 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/1.157, allocations: 8 kB / 1.412 GB, free: 3.387 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/1.157, allocations: 16.03 kB / 1.412 GB, free: 3.371 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000898/1.158, allocations: 247.6 kB / 1.412 GB, free: 3.129 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.472e-05/1.158, allocations: 23.92 kB / 1.412 GB, free: 3.105 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001893/1.16, allocations: 119.5 kB / 1.412 GB, free: 2.988 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-05/1.16, allocations: 51.98 kB / 1.412 GB, free: 2.938 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.0003138/1.16, allocations: 255.8 kB / 1.412 GB, free: 2.68 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006279/1.161, allocations: 246.4 kB / 1.413 GB, free: 2.438 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/1.163, allocations: 0.8901 MB / 1.413 GB, free: 1.535 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/1.163, allocations: 8.281 kB / 1.413 GB, free: 1.527 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.163, allocations: 0 / 1.413 GB, free: 1.527 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009899/1.164, allocations: 0.693 MB / 1.414 GB, free: 0.8008 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004653/1.169, allocations: 2.578 MB / 1.417 GB, free: 14.15 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/1.169, allocations: 0 / 1.417 GB, free: 14.15 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005339/1.169, allocations: 127.8 kB / 1.417 GB, free: 14.02 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.758e-06/1.169, allocations: 4 kB / 1.417 GB, free: 14.02 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/1.169, allocations: 23.98 kB / 1.417 GB, free: 14 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/1.169, allocations: 0 / 1.417 GB, free: 14 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.169, allocations: 4 kB / 1.417 GB, free: 13.99 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/1.171, allocations: 1.326 MB / 1.418 GB, free: 12.64 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.172, allocations: 435.3 kB / 1.419 GB, free: 12.19 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005336/1.173, allocations: 12 kB / 1.419 GB, free: 12.18 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/1.174, allocations: 47.89 kB / 1.419 GB, free: 12.13 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/1.174, allocations: 48.44 kB / 1.419 GB, free: 12.09 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.056e-05/1.174, allocations: 31.97 kB / 1.419 GB, free: 12.05 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.00269/1.177, allocations: 1.569 MB / 1.42 GB, free: 10.48 MB / 1.107 GB Notification: Performance of sort global known variables: time 6.12e-07/1.177, allocations: 3.938 kB / 1.42 GB, free: 10.48 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.005475/1.183, allocations: 1.115 MB / 1.421 GB, free: 9.359 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.00465/1.187, allocations: 2.526 MB / 1.424 GB, free: 6.938 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.002592/1.19, allocations: 1.354 MB / 1.425 GB, free: 5.594 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/1.19, allocations: 4 kB / 1.425 GB, free: 5.59 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0005259/1.19, allocations: 324.6 kB / 1.425 GB, free: 5.27 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006536/1.197, allocations: 1.389 MB / 1.427 GB, free: 3.926 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02479/1.222, allocations: 14.99 MB / 1.441 GB, free: 4.465 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001363/1.223, allocations: 1.59 MB / 1.443 GB, free: 2.844 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.002048/1.225, allocations: 0.4908 MB / 1.443 GB, free: 2.352 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/1.227, allocations: 0.9601 MB / 1.444 GB, free: 1.391 MB / 1.123 GB Notification: Performance of SimCode: time 2.464e-06/1.227, allocations: 7.875 kB / 1.444 GB, free: 1.383 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1083/1.335, allocations: 64.28 MB / 1.507 GB, free: 1.797 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/13.31, allocations: 11.62 kB / 1.507 GB, free: 1.785 MB / 1.186 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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