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.007573/0.007573, allocations: 102.6 kB / 15.73 MB, free: 5.992 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.002127/0.002127, allocations: 191.2 kB / 16.67 MB, free: 5.91 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.133 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.906/2.906, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001955/0.001955, allocations: 64.11 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2798, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6092/0.889, allocations: 112.5 MB / 1.351 GB, free: 3.234 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.03037/0.9194, allocations: 20.07 MB / 1.371 GB, free: 4.867 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003533/0.9229, allocations: 114.8 kB / 1.371 GB, free: 4.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.003492/0.9265, allocations: 1.27 MB / 1.372 GB, free: 4.031 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.009549/0.936, allocations: 3.654 MB / 1.376 GB, free: 1.211 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.007481/0.9435, allocations: 3.123 MB / 1.379 GB, free: 14.86 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.00866/0.9522, allocations: 7.149 MB / 1.386 GB, free: 10.62 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003151/0.9554, allocations: 2.555 MB / 1.388 GB, free: 8.984 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005604/0.961, allocations: 2.989 MB / 1.391 GB, free: 7.148 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002627/0.9636, allocations: 2.076 MB / 1.393 GB, free: 5.883 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0003582/0.964, allocations: 260.2 kB / 1.394 GB, free: 5.875 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003288/0.9673, allocations: 1.636 MB / 1.395 GB, free: 5.07 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0006743/0.968, allocations: 0.6821 MB / 1.396 GB, free: 4.535 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.9695, allocations: 1.496 MB / 1.397 GB, free: 3.516 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0051/0.9746, allocations: 4.369 MB / 1.402 GB, free: 484 kB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.9747, allocations: 0 / 1.402 GB, free: 484 kB / 1.092 GB Notification: Performance of FrontEnd: time 3.367e-06/0.9747, allocations: 0 / 1.402 GB, free: 484 kB / 1.092 GB Notification: Performance of Transformations before backend: time 2.926e-05/0.9747, allocations: 3.938 kB / 1.402 GB, free: 480 kB / 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.004933/0.9796, allocations: 3.276 MB / 1.405 GB, free: 14.02 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.9797, allocations: 8.688 kB / 1.405 GB, free: 14.02 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002716/0.98, allocations: 219.9 kB / 1.405 GB, free: 13.85 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007079/0.9807, allocations: 344.1 kB / 1.405 GB, free: 13.67 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.9842, allocations: 2.202 MB / 1.407 GB, free: 12.01 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.17e-05/0.9843, allocations: 123 kB / 1.408 GB, free: 11.96 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/0.9845, allocations: 168.2 kB / 1.408 GB, free: 11.9 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/0.9871, allocations: 1.611 MB / 1.409 GB, free: 10.9 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.9871, allocations: 2.75 kB / 1.409 GB, free: 10.9 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.9873, allocations: 65.61 kB / 1.409 GB, free: 10.85 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-05/0.9873, allocations: 47.2 kB / 1.409 GB, free: 10.84 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.9893, allocations: 1.142 MB / 1.411 GB, free: 10.26 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.01024/0.9996, allocations: 8.142 MB / 1.419 GB, free: 1.852 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/1, allocations: 481.7 kB / 1.419 GB, free: 1.375 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00054/1.001, allocations: 323 kB / 1.419 GB, free: 1.055 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006914/1.002, allocations: 0.7563 MB / 1.42 GB, free: 136 kB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/1.002, allocations: 47.06 kB / 1.42 GB, free: 76 kB / 1.107 GB Notification: Performance of pre-optimization done (n=60): time 1.743e-06/1.002, allocations: 0 / 1.42 GB, free: 76 kB / 1.107 GB Notification: Performance of matching and sorting (n=60): time 0.001932/1.004, allocations: 0.9934 MB / 1.421 GB, free: 15.07 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/1.004, allocations: 59.97 kB / 1.421 GB, free: 15 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/1.007, allocations: 2.285 MB / 1.423 GB, free: 12.71 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 8.754e-05/1.007, allocations: 49.7 kB / 1.423 GB, free: 12.65 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001053/1.008, allocations: 1.155 MB / 1.424 GB, free: 11.49 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/1.008, allocations: 226.1 kB / 1.425 GB, free: 11.27 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003776/1.009, allocations: 254.7 kB / 1.425 GB, free: 11.01 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001692/1.009, allocations: 349.9 kB / 1.425 GB, free: 10.66 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006979/1.009, allocations: 361.7 kB / 1.426 GB, free: 10.31 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/1.01, allocations: 0.7502 MB / 1.426 GB, free: 9.398 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/1.012, allocations: 0.9746 MB / 1.427 GB, free: 8.312 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/1.012, allocations: 4 kB / 1.427 GB, free: 8.309 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002307/1.014, allocations: 1.316 MB / 1.429 GB, free: 6.988 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/1.014, allocations: 8 kB / 1.429 GB, free: 6.98 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/1.014, allocations: 8 kB / 1.429 GB, free: 6.973 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/1.014, allocations: 12 kB / 1.429 GB, free: 6.961 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009908/1.015, allocations: 256.2 kB / 1.429 GB, free: 6.711 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/1.015, allocations: 19.94 kB / 1.429 GB, free: 6.691 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/1.017, allocations: 170.8 kB / 1.429 GB, free: 6.523 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.946e-05/1.017, allocations: 51.98 kB / 1.429 GB, free: 6.473 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001262/1.018, allocations: 0.7563 MB / 1.43 GB, free: 5.711 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001023/1.019, allocations: 0.7387 MB / 1.431 GB, free: 4.812 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001468/1.021, allocations: 0.9523 MB / 1.431 GB, free: 3.746 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.517e-06/1.021, allocations: 0 / 1.431 GB, free: 3.746 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002196/1.023, allocations: 1.259 MB / 1.433 GB, free: 2.48 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/1.023, allocations: 8.938 kB / 1.433 GB, free: 2.473 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/1.023, allocations: 11.98 kB / 1.433 GB, free: 2.461 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.023, allocations: 12 kB / 1.433 GB, free: 2.449 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009238/1.024, allocations: 255.6 kB / 1.433 GB, free: 2.199 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.326e-05/1.024, allocations: 19.94 kB / 1.433 GB, free: 2.18 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/1.025, allocations: 127.3 kB / 1.433 GB, free: 2.055 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.771e-05/1.025, allocations: 51.98 kB / 1.433 GB, free: 2.004 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.0002368/1.025, allocations: 255.9 kB / 1.433 GB, free: 1.746 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003533/1.026, allocations: 238.5 kB / 1.434 GB, free: 1.512 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/1.028, allocations: 0.893 MB / 1.435 GB, free: 0.6016 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/1.028, allocations: 8 kB / 1.435 GB, free: 0.5938 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/1.028, allocations: 0 / 1.435 GB, free: 0.5938 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001126/1.029, allocations: 0.6815 MB / 1.435 GB, free: 15.88 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/1.032, allocations: 2.565 MB / 1.438 GB, free: 13.25 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.032, allocations: 4 kB / 1.438 GB, free: 13.25 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00054/1.033, allocations: 123.8 kB / 1.438 GB, free: 13.12 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/1.033, allocations: 7.938 kB / 1.438 GB, free: 13.12 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/1.033, allocations: 15.98 kB / 1.438 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/1.033, allocations: 4 kB / 1.438 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.033, allocations: 0 / 1.438 GB, free: 13.1 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/1.035, allocations: 1.33 MB / 1.439 GB, free: 11.74 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006061/1.036, allocations: 415.3 kB / 1.44 GB, free: 11.32 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002405/1.036, allocations: 12 kB / 1.44 GB, free: 11.3 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009153/1.037, allocations: 47.94 kB / 1.44 GB, free: 11.26 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/1.037, allocations: 48.38 kB / 1.44 GB, free: 11.21 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.916e-05/1.037, allocations: 31.98 kB / 1.44 GB, free: 11.18 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002179/1.039, allocations: 1.537 MB / 1.441 GB, free: 9.633 MB / 1.139 GB Notification: Performance of sort global known variables: time 1.6e-07/1.039, allocations: 3.938 kB / 1.441 GB, free: 9.629 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.002357/1.042, allocations: 1.111 MB / 1.442 GB, free: 8.516 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.004489/1.046, allocations: 2.517 MB / 1.445 GB, free: 6.105 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.002376/1.049, allocations: 1.37 MB / 1.446 GB, free: 4.73 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.049, allocations: 7.938 kB / 1.446 GB, free: 4.723 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0005615/1.049, allocations: 324.4 kB / 1.446 GB, free: 4.406 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005601/1.055, allocations: 1.382 MB / 1.448 GB, free: 3.066 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02231/1.077, allocations: 14.85 MB / 1.462 GB, free: 3.754 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/1.078, allocations: 1.574 MB / 1.464 GB, free: 2.145 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.001574/1.08, allocations: 0.4899 MB / 1.464 GB, free: 1.656 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/1.081, allocations: 0.9523 MB / 1.465 GB, free: 0.7031 MB / 1.154 GB Notification: Performance of SimCode: time 3.21e-07/1.081, allocations: 3.938 kB / 1.465 GB, free: 0.6992 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/1.194, allocations: 63.92 MB / 1.528 GB, free: 1.469 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/13.21, allocations: 24.62 kB / 1.528 GB, free: 1.449 MB / 1.217 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 400 --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