Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_8_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.0008134/0.0008135, allocations: 97.72 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.004819/0.004819, allocations: 170.5 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.283/1.283, allocations: 205.4 MB / 222.4 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.522/1.522, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004788/0.0004789, allocations: 16.95 kB / 0.6744 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1673, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.091/0.2583, allocations: 110.7 MB / 0.8961 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.3358/0.5941, allocations: 24.23 MB / 0.9198 GB, free: 34.11 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003093/0.5973, allocations: 108.8 kB / 0.9199 GB, free: 34.11 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.002637/0.5999, allocations: 1.032 MB / 0.9209 GB, free: 34.11 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.007128/0.6071, allocations: 3.355 MB / 0.9242 GB, free: 33.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.005157/0.6122, allocations: 2.818 MB / 0.9269 GB, free: 33.9 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.008326/0.6206, allocations: 9.433 MB / 0.9361 GB, free: 33.88 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003052/0.6236, allocations: 2.054 MB / 0.9381 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.6274, allocations: 2.291 MB / 0.9404 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.6297, allocations: 2.028 MB / 0.9423 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001976/0.6299, allocations: 88.97 kB / 0.9424 GB, free: 33.06 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002445/0.6323, allocations: 1.431 MB / 0.9438 GB, free: 32.95 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003797/0.6327, allocations: 0.5071 MB / 0.9443 GB, free: 32.82 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.6338, allocations: 1.316 MB / 0.9456 GB, free: 32.35 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002943/0.6367, allocations: 4.109 MB / 0.9496 GB, free: 31.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.6367, allocations: 1 kB / 0.9496 GB, free: 31.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6367, allocations: 0 / 0.9496 GB, free: 31.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.393e-05/0.6368, allocations: 0 / 0.9496 GB, free: 31.75 MB / 0.7169 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.003047/0.6398, allocations: 2.654 MB / 0.9522 GB, free: 30.3 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.6399, allocations: 9.625 kB / 0.9522 GB, free: 30.3 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/0.6401, allocations: 219.5 kB / 0.9524 GB, free: 30.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/0.6405, allocations: 318.2 kB / 0.9527 GB, free: 30.1 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.6429, allocations: 2.122 MB / 0.9548 GB, free: 29.35 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.643, allocations: 126.2 kB / 0.9549 GB, free: 29.35 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.6432, allocations: 174.2 kB / 0.9551 GB, free: 29.34 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.6451, allocations: 1.611 MB / 0.9567 GB, free: 28.87 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.936e-05/0.6452, allocations: 4 kB / 0.9567 GB, free: 28.86 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.6453, allocations: 65.31 kB / 0.9567 GB, free: 28.86 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/0.6453, allocations: 38.53 kB / 0.9568 GB, free: 28.86 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.6468, allocations: 1.164 MB / 0.9579 GB, free: 28.68 MB / 0.7169 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.006329/0.6532, allocations: 7.881 MB / 0.9656 GB, free: 22.91 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.6537, allocations: 473.4 kB / 0.9661 GB, free: 22.69 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/0.6541, allocations: 333.2 kB / 0.9664 GB, free: 22.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000326/0.6544, allocations: 0.7538 MB / 0.9671 GB, free: 21.65 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.6544, allocations: 45.02 kB / 0.9671 GB, free: 21.6 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 1.492e-06/0.6545, allocations: 0 / 0.9671 GB, free: 21.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.001269/0.6557, allocations: 0.9987 MB / 0.9681 GB, free: 21.1 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.077e-05/0.6558, allocations: 62.56 kB / 0.9682 GB, free: 21.04 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.6577, allocations: 2.262 MB / 0.9704 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.086e-05/0.6578, allocations: 48.55 kB / 0.9704 GB, free: 19.79 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005315/0.6583, allocations: 1.147 MB / 0.9716 GB, free: 18.78 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.6584, allocations: 214.8 kB / 0.9718 GB, free: 18.6 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.392e-05/0.6585, allocations: 107 kB / 0.9719 GB, free: 18.53 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.6586, allocations: 347.5 kB / 0.9722 GB, free: 18.19 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004774/0.659, allocations: 353.8 kB / 0.9725 GB, free: 18.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.6597, allocations: 0.7593 MB / 0.9733 GB, free: 17.35 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009809/0.6607, allocations: 0.9923 MB / 0.9742 GB, free: 16.63 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.6607, allocations: 1.906 kB / 0.9742 GB, free: 16.63 MB / 0.7169 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001505/0.6622, allocations: 1.3 MB / 0.9755 GB, free: 16 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.992e-05/0.6623, allocations: 344.9 kB / 0.9758 GB, free: 15.56 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.6623, allocations: 12.69 kB / 0.9759 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.6623, allocations: 13.38 kB / 0.9759 GB, free: 15.55 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007662/0.6631, allocations: 260.2 kB / 0.9761 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.6631, allocations: 18.06 kB / 0.9761 GB, free: 15.49 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.6644, allocations: 259.6 kB / 0.9764 GB, free: 15.33 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.705e-05/0.6644, allocations: 53.3 kB / 0.9764 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.388e-06/0.6644, allocations: 3.5 kB / 0.9764 GB, free: 15.32 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00124/0.6657, allocations: 1.03 MB / 0.9774 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.6657, allocations: 6.594 kB / 0.9774 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.6657, allocations: 20.94 kB / 0.9775 GB, free: 14.83 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000711/0.6664, allocations: 255.4 kB / 0.9777 GB, free: 14.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.6665, allocations: 22.27 kB / 0.9777 GB, free: 14.76 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.6676, allocations: 218.3 kB / 0.9779 GB, free: 14.64 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.904e-05/0.6676, allocations: 53.11 kB / 0.978 GB, free: 14.62 MB / 0.7169 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.0005035/0.6682, allocations: 0.575 MB / 0.9786 GB, free: 14.2 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.6684, allocations: 232.1 kB / 0.9788 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.6695, allocations: 0.8832 MB / 0.9796 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.6696, allocations: 6.656 kB / 0.9796 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.6696, allocations: 2.938 kB / 0.9796 GB, free: 13.58 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007339/0.6703, allocations: 0.6987 MB / 0.9803 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.6727, allocations: 2.559 MB / 0.9828 GB, free: 11.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-06/0.6728, allocations: 8.078 kB / 0.9828 GB, free: 11.39 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.6732, allocations: 124.3 kB / 0.983 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.6732, allocations: 2.844 kB / 0.983 GB, free: 11.37 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.6732, allocations: 18.3 kB / 0.983 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.6732, allocations: 7.344 kB / 0.983 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6732, allocations: 2.906 kB / 0.983 GB, free: 11.36 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.6746, allocations: 1.334 MB / 0.9843 GB, free: 10.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.675, allocations: 443.6 kB / 0.9847 GB, free: 10.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/0.6752, allocations: 19.38 kB / 0.9847 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/0.6761, allocations: 119.4 kB / 0.9848 GB, free: 10.13 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.631e-05/0.6762, allocations: 43.75 kB / 0.9849 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.6762, allocations: 30.78 kB / 0.9849 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00135/0.6776, allocations: 1.514 MB / 0.9864 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6776, allocations: 0 / 0.9864 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001787/0.6794, allocations: 1.101 MB / 0.9875 GB, free: 9.055 MB / 0.7169 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.002591/0.682, allocations: 2.499 MB / 0.9899 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001563/0.6836, allocations: 1.374 MB / 0.9912 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.6836, allocations: 4 kB / 0.9913 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.6839, allocations: 323 kB / 0.9916 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005195/0.6891, allocations: 1.408 MB / 0.9929 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02228/0.7114, allocations: 17.97 MB / 1.01 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009144/0.7123, allocations: 1.582 MB / 1.012 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001511/0.7139, allocations: 498.7 kB / 1.013 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009608/0.7148, allocations: 0.9444 MB / 1.013 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of SimCode: time 4.41e-07/0.7148, allocations: 0 / 1.013 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.07/2.785, allocations: 63.74 MB / 1.076 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005358/2.785, allocations: 241.3 kB / 1.076 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.877/7.662, allocations: 0 / 1.076 GB, free: 15.41 MB / 0.8106 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)