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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.001359/0.00136, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001791/0.001791, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.622/2.622, allocations: 409.4 MB / 0.684 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 11.98 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7723/0.7727, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1001/0.8728, allocations: 104.1 MB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02823/0.901, allocations: 19.09 MB / 1.101 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00449/0.9056, allocations: 91.31 kB / 1.101 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.003686/0.9093, allocations: 0.8928 MB / 1.102 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.9197, allocations: 2.867 MB / 1.105 GB, free: 6.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.008206/0.928, allocations: 2.374 MB / 1.107 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01083/0.9388, allocations: 8.131 MB / 1.115 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003395/0.9422, allocations: 1.812 MB / 1.117 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005554/0.9478, allocations: 2.228 MB / 1.119 GB, free: 8.348 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003912/0.9518, allocations: 1.921 MB / 1.121 GB, free: 6.418 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004228/0.9522, allocations: 95.94 kB / 1.121 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003737/0.9559, allocations: 1.146 MB / 1.122 GB, free: 5.176 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0007753/0.9567, allocations: 0.49 MB / 1.123 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001422/0.9582, allocations: 0.5627 MB / 1.123 GB, free: 4.113 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004415/0.9626, allocations: 3.277 MB / 1.127 GB, free: 0.8281 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.9626, allocations: 0 / 1.127 GB, free: 0.8281 MB / 0.8731 GB Notification: Performance of FrontEnd: time 5.009e-06/0.9626, allocations: 0 / 1.127 GB, free: 0.8281 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001068/0.9628, allocations: 7.938 kB / 1.127 GB, free: 0.8203 MB / 0.8731 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.004293/0.9671, allocations: 2.716 MB / 1.129 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.9671, allocations: 8.031 kB / 1.129 GB, free: 14.03 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002742/0.9674, allocations: 219.5 kB / 1.13 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006261/0.968, allocations: 320.2 kB / 1.13 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003254/0.9713, allocations: 2.075 MB / 1.132 GB, free: 11.34 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.822e-05/0.9714, allocations: 127 kB / 1.132 GB, free: 11.22 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.9716, allocations: 168 kB / 1.132 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.9742, allocations: 1.604 MB / 1.134 GB, free: 9.387 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.327e-05/0.9743, allocations: 0 / 1.134 GB, free: 9.387 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.9744, allocations: 64 kB / 1.134 GB, free: 9.324 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/0.9745, allocations: 43.94 kB / 1.134 GB, free: 9.281 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/0.9765, allocations: 1.143 MB / 1.135 GB, free: 8.133 MB / 0.8887 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.01017/0.9866, allocations: 7.909 MB / 1.143 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007536/0.9874, allocations: 474 kB / 1.143 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.9879, allocations: 326.9 kB / 1.143 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006798/0.9886, allocations: 0.7523 MB / 1.144 GB, free: 14 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.9887, allocations: 55.06 kB / 1.144 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=60): time 2.475e-06/0.9887, allocations: 0 / 1.144 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60): time 0.002093/0.9908, allocations: 0.9959 MB / 1.145 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.9909, allocations: 55.97 kB / 1.145 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002991/0.9939, allocations: 2.3 MB / 1.148 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.00012/0.994, allocations: 49.7 kB / 1.148 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008964/0.9949, allocations: 1.149 MB / 1.149 GB, free: 9.344 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/0.9951, allocations: 212.9 kB / 1.149 GB, free: 9.133 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.568e-05/0.9952, allocations: 24 kB / 1.149 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.9953, allocations: 345.9 kB / 1.149 GB, free: 8.766 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005954/0.9959, allocations: 346.4 kB / 1.15 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009147/0.9969, allocations: 0.7346 MB / 1.15 GB, free: 7.535 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007485/0.9976, allocations: 458.8 kB / 1.151 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.9976, allocations: 4 kB / 1.151 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002049/0.9997, allocations: 1.279 MB / 1.152 GB, free: 5.793 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002334/0.9999, allocations: 347.4 kB / 1.152 GB, free: 5.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/1, allocations: 12 kB / 1.152 GB, free: 5.328 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.21e-05/1, allocations: 19.94 kB / 1.152 GB, free: 5.309 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009451/1.001, allocations: 255.6 kB / 1.153 GB, free: 5.059 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.591e-05/1.001, allocations: 15.94 kB / 1.153 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/1.003, allocations: 254.2 kB / 1.153 GB, free: 4.793 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.293e-05/1.003, allocations: 51.98 kB / 1.153 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.303e-06/1.003, allocations: 4 kB / 1.153 GB, free: 4.738 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001665/1.004, allocations: 1.019 MB / 1.154 GB, free: 3.719 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/1.004, allocations: 8 kB / 1.154 GB, free: 3.711 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/1.004, allocations: 12 kB / 1.154 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008527/1.005, allocations: 263.5 kB / 1.154 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.954e-05/1.005, allocations: 15.98 kB / 1.154 GB, free: 3.426 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/1.007, allocations: 219 kB / 1.154 GB, free: 3.211 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.626e-05/1.007, allocations: 55.98 kB / 1.154 GB, free: 3.156 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00104/1.008, allocations: 0.5748 MB / 1.155 GB, free: 2.57 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/1.008, allocations: 233 kB / 1.155 GB, free: 2.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/1.01, allocations: 0.9013 MB / 1.156 GB, free: 1.434 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/1.01, allocations: 15.89 kB / 1.156 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/1.01, allocations: 0 / 1.156 GB, free: 1.418 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001021/1.011, allocations: 0.697 MB / 1.157 GB, free: 0.6875 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/1.015, allocations: 2.566 MB / 1.159 GB, free: 14.05 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/1.015, allocations: 0 / 1.159 GB, free: 14.05 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/1.016, allocations: 131.8 kB / 1.159 GB, free: 13.92 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-05/1.016, allocations: 4 kB / 1.159 GB, free: 13.91 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/1.016, allocations: 15.98 kB / 1.159 GB, free: 13.9 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/1.016, allocations: 4 kB / 1.159 GB, free: 13.89 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.016, allocations: 4 kB / 1.159 GB, free: 13.89 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/1.018, allocations: 1.329 MB / 1.161 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008392/1.019, allocations: 453.8 kB / 1.161 GB, free: 12.06 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/1.019, allocations: 19.95 kB / 1.161 GB, free: 12.04 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/1.02, allocations: 119.5 kB / 1.161 GB, free: 11.93 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/1.021, allocations: 40.5 kB / 1.161 GB, free: 11.89 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.596e-05/1.021, allocations: 35.98 kB / 1.161 GB, free: 11.86 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002347/1.023, allocations: 1.53 MB / 1.163 GB, free: 10.32 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.71e-07/1.023, allocations: 0 / 1.163 GB, free: 10.32 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.003681/1.027, allocations: 1.095 MB / 1.164 GB, free: 9.223 MB / 0.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004084/1.031, allocations: 2.49 MB / 1.166 GB, free: 6.84 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002423/1.033, allocations: 1.346 MB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/1.033, allocations: 8.188 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005033/1.034, allocations: 331 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005995/1.04, allocations: 1.384 MB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02826/1.068, allocations: 13.74 MB / 1.183 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/1.07, allocations: 1.594 MB / 1.184 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.003014/1.073, allocations: 0.491 MB / 1.185 GB, free: 2.723 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/1.075, allocations: 0.964 MB / 1.186 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of SimCode: time 1.192e-06/1.075, allocations: 0 / 1.186 GB, free: 1.758 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.179, allocations: 65.03 MB / 1.249 GB, free: 1.469 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/1.179, allocations: 240.8 kB / 1.249 GB, free: 1.23 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.017/5.197, allocations: 0 / 1.249 GB, free: 1.23 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat