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.007877/0.007877, allocations: 104.2 kB / 15.73 MB, free: 6.043 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.001903/0.001903, allocations: 189.6 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.399/2.399, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 64.12 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7177/0.7192, allocations: 151.6 MB / 1.166 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1069/0.8261, allocations: 112.7 MB / 1.276 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03043/0.8566, allocations: 20.24 MB / 1.296 GB, free: 14.5 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004226/0.8609, allocations: 111.3 kB / 1.296 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.003902/0.8648, allocations: 1.277 MB / 1.297 GB, free: 13.1 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.009502/0.8744, allocations: 3.681 MB / 1.301 GB, free: 9.406 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00759/0.882, allocations: 3.123 MB / 1.304 GB, free: 6.32 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.009223/0.8912, allocations: 7.213 MB / 1.311 GB, free: 15.09 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003701/0.8949, allocations: 2.576 MB / 1.313 GB, free: 12.45 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006039/0.901, allocations: 2.809 MB / 1.316 GB, free: 9.641 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003536/0.9045, allocations: 2.124 MB / 1.318 GB, free: 7.508 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.000507/0.9051, allocations: 259.9 kB / 1.319 GB, free: 7.254 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00351/0.9086, allocations: 1.646 MB / 1.32 GB, free: 5.605 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0006969/0.9093, allocations: 0.689 MB / 1.321 GB, free: 4.914 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001729/0.911, allocations: 1.516 MB / 1.322 GB, free: 3.391 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.00551/0.9165, allocations: 4.385 MB / 1.327 GB, free: 14.99 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.9166, allocations: 8 kB / 1.327 GB, free: 14.98 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.868e-06/0.9166, allocations: 0 / 1.327 GB, free: 14.98 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.773e-05/0.9166, allocations: 3.938 kB / 1.327 GB, free: 14.98 MB / 1.061 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.004955/0.9216, allocations: 3.222 MB / 1.33 GB, free: 11.69 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.9217, allocations: 12.92 kB / 1.33 GB, free: 11.68 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002561/0.9219, allocations: 219.7 kB / 1.33 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007615/0.9227, allocations: 328.4 kB / 1.33 GB, free: 11.13 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003816/0.9265, allocations: 2.204 MB / 1.332 GB, free: 8.855 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-05/0.9266, allocations: 130.9 kB / 1.333 GB, free: 8.727 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00025/0.9269, allocations: 164 kB / 1.333 GB, free: 8.566 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/0.9295, allocations: 1.612 MB / 1.334 GB, free: 6.891 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.722e-05/0.9296, allocations: 3.906 kB / 1.334 GB, free: 6.887 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.9297, allocations: 64 kB / 1.334 GB, free: 6.824 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.957e-05/0.9298, allocations: 39.94 kB / 1.334 GB, free: 6.785 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.9319, allocations: 1.151 MB / 1.336 GB, free: 5.629 MB / 1.061 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.01118/0.9431, allocations: 7.912 MB / 1.343 GB, free: 13.21 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.9439, allocations: 477.9 kB / 1.344 GB, free: 12.73 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/0.9444, allocations: 327 kB / 1.344 GB, free: 12.41 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006059/0.945, allocations: 0.7485 MB / 1.345 GB, free: 11.5 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.9451, allocations: 47.06 kB / 1.345 GB, free: 11.44 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.444e-06/0.9451, allocations: 0 / 1.345 GB, free: 11.44 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002117/0.9472, allocations: 0.9881 MB / 1.346 GB, free: 10.45 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.9473, allocations: 59.97 kB / 1.346 GB, free: 10.38 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003039/0.9503, allocations: 2.343 MB / 1.348 GB, free: 8.02 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.9505, allocations: 45.7 kB / 1.348 GB, free: 7.969 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009518/0.9514, allocations: 1.149 MB / 1.349 GB, free: 6.809 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.9517, allocations: 220.9 kB / 1.349 GB, free: 6.59 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003667/0.952, allocations: 250.7 kB / 1.35 GB, free: 6.336 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.9522, allocations: 349.9 kB / 1.35 GB, free: 5.988 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000666/0.9529, allocations: 361.9 kB / 1.35 GB, free: 5.633 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009684/0.9538, allocations: 0.7463 MB / 1.351 GB, free: 4.73 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.9553, allocations: 0.9824 MB / 1.352 GB, free: 3.633 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.9553, allocations: 3.938 kB / 1.352 GB, free: 3.629 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002946/0.9583, allocations: 1.292 MB / 1.353 GB, free: 2.328 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.9584, allocations: 12 kB / 1.353 GB, free: 2.316 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.9584, allocations: 8 kB / 1.353 GB, free: 2.309 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.957e-05/0.9584, allocations: 12 kB / 1.353 GB, free: 2.297 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.9601, allocations: 251.6 kB / 1.354 GB, free: 2.051 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.891e-05/0.9601, allocations: 23.92 kB / 1.354 GB, free: 2.027 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/0.9627, allocations: 162.5 kB / 1.354 GB, free: 1.867 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.9628, allocations: 51.98 kB / 1.354 GB, free: 1.816 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002404/0.9653, allocations: 0.7624 MB / 1.355 GB, free: 1.051 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001596/0.9669, allocations: 0.7348 MB / 1.355 GB, free: 164 kB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002337/0.9692, allocations: 0.9567 MB / 1.356 GB, free: 15.08 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.798e-06/0.9693, allocations: 0 / 1.356 GB, free: 15.08 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.003977/0.9733, allocations: 1.27 MB / 1.357 GB, free: 13.8 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.9733, allocations: 8 kB / 1.358 GB, free: 13.8 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.9733, allocations: 8 kB / 1.358 GB, free: 13.79 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.9734, allocations: 16 kB / 1.358 GB, free: 13.77 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.975, allocations: 259.5 kB / 1.358 GB, free: 13.52 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.055e-05/0.9751, allocations: 15.94 kB / 1.358 GB, free: 13.5 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.9769, allocations: 127.5 kB / 1.358 GB, free: 13.38 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-05/0.977, allocations: 51.98 kB / 1.358 GB, free: 13.33 MB / 1.092 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.0003047/0.9773, allocations: 251.9 kB / 1.358 GB, free: 13.07 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006146/0.9779, allocations: 237 kB / 1.358 GB, free: 12.84 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.9797, allocations: 0.8741 MB / 1.359 GB, free: 11.95 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.9798, allocations: 15.92 kB / 1.359 GB, free: 11.93 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.9798, allocations: 0 / 1.359 GB, free: 11.93 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000977/0.9808, allocations: 0.6775 MB / 1.36 GB, free: 11.22 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.985, allocations: 2.589 MB / 1.362 GB, free: 8.559 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.985, allocations: 4 kB / 1.362 GB, free: 8.555 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.9856, allocations: 119.9 kB / 1.363 GB, free: 8.438 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-05/0.9856, allocations: 7.984 kB / 1.363 GB, free: 8.43 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.9856, allocations: 16.09 kB / 1.363 GB, free: 8.414 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.716e-06/0.9856, allocations: 4 kB / 1.363 GB, free: 8.41 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.9857, allocations: 3.938 kB / 1.363 GB, free: 8.406 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.9878, allocations: 1.313 MB / 1.364 GB, free: 7.062 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000817/0.9886, allocations: 417.9 kB / 1.364 GB, free: 6.633 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003502/0.989, allocations: 12 kB / 1.364 GB, free: 6.621 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.99, allocations: 51.92 kB / 1.364 GB, free: 6.57 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.645e-05/0.9901, allocations: 40.45 kB / 1.364 GB, free: 6.527 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.724e-05/0.9902, allocations: 43.91 kB / 1.364 GB, free: 6.484 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002292/0.9925, allocations: 1.566 MB / 1.366 GB, free: 4.914 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9925, allocations: 4 kB / 1.366 GB, free: 4.91 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002702/0.9952, allocations: 1.103 MB / 1.367 GB, free: 3.805 MB / 1.092 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.003692/0.9989, allocations: 2.534 MB / 1.37 GB, free: 1.34 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002414/1.001, allocations: 1.351 MB / 1.371 GB, free: 15.99 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.001, allocations: 4 kB / 1.371 GB, free: 15.98 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0005042/1.002, allocations: 323 kB / 1.371 GB, free: 15.67 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005685/1.008, allocations: 1.387 MB / 1.373 GB, free: 14.32 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02525/1.033, allocations: 14.9 MB / 1.387 GB, free: 14.96 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/1.035, allocations: 1.59 MB / 1.389 GB, free: 13.33 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.002151/1.037, allocations: 0.4947 MB / 1.389 GB, free: 12.83 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/1.038, allocations: 0.9601 MB / 1.39 GB, free: 11.87 MB / 1.123 GB Notification: Performance of SimCode: time 8.31e-07/1.038, allocations: 4 kB / 1.39 GB, free: 11.87 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/1.152, allocations: 64.28 MB / 1.453 GB, free: 12.19 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.27, allocations: 16.91 kB / 1.453 GB, free: 12.18 MB / 1.186 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