Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_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.01289/0.01289, allocations: 101.4 kB / 15.73 MB, free: 5.523 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.002398/0.002398, allocations: 196 kB / 16.67 MB, free: 5.461 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.984/1.984, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.69/2.69, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 63.91 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3374, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.7382/1.076, allocations: 112.6 MB / 1.317 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.03089/1.107, allocations: 20.26 MB / 1.337 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00593/1.113, allocations: 106.1 kB / 1.337 GB, free: 15.71 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004634/1.117, allocations: 1.275 MB / 1.338 GB, free: 14.92 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01338/1.131, allocations: 3.684 MB / 1.342 GB, free: 12.74 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.009746/1.14, allocations: 3.132 MB / 1.345 GB, free: 11.04 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01341/1.154, allocations: 7.2 MB / 1.352 GB, free: 7.559 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005111/1.159, allocations: 2.575 MB / 1.355 GB, free: 6.332 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008021/1.167, allocations: 2.896 MB / 1.357 GB, free: 4.754 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004632/1.172, allocations: 2.126 MB / 1.36 GB, free: 3.465 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.001123/1.173, allocations: 257.6 kB / 1.36 GB, free: 3.461 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005174/1.178, allocations: 1.644 MB / 1.361 GB, free: 2.648 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001243/1.179, allocations: 0.6873 MB / 1.362 GB, free: 2.109 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003391/1.183, allocations: 1.515 MB / 1.364 GB, free: 1.074 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.007236/1.19, allocations: 4.392 MB / 1.368 GB, free: 14.02 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/1.19, allocations: 1.094 kB / 1.368 GB, free: 14.02 MB / 1.061 GB Notification: Performance of FrontEnd: time 5.61e-06/1.19, allocations: 0 / 1.368 GB, free: 14.02 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001004/1.19, allocations: 7.938 kB / 1.368 GB, free: 14.01 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.006555/1.197, allocations: 3.221 MB / 1.371 GB, free: 11.64 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/1.197, allocations: 9.188 kB / 1.371 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002835/1.197, allocations: 216.3 kB / 1.371 GB, free: 11.47 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001135/1.198, allocations: 331.8 kB / 1.371 GB, free: 11.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00503/1.203, allocations: 2.201 MB / 1.374 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/1.203, allocations: 127.6 kB / 1.374 GB, free: 9.59 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000241/1.204, allocations: 163.8 kB / 1.374 GB, free: 9.539 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003044/1.207, allocations: 1.607 MB / 1.375 GB, free: 8.539 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/1.207, allocations: 9.25 kB / 1.375 GB, free: 8.531 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/1.207, allocations: 67.11 kB / 1.376 GB, free: 8.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.308e-05/1.207, allocations: 42.84 kB / 1.376 GB, free: 8.477 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002106/1.209, allocations: 1.151 MB / 1.377 GB, free: 7.891 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.01198/1.221, allocations: 7.902 MB / 1.384 GB, free: 1.133 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007819/1.222, allocations: 478.7 kB / 1.385 GB, free: 0.8906 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/1.222, allocations: 324 kB / 1.385 GB, free: 0.7266 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007364/1.223, allocations: 0.7574 MB / 1.386 GB, free: 15.85 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/1.223, allocations: 47.12 kB / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 4.018e-06/1.223, allocations: 0 / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.00236/1.225, allocations: 0.9809 MB / 1.387 GB, free: 15.3 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/1.226, allocations: 62.44 kB / 1.387 GB, free: 15.24 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00291/1.228, allocations: 2.343 MB / 1.389 GB, free: 13.99 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001204/1.229, allocations: 45.2 kB / 1.389 GB, free: 13.95 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009648/1.23, allocations: 1.159 MB / 1.39 GB, free: 12.93 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.000257/1.23, allocations: 213.4 kB / 1.391 GB, free: 12.74 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003636/1.23, allocations: 255.2 kB / 1.391 GB, free: 12.59 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001394/1.23, allocations: 349.6 kB / 1.391 GB, free: 12.25 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/1.231, allocations: 361 kB / 1.392 GB, free: 12.07 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008466/1.232, allocations: 0.7515 MB / 1.392 GB, free: 11.4 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/1.233, allocations: 0.9802 MB / 1.393 GB, free: 10.68 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/1.233, allocations: 3.062 kB / 1.393 GB, free: 10.68 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002125/1.235, allocations: 1.285 MB / 1.395 GB, free: 9.75 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/1.235, allocations: 13.86 kB / 1.395 GB, free: 9.738 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/1.235, allocations: 12.12 kB / 1.395 GB, free: 9.727 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/1.235, allocations: 19.94 kB / 1.395 GB, free: 9.707 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009421/1.236, allocations: 251.6 kB / 1.395 GB, free: 9.461 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/1.236, allocations: 15.94 kB / 1.395 GB, free: 9.445 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/1.238, allocations: 166.3 kB / 1.395 GB, free: 9.281 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.485e-05/1.238, allocations: 55.98 kB / 1.395 GB, free: 9.227 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001246/1.239, allocations: 0.7602 MB / 1.396 GB, free: 8.461 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008351/1.24, allocations: 0.7388 MB / 1.397 GB, free: 7.566 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001211/1.241, allocations: 0.9445 MB / 1.397 GB, free: 6.504 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.001e-06/1.241, allocations: 4 kB / 1.397 GB, free: 6.5 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002038/1.243, allocations: 1.274 MB / 1.399 GB, free: 5.215 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/1.243, allocations: 8 kB / 1.399 GB, free: 5.207 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/1.243, allocations: 8 kB / 1.399 GB, free: 5.199 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/1.243, allocations: 16 kB / 1.399 GB, free: 5.184 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008452/1.244, allocations: 243.6 kB / 1.399 GB, free: 4.945 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/1.244, allocations: 19.94 kB / 1.399 GB, free: 4.926 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/1.246, allocations: 119.2 kB / 1.399 GB, free: 4.809 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.74e-05/1.246, allocations: 55.98 kB / 1.399 GB, free: 4.754 MB / 1.076 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.0003393/1.246, allocations: 255.8 kB / 1.399 GB, free: 4.496 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003587/1.247, allocations: 241 kB / 1.4 GB, free: 4.258 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/1.248, allocations: 0.8797 MB / 1.4 GB, free: 3.367 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/1.248, allocations: 8 kB / 1.4 GB, free: 3.359 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/1.248, allocations: 3.984 kB / 1.4 GB, free: 3.355 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009332/1.249, allocations: 0.6814 MB / 1.401 GB, free: 2.645 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004192/1.254, allocations: 2.586 MB / 1.404 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.254, allocations: 0 / 1.404 GB, free: 15.98 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/1.254, allocations: 123.8 kB / 1.404 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.219e-05/1.254, allocations: 4 kB / 1.404 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/1.254, allocations: 19.98 kB / 1.404 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.365e-06/1.254, allocations: 4 kB / 1.404 GB, free: 15.83 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.254, allocations: 4.094 kB / 1.404 GB, free: 15.83 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002098/1.256, allocations: 1.309 MB / 1.405 GB, free: 14.49 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009826/1.257, allocations: 425.9 kB / 1.406 GB, free: 14.05 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006012/1.258, allocations: 16 kB / 1.406 GB, free: 14.04 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/1.259, allocations: 47.92 kB / 1.406 GB, free: 13.99 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/1.259, allocations: 44.45 kB / 1.406 GB, free: 13.95 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.959e-05/1.259, allocations: 31.97 kB / 1.406 GB, free: 13.91 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002769/1.262, allocations: 1.569 MB / 1.407 GB, free: 12.34 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.6e-07/1.262, allocations: 4 kB / 1.407 GB, free: 12.34 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003695/1.266, allocations: 1.103 MB / 1.408 GB, free: 11.23 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.004085/1.27, allocations: 2.523 MB / 1.411 GB, free: 8.812 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002611/1.273, allocations: 1.366 MB / 1.412 GB, free: 7.449 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.273, allocations: 0.5625 kB / 1.412 GB, free: 7.449 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0004842/1.273, allocations: 323.1 kB / 1.412 GB, free: 7.133 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005768/1.279, allocations: 1.385 MB / 1.414 GB, free: 5.793 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02417/1.303, allocations: 14.91 MB / 1.428 GB, free: 6.426 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001336/1.305, allocations: 1.59 MB / 1.43 GB, free: 4.805 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.002084/1.307, allocations: 0.4948 MB / 1.43 GB, free: 4.305 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/1.308, allocations: 0.9601 MB / 1.431 GB, free: 3.344 MB / 1.107 GB Notification: Performance of SimCode: time 8.71e-07/1.308, allocations: 0 / 1.431 GB, free: 3.344 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/1.414, allocations: 65.27 MB / 1.495 GB, free: 2.754 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/13.47, allocations: 0 / 1.495 GB, free: 2.754 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches