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.007511/0.007511, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001818/0.001819, allocations: 194.5 kB / 16.67 MB, free: 5.52 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.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.201/2.201, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002428/0.002429, allocations: 67.89 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7393/0.7417, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1173/0.8591, allocations: 112.7 MB / 1.197 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03043/0.8896, allocations: 20.25 MB / 1.217 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004324/0.894, allocations: 109.4 kB / 1.217 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004119/0.8981, allocations: 1.28 MB / 1.219 GB, free: 1.961 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.9095, allocations: 3.684 MB / 1.222 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.9196, allocations: 3.12 MB / 1.225 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01155/0.9312, allocations: 7.21 MB / 1.232 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005841/0.937, allocations: 2.569 MB / 1.235 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007628/0.9447, allocations: 2.827 MB / 1.238 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003941/0.9487, allocations: 2.128 MB / 1.24 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0009763/0.9497, allocations: 256 kB / 1.24 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005023/0.9547, allocations: 1.642 MB / 1.241 GB, free: 192 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001515/0.9563, allocations: 0.6928 MB / 1.242 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003705/0.96, allocations: 1.512 MB / 1.244 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.008226/0.9682, allocations: 4.393 MB / 1.248 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.9683, allocations: 0 / 1.248 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9683, allocations: 7.938 kB / 1.248 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001289/0.9684, allocations: 0 / 1.248 GB, free: 9.559 MB / 0.9825 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.006088/0.9745, allocations: 3.23 MB / 1.251 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.9746, allocations: 8.031 kB / 1.251 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002625/0.9748, allocations: 219.7 kB / 1.251 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007994/0.9757, allocations: 324.4 kB / 1.252 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003915/0.9796, allocations: 2.202 MB / 1.254 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.004e-05/0.9797, allocations: 123 kB / 1.254 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002393/0.9799, allocations: 164 kB / 1.254 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/0.9825, allocations: 1.612 MB / 1.256 GB, free: 1.477 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.605e-05/0.9825, allocations: 0 / 1.256 GB, free: 1.477 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.9827, allocations: 64 kB / 1.256 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.836e-05/0.9827, allocations: 51.92 kB / 1.256 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.9847, allocations: 1.147 MB / 1.257 GB, free: 216 kB / 0.9825 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.01007/0.9947, allocations: 7.924 MB / 1.265 GB, free: 7.777 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007695/0.9955, allocations: 469.8 kB / 1.265 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/0.996, allocations: 325.8 kB / 1.265 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005627/0.9966, allocations: 0.7602 MB / 1.266 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.9966, allocations: 51.05 kB / 1.266 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.404e-06/0.9967, allocations: 0 / 1.266 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002063/0.9987, allocations: 0.9842 MB / 1.267 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.9988, allocations: 63.95 kB / 1.267 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/1.002, allocations: 2.332 MB / 1.269 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001926/1.002, allocations: 49.7 kB / 1.269 GB, free: 2.543 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009364/1.003, allocations: 1.149 MB / 1.271 GB, free: 1.383 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/1.003, allocations: 213 kB / 1.271 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003517/1.004, allocations: 258.5 kB / 1.271 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001209/1.004, allocations: 345.9 kB / 1.271 GB, free: 0.5664 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/1.004, allocations: 365.9 kB / 1.272 GB, free: 212 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000926/1.005, allocations: 0.7501 MB / 1.272 GB, free: 15.29 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/1.007, allocations: 0.9823 MB / 1.273 GB, free: 14.2 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/1.007, allocations: 7.938 kB / 1.273 GB, free: 14.19 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002613/1.009, allocations: 1.288 MB / 1.275 GB, free: 12.89 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/1.009, allocations: 12.03 kB / 1.275 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/1.009, allocations: 8 kB / 1.275 GB, free: 12.87 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.268e-05/1.01, allocations: 16 kB / 1.275 GB, free: 12.86 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/1.011, allocations: 247.6 kB / 1.275 GB, free: 12.61 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.737e-05/1.011, allocations: 19.92 kB / 1.275 GB, free: 12.59 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/1.012, allocations: 174.3 kB / 1.275 GB, free: 12.42 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.807e-05/1.012, allocations: 51.98 kB / 1.275 GB, free: 12.37 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001369/1.014, allocations: 0.7563 MB / 1.276 GB, free: 11.61 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00096/1.015, allocations: 0.7348 MB / 1.277 GB, free: 10.72 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001319/1.016, allocations: 0.9641 MB / 1.278 GB, free: 9.637 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.619e-06/1.016, allocations: 0 / 1.278 GB, free: 9.637 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002398/1.019, allocations: 1.262 MB / 1.279 GB, free: 8.367 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/1.019, allocations: 8 kB / 1.279 GB, free: 8.359 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/1.019, allocations: 8 kB / 1.279 GB, free: 8.352 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/1.019, allocations: 16 kB / 1.279 GB, free: 8.336 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009077/1.019, allocations: 247.6 kB / 1.279 GB, free: 8.094 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/1.02, allocations: 19.92 kB / 1.279 GB, free: 8.074 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/1.021, allocations: 123.5 kB / 1.279 GB, free: 7.953 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.57e-05/1.021, allocations: 51.98 kB / 1.279 GB, free: 7.902 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.0002904/1.022, allocations: 251.8 kB / 1.28 GB, free: 7.648 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/1.022, allocations: 237 kB / 1.28 GB, free: 7.414 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/1.024, allocations: 0.8896 MB / 1.281 GB, free: 6.512 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/1.024, allocations: 4 kB / 1.281 GB, free: 6.508 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/1.024, allocations: 0 / 1.281 GB, free: 6.508 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009913/1.025, allocations: 0.697 MB / 1.281 GB, free: 5.777 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003848/1.029, allocations: 2.586 MB / 1.284 GB, free: 3.121 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/1.029, allocations: 0 / 1.284 GB, free: 3.121 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005415/1.029, allocations: 127.8 kB / 1.284 GB, free: 2.996 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/1.029, allocations: 4 kB / 1.284 GB, free: 2.992 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/1.029, allocations: 20.09 kB / 1.284 GB, free: 2.973 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/1.029, allocations: 4 kB / 1.284 GB, free: 2.969 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/1.029, allocations: 0 / 1.284 GB, free: 2.969 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/1.031, allocations: 1.321 MB / 1.285 GB, free: 1.617 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007775/1.032, allocations: 414 kB / 1.286 GB, free: 1.191 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/1.032, allocations: 12 kB / 1.286 GB, free: 1.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009705/1.033, allocations: 47.84 kB / 1.286 GB, free: 1.133 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/1.033, allocations: 52.31 kB / 1.286 GB, free: 1.078 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.585e-05/1.034, allocations: 35.98 kB / 1.286 GB, free: 1.043 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002221/1.036, allocations: 1.569 MB / 1.287 GB, free: 15.47 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.1e-07/1.036, allocations: 0 / 1.287 GB, free: 15.47 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002618/1.038, allocations: 1.111 MB / 1.288 GB, free: 14.36 MB / 1.029 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.003879/1.042, allocations: 2.508 MB / 1.291 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002484/1.045, allocations: 1.363 MB / 1.292 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.045, allocations: 4 kB / 1.292 GB, free: 10.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005292/1.045, allocations: 327 kB / 1.293 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006068/1.051, allocations: 1.394 MB / 1.294 GB, free: 8.918 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/1.075, allocations: 14.9 MB / 1.308 GB, free: 9.551 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001154/1.077, allocations: 1.594 MB / 1.31 GB, free: 7.922 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001879/1.078, allocations: 490.7 kB / 1.31 GB, free: 7.438 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/1.08, allocations: 0.964 MB / 1.311 GB, free: 6.473 MB / 1.045 GB Notification: Performance of SimCode: time 7.91e-07/1.08, allocations: 0 / 1.311 GB, free: 6.473 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1004/1.18, allocations: 64.26 MB / 1.374 GB, free: 6.98 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/13.39, allocations: 7.719 kB / 1.374 GB, free: 6.973 MB / 1.107 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