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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008873/0.0008873, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005231/0.005231, allocations: 169 kB / 16.26 MB, free: 6.652 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.478/2.478, allocations: 462.7 MB / 0.7364 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002883/0.0002883, allocations: 12.55 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2304, allocations: 159.6 MB / 1.059 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.09133/0.3218, allocations: 110.1 MB / 1.166 GB, free: 6.402 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.02396/0.3458, allocations: 20.12 MB / 1.186 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002801/0.3486, allocations: 91.38 kB / 1.186 GB, free: 2.145 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.3514, allocations: 1.041 MB / 1.187 GB, free: 1.098 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.007557/0.359, allocations: 3.377 MB / 1.19 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.3648, allocations: 2.866 MB / 1.193 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.008767/0.3736, allocations: 9.526 MB / 1.202 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002745/0.3763, allocations: 2.074 MB / 1.205 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003913/0.3803, allocations: 2.329 MB / 1.207 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002811/0.3831, allocations: 2.03 MB / 1.209 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003737/0.3835, allocations: 88 kB / 1.209 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00285/0.3863, allocations: 1.446 MB / 1.21 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0005771/0.3869, allocations: 0.5209 MB / 1.211 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.3885, allocations: 1.33 MB / 1.212 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.004019/0.3925, allocations: 4.162 MB / 1.216 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.3925, allocations: 0 / 1.216 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3925, allocations: 0 / 1.216 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.459e-05/0.3926, allocations: 0 / 1.216 GB, free: 3.246 MB / 0.9669 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.003912/0.3965, allocations: 2.69 MB / 1.219 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.3966, allocations: 11.97 kB / 1.219 GB, free: 492 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002316/0.3968, allocations: 223.7 kB / 1.219 GB, free: 256 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005426/0.3974, allocations: 324.5 kB / 1.219 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.4002, allocations: 2.155 MB / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.08e-05/0.4002, allocations: 127 kB / 1.222 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.4005, allocations: 172 kB / 1.222 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/0.4028, allocations: 1.616 MB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.258e-05/0.4028, allocations: 3.938 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.4029, allocations: 64 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.634e-05/0.403, allocations: 39.94 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.4048, allocations: 1.167 MB / 1.225 GB, free: 10.45 MB / 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.008174/0.413, allocations: 7.893 MB / 1.232 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006821/0.4137, allocations: 495.5 kB / 1.233 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004666/0.4142, allocations: 327 kB / 1.233 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005102/0.4147, allocations: 0.7485 MB / 1.234 GB, free: 332 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.4147, allocations: 47.12 kB / 1.234 GB, free: 272 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 1.983e-06/0.4147, allocations: 4 kB / 1.234 GB, free: 268 kB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.001579/0.4163, allocations: 1.007 MB / 1.235 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.4164, allocations: 59.97 kB / 1.235 GB, free: 15.18 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/0.4189, allocations: 2.316 MB / 1.237 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.388e-05/0.419, allocations: 45.7 kB / 1.237 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008222/0.4198, allocations: 1.153 MB / 1.238 GB, free: 11.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.42, allocations: 220.9 kB / 1.238 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.4201, allocations: 105.6 kB / 1.239 GB, free: 11.31 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4202, allocations: 349.9 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005908/0.4208, allocations: 354.5 kB / 1.239 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008403/0.4217, allocations: 0.758 MB / 1.24 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.423, allocations: 0.9902 MB / 1.241 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.032e-06/0.423, allocations: 7.938 kB / 1.241 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001878/0.4249, allocations: 1.303 MB / 1.242 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.425, allocations: 342.7 kB / 1.243 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.425, allocations: 8 kB / 1.243 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.4251, allocations: 16 kB / 1.243 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008765/0.426, allocations: 247.6 kB / 1.243 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.426, allocations: 23.92 kB / 1.243 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4274, allocations: 246.2 kB / 1.243 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.513e-05/0.4275, allocations: 51.98 kB / 1.243 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.505e-06/0.4275, allocations: 7.938 kB / 1.243 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001546/0.429, allocations: 1.035 MB / 1.244 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.4291, allocations: 8 kB / 1.244 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.4291, allocations: 12 kB / 1.244 GB, free: 5.176 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008267/0.4299, allocations: 251.6 kB / 1.244 GB, free: 4.93 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.4299, allocations: 15.94 kB / 1.244 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/0.4312, allocations: 223.1 kB / 1.245 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.738e-05/0.4313, allocations: 47.98 kB / 1.245 GB, free: 4.648 MB / 0.9981 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.0006516/0.4319, allocations: 0.5787 MB / 1.245 GB, free: 4.059 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.4322, allocations: 244.9 kB / 1.245 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.4336, allocations: 0.8984 MB / 1.246 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4336, allocations: 8 kB / 1.246 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.4336, allocations: 0 / 1.246 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009151/0.4346, allocations: 0.697 MB / 1.247 GB, free: 2.172 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4121/0.8467, allocations: 2.573 MB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.645e-06/0.8467, allocations: 1.562 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005125/0.8472, allocations: 128.7 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.8473, allocations: 3.812 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.8473, allocations: 18.3 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.8473, allocations: 3.891 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.8473, allocations: 2.219 kB / 1.25 GB, free: 183.1 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001967/0.8493, allocations: 1.339 MB / 1.251 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006693/0.85, allocations: 451.3 kB / 1.251 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/0.8502, allocations: 15.33 kB / 1.251 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.8512, allocations: 121.9 kB / 1.252 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.8513, allocations: 50.8 kB / 1.252 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/0.8514, allocations: 31.23 kB / 1.252 GB, free: 182.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001893/0.8533, allocations: 1.557 MB / 1.253 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8533, allocations: 0 / 1.253 GB, free: 182.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002026/0.8553, allocations: 1.091 MB / 1.254 GB, free: 182.7 MB / 0.9981 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.002729/0.8581, allocations: 2.519 MB / 1.257 GB, free: 181.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001729/0.8598, allocations: 1.38 MB / 1.258 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8598, allocations: 0 / 1.258 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.8602, allocations: 325.8 kB / 1.258 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005681/0.8659, allocations: 1.383 MB / 1.26 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02533/0.8913, allocations: 18.23 MB / 1.277 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.8923, allocations: 1.591 MB / 1.279 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001947/0.8943, allocations: 0.4901 MB / 1.28 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/0.8953, allocations: 0.9641 MB / 1.28 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/0.8954, allocations: 0 / 1.28 GB, free: 172.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.453/2.348, allocations: 63.72 MB / 1.343 GB, free: 122.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/2.348, allocations: 260.6 kB / 1.343 GB, free: 122.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.86/6.209, allocations: 0 / 1.343 GB, free: 122.2 MB / 0.9981 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