Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_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.001164/0.001164, allocations: 91.61 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.001607/0.001607, 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.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.543/2.543, allocations: 390.4 MB / 0.6655 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004074/0.0004075, allocations: 19.98 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7108/0.7112, allocations: 142.3 MB / 0.9538 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1041/0.8154, allocations: 104.1 MB / 1.055 GB, free: 7.824 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03025/0.8457, allocations: 19.07 MB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004071/0.8498, allocations: 95.31 kB / 1.074 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003567/0.8534, allocations: 0.8967 MB / 1.075 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.009094/0.8625, allocations: 2.872 MB / 1.078 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.008098/0.8706, allocations: 2.38 MB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01459/0.8852, allocations: 8.122 MB / 1.088 GB, free: 6.363 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004847/0.8901, allocations: 1.824 MB / 1.09 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006349/0.8965, allocations: 2.236 MB / 1.092 GB, free: 2.258 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004451/0.901, allocations: 1.917 MB / 1.094 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0008144/0.9018, allocations: 88 kB / 1.094 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004171/0.906, allocations: 1.154 MB / 1.095 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.9072, allocations: 0.49 MB / 1.096 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.9088, allocations: 0.5627 MB / 1.096 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005472/0.9143, allocations: 3.277 MB / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.9143, allocations: 0 / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.903e-06/0.9144, allocations: 0 / 1.099 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001745/0.9145, allocations: 0 / 1.099 GB, free: 10.74 MB / 0.8575 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.005891/0.9204, allocations: 2.716 MB / 1.102 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.9205, allocations: 15.97 kB / 1.102 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005209/0.921, allocations: 219.5 kB / 1.102 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.9221, allocations: 324.2 kB / 1.103 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004319/0.9264, allocations: 2.059 MB / 1.105 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.9266, allocations: 131 kB / 1.105 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002334/0.9268, allocations: 167.9 kB / 1.105 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/0.9297, allocations: 1.612 MB / 1.106 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.9298, allocations: 0 / 1.106 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.9299, allocations: 67.95 kB / 1.107 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.927e-05/0.93, allocations: 40 kB / 1.107 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.9322, allocations: 1.147 MB / 1.108 GB, free: 2.043 MB / 0.8575 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.01236/0.9446, allocations: 7.901 MB / 1.115 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008361/0.9455, allocations: 481.5 kB / 1.116 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005285/0.946, allocations: 331 kB / 1.116 GB, free: 8.828 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006545/0.9467, allocations: 0.7563 MB / 1.117 GB, free: 7.906 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.9467, allocations: 43.12 kB / 1.117 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=60): time 2.615e-06/0.9468, allocations: 0 / 1.117 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60): time 0.002293/0.9491, allocations: 1.008 MB / 1.118 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.9491, allocations: 55.97 kB / 1.118 GB, free: 6.773 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003318/0.9524, allocations: 2.292 MB / 1.12 GB, free: 4.469 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001802/0.9526, allocations: 49.7 kB / 1.12 GB, free: 4.414 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.9537, allocations: 1.153 MB / 1.121 GB, free: 3.25 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.9539, allocations: 216.9 kB / 1.122 GB, free: 3.035 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.954, allocations: 28 kB / 1.122 GB, free: 3.008 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.9541, allocations: 341.9 kB / 1.122 GB, free: 2.668 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006513/0.9548, allocations: 342.5 kB / 1.122 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009575/0.9558, allocations: 0.7346 MB / 1.123 GB, free: 1.434 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.9565, allocations: 466.7 kB / 1.123 GB, free: 0.9766 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.9566, allocations: 4 kB / 1.123 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00222/0.9588, allocations: 1.268 MB / 1.125 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.959, allocations: 347 kB / 1.125 GB, free: 15.24 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.9591, allocations: 8 kB / 1.125 GB, free: 15.23 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.194e-05/0.9591, allocations: 16 kB / 1.125 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/0.9601, allocations: 255.6 kB / 1.125 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.091e-05/0.9601, allocations: 19.98 kB / 1.125 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.9619, allocations: 254.1 kB / 1.126 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.253e-05/0.962, allocations: 55.98 kB / 1.126 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.426e-06/0.962, allocations: 4 kB / 1.126 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001682/0.9637, allocations: 1.023 MB / 1.127 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.9638, allocations: 12.06 kB / 1.127 GB, free: 13.61 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.9638, allocations: 16 kB / 1.127 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008507/0.9646, allocations: 255.6 kB / 1.127 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.116e-05/0.9647, allocations: 19.94 kB / 1.127 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.9662, allocations: 226.6 kB / 1.127 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.797e-05/0.9663, allocations: 47.98 kB / 1.127 GB, free: 13.05 MB / 0.8887 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.001036/0.9673, allocations: 0.5826 MB / 1.128 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003453/0.9677, allocations: 233.1 kB / 1.128 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.9693, allocations: 0.9084 MB / 1.129 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.9694, allocations: 8 kB / 1.129 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.9694, allocations: 0 / 1.129 GB, free: 11.3 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001002/0.9704, allocations: 0.6817 MB / 1.13 GB, free: 10.59 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003995/0.9744, allocations: 2.586 MB / 1.132 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.9744, allocations: 0 / 1.132 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005532/0.975, allocations: 139.9 kB / 1.132 GB, free: 7.789 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.035e-05/0.975, allocations: 4 kB / 1.132 GB, free: 7.785 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.322e-05/0.9751, allocations: 15.98 kB / 1.132 GB, free: 7.77 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.9751, allocations: 11.89 kB / 1.132 GB, free: 7.758 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.9751, allocations: 3.984 kB / 1.132 GB, free: 7.754 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.977, allocations: 1.317 MB / 1.134 GB, free: 6.406 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008047/0.9778, allocations: 461.8 kB / 1.134 GB, free: 5.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.9781, allocations: 15.94 kB / 1.134 GB, free: 5.918 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.9791, allocations: 107.7 kB / 1.134 GB, free: 5.812 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.9792, allocations: 52.45 kB / 1.134 GB, free: 5.762 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-05/0.9793, allocations: 31.97 kB / 1.134 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002364/0.9817, allocations: 1.527 MB / 1.136 GB, free: 4.199 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9817, allocations: 0 / 1.136 GB, free: 4.199 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002884/0.9846, allocations: 1.099 MB / 1.137 GB, free: 3.098 MB / 0.8887 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.004051/0.9887, allocations: 2.485 MB / 1.139 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002718/0.9914, allocations: 1.355 MB / 1.14 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.9914, allocations: 0 / 1.14 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.992, allocations: 335.3 kB / 1.141 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006509/0.9985, allocations: 1.372 MB / 1.142 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0298/1.028, allocations: 13.75 MB / 1.156 GB, free: 14.72 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/1.03, allocations: 1.59 MB / 1.157 GB, free: 13.1 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002436/1.032, allocations: 0.4895 MB / 1.158 GB, free: 12.61 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/1.033, allocations: 0.9601 MB / 1.159 GB, free: 11.65 MB / 0.92 GB Notification: Performance of SimCode: time 2.665e-06/1.033, allocations: 0 / 1.159 GB, free: 11.65 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1101/1.144, allocations: 65.04 MB / 1.222 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002002/1.144, allocations: 231.1 kB / 1.222 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.819/4.963, allocations: 0 / 1.222 GB, free: 11.06 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat does not exist to compare? outputFormat=mat