Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_10_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.004946/0.004946, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001177/0.001177, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.557/2.557, allocations: 437 MB / 0.7105 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.91 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2504, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6391/0.8895, allocations: 112.7 MB / 1.276 GB, free: 22.35 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02575/0.9153, allocations: 20.25 MB / 1.296 GB, free: 20.19 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004783/0.9201, allocations: 108.3 kB / 1.296 GB, free: 20.19 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003719/0.9238, allocations: 1.299 MB / 1.297 GB, free: 19.61 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.9343, allocations: 3.873 MB / 1.301 GB, free: 17.86 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.007464/0.9418, allocations: 3.128 MB / 1.304 GB, free: 16.55 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009235/0.951, allocations: 7.224 MB / 1.311 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00374/0.9548, allocations: 2.571 MB / 1.314 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006285/0.9611, allocations: 2.907 MB / 1.317 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003493/0.9646, allocations: 2.116 MB / 1.319 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004486/0.965, allocations: 254.2 kB / 1.319 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003923/0.969, allocations: 1.655 MB / 1.32 GB, free: 9.629 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005642/0.9696, allocations: 0.6875 MB / 1.321 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.971, allocations: 1.518 MB / 1.323 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005165/0.9762, allocations: 4.404 MB / 1.327 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9762, allocations: 0 / 1.327 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9762, allocations: 0 / 1.327 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.949e-05/0.9763, allocations: 0.8906 kB / 1.327 GB, free: 6.676 MB / 0.9981 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.004952/0.9813, allocations: 3.323 MB / 1.33 GB, free: 4.551 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.9813, allocations: 13.16 kB / 1.33 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002285/0.9816, allocations: 221 kB / 1.33 GB, free: 4.406 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/0.9824, allocations: 340.6 kB / 1.331 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003352/0.9857, allocations: 2.229 MB / 1.333 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.749e-05/0.9858, allocations: 123.3 kB / 1.333 GB, free: 2.93 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.986, allocations: 163.7 kB / 1.333 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.9885, allocations: 1.609 MB / 1.335 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.9885, allocations: 5.406 kB / 1.335 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.9887, allocations: 66.73 kB / 1.335 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.587e-05/0.9887, allocations: 48.78 kB / 1.335 GB, free: 2.082 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.9906, allocations: 1.143 MB / 1.336 GB, free: 1.656 MB / 0.9981 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.01005/1.001, allocations: 7.931 MB / 1.344 GB, free: 11.31 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/1.002, allocations: 494.9 kB / 1.344 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/1.002, allocations: 319.6 kB / 1.345 GB, free: 10.89 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005708/1.003, allocations: 0.7526 MB / 1.345 GB, free: 10.02 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/1.003, allocations: 47.34 kB / 1.345 GB, free: 9.969 MB / 1.014 GB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/1.003, allocations: 1.125 kB / 1.345 GB, free: 9.969 MB / 1.014 GB Notification: Performance of matching and sorting (n=60): time 0.001989/1.005, allocations: 0.9938 MB / 1.346 GB, free: 9.457 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/1.005, allocations: 58.47 kB / 1.346 GB, free: 9.395 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/1.007, allocations: 2.343 MB / 1.349 GB, free: 8.148 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.302e-05/1.008, allocations: 44.45 kB / 1.349 GB, free: 8.105 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008734/1.008, allocations: 1.162 MB / 1.35 GB, free: 7.082 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002/1.009, allocations: 233.6 kB / 1.35 GB, free: 6.879 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003401/1.009, allocations: 263.3 kB / 1.35 GB, free: 6.719 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001119/1.009, allocations: 348.9 kB / 1.351 GB, free: 6.383 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006167/1.01, allocations: 357.4 kB / 1.351 GB, free: 6.203 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009017/1.011, allocations: 0.7478 MB / 1.352 GB, free: 5.539 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/1.012, allocations: 0.9779 MB / 1.353 GB, free: 4.832 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/1.012, allocations: 2.469 kB / 1.353 GB, free: 4.832 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00207/1.014, allocations: 1.303 MB / 1.354 GB, free: 4.18 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/1.014, allocations: 8.219 kB / 1.354 GB, free: 4.18 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/1.014, allocations: 8.469 kB / 1.354 GB, free: 4.18 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.766e-05/1.014, allocations: 13.06 kB / 1.354 GB, free: 4.18 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000953/1.015, allocations: 262.8 kB / 1.354 GB, free: 4.113 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/1.015, allocations: 18.09 kB / 1.354 GB, free: 4.109 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/1.017, allocations: 168.8 kB / 1.354 GB, free: 3.992 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.675e-05/1.017, allocations: 54.61 kB / 1.354 GB, free: 3.977 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001151/1.018, allocations: 0.7638 MB / 1.355 GB, free: 3.52 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008532/1.019, allocations: 0.7423 MB / 1.356 GB, free: 2.852 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001229/1.02, allocations: 0.9335 MB / 1.357 GB, free: 2.16 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.209e-06/1.02, allocations: 5.625 kB / 1.357 GB, free: 2.156 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002048/1.022, allocations: 1.278 MB / 1.358 GB, free: 1.504 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/1.022, allocations: 8 kB / 1.358 GB, free: 1.504 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/1.022, allocations: 15.39 kB / 1.358 GB, free: 1.5 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/1.022, allocations: 13.56 kB / 1.358 GB, free: 1.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008814/1.023, allocations: 251 kB / 1.358 GB, free: 1.441 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/1.023, allocations: 17.66 kB / 1.358 GB, free: 1.438 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/1.025, allocations: 122.3 kB / 1.358 GB, free: 1.363 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/1.025, allocations: 57.25 kB / 1.359 GB, free: 1.344 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.0002859/1.025, allocations: 251.2 kB / 1.359 GB, free: 1.109 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003727/1.025, allocations: 246.3 kB / 1.359 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/1.027, allocations: 0.8933 MB / 1.36 GB, free: 472 kB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/1.027, allocations: 10.19 kB / 1.36 GB, free: 468 kB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/1.027, allocations: 2.625 kB / 1.36 GB, free: 468 kB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009544/1.028, allocations: 0.681 MB / 1.361 GB, free: 40 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003731/1.032, allocations: 2.583 MB / 1.363 GB, free: 14.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.032, allocations: 4.094 kB / 1.363 GB, free: 14.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/1.032, allocations: 129.2 kB / 1.363 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.032, allocations: 2.875 kB / 1.363 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/1.032, allocations: 19.92 kB / 1.363 GB, free: 14.19 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/1.032, allocations: 2.906 kB / 1.363 GB, free: 14.19 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.032, allocations: 0 / 1.363 GB, free: 14.19 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/1.034, allocations: 1.327 MB / 1.365 GB, free: 13.4 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007275/1.035, allocations: 434 kB / 1.365 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/1.035, allocations: 13.72 kB / 1.365 GB, free: 13.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009835/1.036, allocations: 51.48 kB / 1.365 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/1.036, allocations: 45.72 kB / 1.365 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.743e-05/1.036, allocations: 31.03 kB / 1.365 GB, free: 12.97 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001975/1.038, allocations: 1.568 MB / 1.367 GB, free: 12.13 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.7e-07/1.038, allocations: 6.875 kB / 1.367 GB, free: 12.13 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002497/1.041, allocations: 1.111 MB / 1.368 GB, free: 11.82 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.003585/1.045, allocations: 2.54 MB / 1.37 GB, free: 9.387 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002301/1.047, allocations: 1.35 MB / 1.371 GB, free: 8.039 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.047, allocations: 4 kB / 1.371 GB, free: 8.035 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005018/1.047, allocations: 328.3 kB / 1.372 GB, free: 7.715 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005463/1.053, allocations: 1.382 MB / 1.373 GB, free: 6.379 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02053/1.073, allocations: 14.99 MB / 1.388 GB, free: 6.93 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/1.075, allocations: 1.593 MB / 1.389 GB, free: 5.305 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001829/1.076, allocations: 0.4926 MB / 1.39 GB, free: 4.809 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/1.078, allocations: 0.9601 MB / 1.391 GB, free: 3.848 MB / 1.045 GB Notification: Performance of SimCode: time 9.82e-07/1.078, allocations: 0 / 1.391 GB, free: 3.848 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09818/1.176, allocations: 64.29 MB / 1.454 GB, free: 4.234 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/13.07, allocations: 7.844 kB / 1.454 GB, free: 4.227 MB / 1.107 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches