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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_11_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_11_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.004018/0.004018, allocations: 101.1 kB / 15.73 MB, free: 6.004 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.001202/0.001202, allocations: 187.2 kB / 16.67 MB, free: 5.922 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.713/2.713, allocations: 469.8 MB / 0.7425 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.91 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.657/0.6589, allocations: 159.1 MB / 1.22 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1215/0.7804, allocations: 112.7 MB / 1.33 GB, free: 1.008 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.02964/0.8101, allocations: 20.25 MB / 1.35 GB, free: 12.72 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002357/0.8125, allocations: 111.3 kB / 1.35 GB, free: 12.61 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.8154, allocations: 1.277 MB / 1.351 GB, free: 11.32 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.007842/0.8232, allocations: 3.688 MB / 1.355 GB, free: 7.621 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.00667/0.8299, allocations: 3.12 MB / 1.358 GB, free: 4.539 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.008444/0.8384, allocations: 7.218 MB / 1.365 GB, free: 13.29 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003238/0.8416, allocations: 2.578 MB / 1.368 GB, free: 10.66 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00505/0.8467, allocations: 2.815 MB / 1.37 GB, free: 7.84 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002757/0.8494, allocations: 2.124 MB / 1.372 GB, free: 5.707 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0003897/0.8498, allocations: 256 kB / 1.373 GB, free: 5.457 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.8531, allocations: 1.646 MB / 1.374 GB, free: 3.809 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0007004/0.8538, allocations: 0.6928 MB / 1.375 GB, free: 3.113 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.8554, allocations: 1.512 MB / 1.376 GB, free: 1.594 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.005221/0.8606, allocations: 4.411 MB / 1.381 GB, free: 13.17 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8606, allocations: 0 / 1.381 GB, free: 13.17 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.062e-06/0.8606, allocations: 3.938 kB / 1.381 GB, free: 13.16 MB / 1.107 GB Notification: Performance of Transformations before backend: time 3.207e-05/0.8607, allocations: 0 / 1.381 GB, free: 13.16 MB / 1.107 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.005055/0.8657, allocations: 3.324 MB / 1.384 GB, free: 9.77 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.8658, allocations: 8.031 kB / 1.384 GB, free: 9.762 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002797/0.8661, allocations: 219.7 kB / 1.384 GB, free: 9.535 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007188/0.8668, allocations: 338.1 kB / 1.384 GB, free: 9.203 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.8705, allocations: 2.231 MB / 1.387 GB, free: 6.902 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.8706, allocations: 127 kB / 1.387 GB, free: 6.777 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002447/0.8708, allocations: 168 kB / 1.387 GB, free: 6.613 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002801/0.8736, allocations: 1.604 MB / 1.388 GB, free: 4.945 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/0.8737, allocations: 7.922 kB / 1.388 GB, free: 4.938 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.8738, allocations: 64 kB / 1.389 GB, free: 4.875 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.988e-05/0.8739, allocations: 47.94 kB / 1.389 GB, free: 4.828 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002229/0.8761, allocations: 1.147 MB / 1.39 GB, free: 3.676 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.01052/0.8867, allocations: 7.923 MB / 1.397 GB, free: 11.25 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.8875, allocations: 481.8 kB / 1.398 GB, free: 10.77 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005924/0.8881, allocations: 326.9 kB / 1.398 GB, free: 10.45 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007217/0.8889, allocations: 0.7524 MB / 1.399 GB, free: 9.523 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.8889, allocations: 39.12 kB / 1.399 GB, free: 9.477 MB / 1.123 GB Notification: Performance of pre-optimization done (n=60): time 1.963e-06/0.8889, allocations: 0 / 1.399 GB, free: 9.477 MB / 1.123 GB Notification: Performance of matching and sorting (n=60): time 0.00199/0.8909, allocations: 1.005 MB / 1.4 GB, free: 8.469 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.891, allocations: 59.97 kB / 1.4 GB, free: 8.398 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.8942, allocations: 2.339 MB / 1.402 GB, free: 6.047 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 8.155e-05/0.8943, allocations: 49.7 kB / 1.402 GB, free: 5.992 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.8954, allocations: 1.171 MB / 1.403 GB, free: 4.812 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002157/0.8956, allocations: 218.1 kB / 1.404 GB, free: 4.598 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004049/0.896, allocations: 262.7 kB / 1.404 GB, free: 4.332 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.8962, allocations: 353.9 kB / 1.404 GB, free: 3.98 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007234/0.897, allocations: 357.9 kB / 1.405 GB, free: 3.629 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.8981, allocations: 0.7385 MB / 1.405 GB, free: 2.727 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.8997, allocations: 0.9863 MB / 1.406 GB, free: 1.629 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.8997, allocations: 7.938 kB / 1.406 GB, free: 1.621 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002396/0.9021, allocations: 1.308 MB / 1.408 GB, free: 312 kB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.9022, allocations: 8 kB / 1.408 GB, free: 304 kB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.9022, allocations: 8 kB / 1.408 GB, free: 296 kB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.9022, allocations: 12 kB / 1.408 GB, free: 284 kB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.9032, allocations: 255.6 kB / 1.408 GB, free: 28 kB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.093e-05/0.9033, allocations: 15.94 kB / 1.408 GB, free: 12 kB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/0.9045, allocations: 171.2 kB / 1.408 GB, free: 15.84 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.9047, allocations: 55.97 kB / 1.408 GB, free: 15.79 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001334/0.906, allocations: 0.7563 MB / 1.409 GB, free: 15.02 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001082/0.9071, allocations: 0.7387 MB / 1.41 GB, free: 14.12 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001509/0.9086, allocations: 0.9561 MB / 1.41 GB, free: 13.05 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.741e-06/0.9086, allocations: 4 kB / 1.411 GB, free: 13.05 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00223/0.9109, allocations: 1.275 MB / 1.412 GB, free: 11.77 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.9109, allocations: 12 kB / 1.412 GB, free: 11.75 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.9109, allocations: 8 kB / 1.412 GB, free: 11.75 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.9109, allocations: 12 kB / 1.412 GB, free: 11.73 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009513/0.9119, allocations: 255.5 kB / 1.412 GB, free: 11.48 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.257e-05/0.9119, allocations: 15.94 kB / 1.412 GB, free: 11.47 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/0.9132, allocations: 135.9 kB / 1.412 GB, free: 11.34 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.66e-05/0.9133, allocations: 51.98 kB / 1.412 GB, free: 11.29 MB / 1.139 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.0002359/0.9135, allocations: 256.9 kB / 1.412 GB, free: 11.03 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000358/0.9139, allocations: 246.4 kB / 1.413 GB, free: 10.79 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.9156, allocations: 0.8819 MB / 1.414 GB, free: 9.891 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.9156, allocations: 4 kB / 1.414 GB, free: 9.887 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.9156, allocations: 0 / 1.414 GB, free: 9.887 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001154/0.9168, allocations: 0.697 MB / 1.414 GB, free: 9.16 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003774/0.9206, allocations: 2.582 MB / 1.417 GB, free: 6.5 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.9206, allocations: 0 / 1.417 GB, free: 6.5 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005435/0.9211, allocations: 123.9 kB / 1.417 GB, free: 6.379 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.9212, allocations: 8.094 kB / 1.417 GB, free: 6.371 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.9212, allocations: 19.98 kB / 1.417 GB, free: 6.352 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.9212, allocations: 0 / 1.417 GB, free: 6.352 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.9212, allocations: 7.938 kB / 1.417 GB, free: 6.344 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.9234, allocations: 1.326 MB / 1.418 GB, free: 4.988 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006297/0.924, allocations: 435.2 kB / 1.419 GB, free: 4.543 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.9243, allocations: 12 kB / 1.419 GB, free: 4.531 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009228/0.9252, allocations: 39.95 kB / 1.419 GB, free: 4.492 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.9253, allocations: 48.44 kB / 1.419 GB, free: 4.445 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/0.9254, allocations: 35.97 kB / 1.419 GB, free: 4.41 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002218/0.9276, allocations: 1.569 MB / 1.42 GB, free: 2.836 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9276, allocations: 0 / 1.42 GB, free: 2.836 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.002295/0.9299, allocations: 1.111 MB / 1.421 GB, free: 1.723 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.004413/0.9343, allocations: 2.535 MB / 1.424 GB, free: 15.3 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.002405/0.9368, allocations: 1.363 MB / 1.425 GB, free: 13.94 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.9368, allocations: 4 kB / 1.425 GB, free: 13.93 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0005667/0.9373, allocations: 323 kB / 1.425 GB, free: 13.62 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005552/0.9429, allocations: 1.382 MB / 1.427 GB, free: 12.28 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/0.9651, allocations: 15 MB / 1.441 GB, free: 12.8 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001316/0.9664, allocations: 1.594 MB / 1.443 GB, free: 11.18 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.001533/0.968, allocations: 0.4979 MB / 1.444 GB, free: 10.68 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.9693, allocations: 0.9678 MB / 1.444 GB, free: 9.711 MB / 1.17 GB Notification: Performance of SimCode: time 3.6e-07/0.9693, allocations: 0 / 1.444 GB, free: 9.711 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/1.084, allocations: 64.26 MB / 1.507 GB, free: 10.15 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/13.17, allocations: 11.23 kB / 1.507 GB, free: 10.14 MB / 1.232 GB (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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/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