Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_11_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.006652/0.006652, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001667/0.001667, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.32/1.32, 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 11.1.0-maint.11.x/package.mo): time 2.635/2.635, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 67.89 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2672, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.5784/0.8456, allocations: 112.7 MB / 1.33 GB, free: 44 kB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.02849/0.8741, allocations: 20.26 MB / 1.35 GB, free: 1.562 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004196/0.8783, allocations: 105.3 kB / 1.35 GB, free: 1.523 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.00371/0.8821, allocations: 1.283 MB / 1.351 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01017/0.8923, allocations: 3.678 MB / 1.355 GB, free: 14.55 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.007376/0.8997, allocations: 3.131 MB / 1.358 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.009207/0.9089, allocations: 7.208 MB / 1.365 GB, free: 8.727 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003288/0.9122, allocations: 2.575 MB / 1.368 GB, free: 7.078 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005612/0.9178, allocations: 2.822 MB / 1.37 GB, free: 5.379 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003091/0.9209, allocations: 2.124 MB / 1.372 GB, free: 4.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0003786/0.9213, allocations: 255.2 kB / 1.373 GB, free: 4.09 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.9248, allocations: 1.648 MB / 1.374 GB, free: 3.273 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0006446/0.9254, allocations: 0.6902 MB / 1.375 GB, free: 2.73 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001553/0.927, allocations: 1.516 MB / 1.376 GB, free: 1.695 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.005412/0.9324, allocations: 4.406 MB / 1.381 GB, free: 14.62 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.9324, allocations: 1.438 kB / 1.381 GB, free: 14.62 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.252e-06/0.9324, allocations: 4 kB / 1.381 GB, free: 14.62 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.452e-05/0.9325, allocations: 0 / 1.381 GB, free: 14.62 MB / 1.076 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.004945/0.9374, allocations: 3.323 MB / 1.384 GB, free: 12.14 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.9375, allocations: 9.438 kB / 1.384 GB, free: 12.14 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002486/0.9377, allocations: 219.4 kB / 1.384 GB, free: 11.97 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006998/0.9384, allocations: 338.2 kB / 1.384 GB, free: 11.8 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/0.9418, allocations: 2.23 MB / 1.387 GB, free: 10.12 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.695e-05/0.9419, allocations: 123.5 kB / 1.387 GB, free: 10.06 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.9421, allocations: 172.6 kB / 1.387 GB, free: 10 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.9446, allocations: 1.603 MB / 1.388 GB, free: 9.008 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.9446, allocations: 5.359 kB / 1.388 GB, free: 9.004 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.9447, allocations: 63.12 kB / 1.389 GB, free: 8.957 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.9448, allocations: 46.03 kB / 1.389 GB, free: 8.949 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.9467, allocations: 1.145 MB / 1.39 GB, free: 8.371 MB / 1.076 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.009205/0.9559, allocations: 7.934 MB / 1.397 GB, free: 1.582 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.9566, allocations: 480.2 kB / 1.398 GB, free: 1.344 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.9571, allocations: 322.3 kB / 1.398 GB, free: 1.18 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006299/0.9577, allocations: 0.766 MB / 1.399 GB, free: 296 kB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.9578, allocations: 37.81 kB / 1.399 GB, free: 252 kB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.104e-06/0.9578, allocations: 0 / 1.399 GB, free: 252 kB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.001707/0.9595, allocations: 1.003 MB / 1.4 GB, free: 15.73 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.9596, allocations: 61.56 kB / 1.4 GB, free: 15.66 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.9624, allocations: 2.338 MB / 1.402 GB, free: 13.62 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/0.9624, allocations: 49.7 kB / 1.402 GB, free: 13.57 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.9635, allocations: 1.159 MB / 1.403 GB, free: 12.4 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.9637, allocations: 230 kB / 1.404 GB, free: 12.17 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/0.964, allocations: 254.8 kB / 1.404 GB, free: 11.91 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.9642, allocations: 353.9 kB / 1.404 GB, free: 11.56 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006511/0.9648, allocations: 361.9 kB / 1.405 GB, free: 11.21 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009653/0.9658, allocations: 0.7385 MB / 1.405 GB, free: 10.3 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.9673, allocations: 0.9824 MB / 1.406 GB, free: 9.207 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.9673, allocations: 7.938 kB / 1.406 GB, free: 9.199 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002163/0.9694, allocations: 1.304 MB / 1.408 GB, free: 7.891 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.9695, allocations: 16.06 kB / 1.408 GB, free: 7.875 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.9695, allocations: 8 kB / 1.408 GB, free: 7.867 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.9695, allocations: 12 kB / 1.408 GB, free: 7.855 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009134/0.9704, allocations: 255.5 kB / 1.408 GB, free: 7.605 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.456e-05/0.9705, allocations: 19.94 kB / 1.408 GB, free: 7.586 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.9718, allocations: 174.8 kB / 1.408 GB, free: 7.414 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.036e-05/0.9719, allocations: 55.98 kB / 1.408 GB, free: 7.359 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001232/0.9731, allocations: 0.7524 MB / 1.409 GB, free: 6.602 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009282/0.9741, allocations: 0.731 MB / 1.41 GB, free: 5.711 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001341/0.9754, allocations: 0.9601 MB / 1.411 GB, free: 4.633 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.326e-06/0.9754, allocations: 0 / 1.411 GB, free: 4.633 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002/0.9774, allocations: 1.279 MB / 1.412 GB, free: 3.348 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.9775, allocations: 10.19 kB / 1.412 GB, free: 3.34 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.9775, allocations: 8 kB / 1.412 GB, free: 3.332 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.9775, allocations: 23.98 kB / 1.412 GB, free: 3.309 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.9783, allocations: 247.6 kB / 1.412 GB, free: 3.066 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.868e-05/0.9784, allocations: 15.94 kB / 1.412 GB, free: 3.051 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.9796, allocations: 127.7 kB / 1.412 GB, free: 2.926 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.989e-05/0.9797, allocations: 51.98 kB / 1.412 GB, free: 2.875 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.0002425/0.98, allocations: 251.9 kB / 1.412 GB, free: 2.621 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/0.9803, allocations: 250.3 kB / 1.413 GB, free: 2.375 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.9819, allocations: 0.8857 MB / 1.414 GB, free: 1.477 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.9819, allocations: 8 kB / 1.414 GB, free: 1.469 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.9819, allocations: 0 / 1.414 GB, free: 1.469 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001031/0.983, allocations: 0.6853 MB / 1.414 GB, free: 0.7539 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.9865, allocations: 2.586 MB / 1.417 GB, free: 14.09 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.9865, allocations: 4.234 kB / 1.417 GB, free: 14.09 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004955/0.9871, allocations: 127.8 kB / 1.417 GB, free: 13.96 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.9871, allocations: 4 kB / 1.417 GB, free: 13.96 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.9871, allocations: 15.98 kB / 1.417 GB, free: 13.94 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.9871, allocations: 8.094 kB / 1.417 GB, free: 13.93 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.9871, allocations: 3.984 kB / 1.417 GB, free: 13.93 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.9891, allocations: 1.334 MB / 1.418 GB, free: 12.57 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005871/0.9897, allocations: 423.3 kB / 1.419 GB, free: 12.13 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000218/0.9899, allocations: 16 kB / 1.419 GB, free: 12.12 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000833/0.9907, allocations: 43.89 kB / 1.419 GB, free: 12.07 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.373e-05/0.9908, allocations: 44.44 kB / 1.419 GB, free: 12.03 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.303e-05/0.9909, allocations: 39.97 kB / 1.419 GB, free: 11.99 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002019/0.9929, allocations: 1.573 MB / 1.42 GB, free: 10.41 MB / 1.107 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9929, allocations: 0 / 1.42 GB, free: 10.41 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.002333/0.9953, allocations: 1.115 MB / 1.421 GB, free: 9.297 MB / 1.107 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.004065/0.9993, allocations: 2.527 MB / 1.424 GB, free: 6.879 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.002241/1.002, allocations: 1.351 MB / 1.425 GB, free: 5.527 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.002, allocations: 0 / 1.425 GB, free: 5.527 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0005189/1.002, allocations: 339 kB / 1.425 GB, free: 5.195 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00512/1.007, allocations: 1.377 MB / 1.427 GB, free: 3.859 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.028, allocations: 14.98 MB / 1.441 GB, free: 4.402 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001229/1.03, allocations: 1.594 MB / 1.443 GB, free: 2.777 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.00175/1.031, allocations: 0.4944 MB / 1.444 GB, free: 2.281 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/1.032, allocations: 0.9639 MB / 1.444 GB, free: 1.316 MB / 1.123 GB Notification: Performance of SimCode: time 6.81e-07/1.032, allocations: 0 / 1.444 GB, free: 1.316 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.87/5.903, allocations: 64.28 MB / 1.507 GB, free: 1.707 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.27/24.17, allocations: 11.78 kB / 1.507 GB, free: 1.695 MB / 1.186 GB (rm -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches