Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_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.007379/0.007379, allocations: 97.3 kB / 15.73 MB, free: 6.035 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.001755/0.001755, allocations: 201.7 kB / 16.68 MB, free: 5.961 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.3 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.75 kB / 0.9504 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2445, allocations: 140.4 MB / 1.087 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1055/0.35, allocations: 112.7 MB / 1.197 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0284/0.3784, allocations: 20.25 MB / 1.217 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003492/0.382, allocations: 111.3 kB / 1.217 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003679/0.3857, allocations: 1.304 MB / 1.219 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.009732/0.3955, allocations: 3.868 MB / 1.222 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007678/0.4032, allocations: 3.124 MB / 1.225 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.009222/0.4124, allocations: 7.23 MB / 1.233 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00479/0.4172, allocations: 2.579 MB / 1.235 GB, free: 10.51 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00655/0.4238, allocations: 2.908 MB / 1.238 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003595/0.4274, allocations: 2.124 MB / 1.24 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008386/0.4283, allocations: 252 kB / 1.24 GB, free: 5.219 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003892/0.4322, allocations: 1.65 MB / 1.242 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009841/0.4332, allocations: 0.6928 MB / 1.243 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002459/0.4357, allocations: 1.504 MB / 1.244 GB, free: 1.359 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00625/0.4419, allocations: 4.406 MB / 1.248 GB, free: 12.94 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.442, allocations: 0 / 1.248 GB, free: 12.94 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.523e-06/0.442, allocations: 4 kB / 1.248 GB, free: 12.93 MB / 1.014 GB Notification: Performance of Transformations before backend: time 9.453e-05/0.4421, allocations: 0 / 1.248 GB, free: 12.93 MB / 1.014 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.005631/0.4477, allocations: 3.328 MB / 1.252 GB, free: 9.535 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4478, allocations: 8.031 kB / 1.252 GB, free: 9.527 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002786/0.4481, allocations: 219.7 kB / 1.252 GB, free: 9.301 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008065/0.4489, allocations: 338.1 kB / 1.252 GB, free: 8.969 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003792/0.4527, allocations: 2.227 MB / 1.254 GB, free: 6.672 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/0.4528, allocations: 127 kB / 1.254 GB, free: 6.547 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/0.453, allocations: 164 kB / 1.255 GB, free: 6.387 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.4556, allocations: 1.612 MB / 1.256 GB, free: 4.711 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.898e-05/0.4557, allocations: 3.984 kB / 1.256 GB, free: 4.707 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.4558, allocations: 64 kB / 1.256 GB, free: 4.645 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.384e-05/0.4559, allocations: 43.94 kB / 1.256 GB, free: 4.602 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/0.4578, allocations: 1.155 MB / 1.257 GB, free: 3.441 MB / 1.014 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.4744/0.9322, allocations: 7.926 MB / 1.265 GB, free: 164.9 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000901/0.9331, allocations: 478.1 kB / 1.266 GB, free: 164.9 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005367/0.9337, allocations: 328.2 kB / 1.266 GB, free: 164.7 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004689/0.9342, allocations: 0.753 MB / 1.267 GB, free: 163.9 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.9342, allocations: 44.62 kB / 1.267 GB, free: 163.8 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.695e-06/0.9342, allocations: 0.7812 kB / 1.267 GB, free: 163.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.002345/0.9366, allocations: 1.007 MB / 1.268 GB, free: 163.6 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.9366, allocations: 57.56 kB / 1.268 GB, free: 163.5 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003939/0.9406, allocations: 2.337 MB / 1.27 GB, free: 162.6 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002518/0.9409, allocations: 49.91 kB / 1.27 GB, free: 162.6 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009837/0.9419, allocations: 1.164 MB / 1.271 GB, free: 161.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.9421, allocations: 224 kB / 1.271 GB, free: 161.6 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/0.9425, allocations: 259.6 kB / 1.272 GB, free: 161.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.9426, allocations: 350 kB / 1.272 GB, free: 161.2 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007693/0.9434, allocations: 360.4 kB / 1.272 GB, free: 161 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.9445, allocations: 0.7477 MB / 1.273 GB, free: 160.4 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.9461, allocations: 0.9743 MB / 1.274 GB, free: 159.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.185e-05/0.9461, allocations: 2.156 kB / 1.274 GB, free: 159.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003108/0.9492, allocations: 1.305 MB / 1.275 GB, free: 159.2 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.9493, allocations: 12.25 kB / 1.275 GB, free: 159.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.9493, allocations: 8.156 kB / 1.275 GB, free: 159.2 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/0.9493, allocations: 22.38 kB / 1.275 GB, free: 159.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.9504, allocations: 250.4 kB / 1.275 GB, free: 159.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.892e-05/0.9504, allocations: 19.88 kB / 1.276 GB, free: 159.2 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.9523, allocations: 176.2 kB / 1.276 GB, free: 159.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.9524, allocations: 54.05 kB / 1.276 GB, free: 159.1 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001393/0.9538, allocations: 0.7646 MB / 1.276 GB, free: 158.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000831/0.9547, allocations: 0.7374 MB / 1.277 GB, free: 158.2 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001278/0.9559, allocations: 0.9546 MB / 1.278 GB, free: 157.5 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.903e-06/0.956, allocations: 3.5 kB / 1.278 GB, free: 157.5 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002722/0.9587, allocations: 1.268 MB / 1.279 GB, free: 157 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.9587, allocations: 11.94 kB / 1.279 GB, free: 157 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.9588, allocations: 8 kB / 1.279 GB, free: 157 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.757e-05/0.9588, allocations: 19.2 kB / 1.279 GB, free: 157 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009766/0.9598, allocations: 246.2 kB / 1.28 GB, free: 157 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.9598, allocations: 20.08 kB / 1.28 GB, free: 156.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.9617, allocations: 122.8 kB / 1.28 GB, free: 156.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.9618, allocations: 53.5 kB / 1.28 GB, free: 156.9 MB / 1.014 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.0002964/0.9621, allocations: 257.3 kB / 1.28 GB, free: 156.7 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000495/0.9626, allocations: 253.2 kB / 1.28 GB, free: 156.5 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/0.9643, allocations: 0.878 MB / 1.281 GB, free: 156.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.9644, allocations: 10.72 kB / 1.281 GB, free: 156.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.9644, allocations: 0.6562 kB / 1.281 GB, free: 156.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009659/0.9653, allocations: 0.6868 MB / 1.282 GB, free: 155.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.9698, allocations: 2.586 MB / 1.284 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.9698, allocations: 3.375 kB / 1.284 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.9704, allocations: 129.2 kB / 1.285 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.9704, allocations: 4.75 kB / 1.285 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/0.9705, allocations: 16.67 kB / 1.285 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.9705, allocations: 3.156 kB / 1.285 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.9705, allocations: 1.969 kB / 1.285 GB, free: 154.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002148/0.9726, allocations: 1.332 MB / 1.286 GB, free: 153.9 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009232/0.9736, allocations: 430 kB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/0.9739, allocations: 12.25 kB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.975, allocations: 48.39 kB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.9752, allocations: 40.78 kB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/0.9752, allocations: 31.19 kB / 1.286 GB, free: 153.6 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002446/0.9777, allocations: 1.568 MB / 1.288 GB, free: 153 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9777, allocations: 2.219 kB / 1.288 GB, free: 153 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003382/0.9811, allocations: 1.127 MB / 1.289 GB, free: 152.9 MB / 1.014 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.003663/0.9848, allocations: 2.544 MB / 1.291 GB, free: 151.6 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002714/0.9875, allocations: 1.36 MB / 1.293 GB, free: 151.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.9875, allocations: 1.625 kB / 1.293 GB, free: 151.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0005633/0.9881, allocations: 325.3 kB / 1.293 GB, free: 151 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006604/0.9947, allocations: 1.379 MB / 1.294 GB, free: 150.7 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02169/1.016, allocations: 14.99 MB / 1.309 GB, free: 143.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007878/1.017, allocations: 1.594 MB / 1.311 GB, free: 142.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.00193/1.019, allocations: 0.4925 MB / 1.311 GB, free: 142.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009808/1.02, allocations: 0.9569 MB / 1.312 GB, free: 142 MB / 1.014 GB Notification: Performance of SimCode: time 8.02e-07/1.02, allocations: 0 / 1.312 GB, free: 142 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1287/1.149, allocations: 64.27 MB / 1.375 GB, free: 80.52 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/13.03, allocations: 12.05 kB / 1.375 GB, free: 80.51 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches