Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.379/1.379, allocations: 288.4 MB / 303.6 MB, free: 8.113 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008392/0.0008392, allocations: 182.8 kB / 372.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.172/1.172, allocations: 205.4 MB / 0.631 GB, free: 9.844 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007051/0.0007051, allocations: 98.23 kB / 0.7444 GB, free: 5.762 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003588, allocations: 12.16 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1715, allocations: 115.3 MB / 0.9802 GB, free: 27.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02127/0.1928, allocations: 27.76 MB / 1.007 GB, free: 15.37 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.01631/0.2091, allocations: 10.96 MB / 1.018 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.2105, allocations: 39.62 kB / 1.018 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.2116, allocations: 297.9 kB / 1.018 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.003389/0.2151, allocations: 1.169 MB / 1.019 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.2176, allocations: 0.9715 MB / 1.02 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.004041/0.2217, allocations: 3.528 MB / 1.024 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.2231, allocations: 1.12 MB / 1.025 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.2252, allocations: 1.472 MB / 1.026 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002271/0.2274, allocations: 1.55 MB / 1.028 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of NFPackage.collectConstants: time 0.0003042/0.2278, allocations: 64 kB / 1.028 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.2296, allocations: 0.8929 MB / 1.029 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0004027/0.23, allocations: 334.8 kB / 1.029 GB, free: 8.938 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0008079/0.2308, allocations: 0.6745 MB / 1.03 GB, free: 8.254 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.2323, allocations: 1.539 MB / 1.031 GB, free: 6.711 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2323, allocations: 4 kB / 1.031 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2323, allocations: 0 / 1.031 GB, free: 6.707 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.398e-05/0.2323, allocations: 0 / 1.031 GB, free: 6.707 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002164/0.2345, allocations: 1.325 MB / 1.033 GB, free: 5.328 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.2346, allocations: 8.031 kB / 1.033 GB, free: 5.32 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001136/0.2347, allocations: 102.7 kB / 1.033 GB, free: 5.211 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.235, allocations: 146.9 kB / 1.033 GB, free: 5.066 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/0.2365, allocations: 0.8829 MB / 1.034 GB, free: 4.141 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.55e-05/0.2366, allocations: 77.31 kB / 1.034 GB, free: 4.066 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.2368, allocations: 120 kB / 1.034 GB, free: 3.949 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.2379, allocations: 0.6395 MB / 1.035 GB, free: 3.281 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.2379, allocations: 4 kB / 1.035 GB, free: 3.277 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.293e-05/0.238, allocations: 27.94 kB / 1.035 GB, free: 3.25 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.238, allocations: 15.94 kB / 1.035 GB, free: 3.234 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.2389, allocations: 468.9 kB / 1.035 GB, free: 2.777 MB / 0.6511 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.004269/0.2432, allocations: 2.879 MB / 1.038 GB, free: 15.75 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005811/0.2438, allocations: 306.4 kB / 1.038 GB, free: 15.44 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.2441, allocations: 157.3 kB / 1.038 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002912/0.2444, allocations: 348.6 kB / 1.039 GB, free: 14.87 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.2444, allocations: 38.83 kB / 1.039 GB, free: 14.82 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.2444, allocations: 0 / 1.039 GB, free: 14.82 MB / 0.6667 GB Notification: Performance of matching and sorting (n=33): time 0.001213/0.2456, allocations: 0.5508 MB / 1.039 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.2457, allocations: 55.41 kB / 1.039 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009854/0.2467, allocations: 0.8791 MB / 1.04 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.2468, allocations: 57.7 kB / 1.04 GB, free: 13.24 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004482/0.2473, allocations: 0.5258 MB / 1.041 GB, free: 12.7 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 9.909e-05/0.2474, allocations: 122.3 kB / 1.041 GB, free: 12.58 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.2474, allocations: 8 kB / 1.041 GB, free: 12.57 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.2475, allocations: 333.9 kB / 1.041 GB, free: 12.24 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003797/0.2479, allocations: 177.2 kB / 1.041 GB, free: 12.07 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.2493, allocations: 1.139 MB / 1.042 GB, free: 10.56 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008159/0.2501, allocations: 447.4 kB / 1.043 GB, free: 10.1 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2501, allocations: 0 / 1.043 GB, free: 10.1 MB / 0.6667 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001249/0.2513, allocations: 0.6384 MB / 1.043 GB, free: 9.453 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 9.061e-05/0.2515, allocations: 152.3 kB / 1.044 GB, free: 9.273 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.2515, allocations: 4 kB / 1.044 GB, free: 9.27 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.2515, allocations: 7.938 kB / 1.044 GB, free: 9.262 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.2529, allocations: 243.7 kB / 1.044 GB, free: 9.023 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001605/0.2546, allocations: 2.961 MB / 1.047 GB, free: 5.945 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/0.2579, allocations: 0.7455 MB / 1.047 GB, free: 5.199 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.232e-05/0.258, allocations: 24 kB / 1.047 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.258, allocations: 4 kB / 1.047 GB, free: 5.172 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.2591, allocations: 0.5011 MB / 1.048 GB, free: 4.672 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2591, allocations: 4 kB / 1.048 GB, free: 4.668 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/0.2591, allocations: 7.984 kB / 1.048 GB, free: 4.66 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/0.2598, allocations: 156 kB / 1.048 GB, free: 4.508 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2598, allocations: 12 kB / 1.048 GB, free: 4.496 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/0.2632, allocations: 0.7339 MB / 1.049 GB, free: 3.762 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.2632, allocations: 23.98 kB / 1.049 GB, free: 3.738 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000536/0.2638, allocations: 329.8 kB / 1.049 GB, free: 3.402 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.2639, allocations: 102.7 kB / 1.049 GB, free: 3.301 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.265, allocations: 0.5201 MB / 1.05 GB, free: 2.773 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.2651, allocations: 4 kB / 1.05 GB, free: 2.77 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2651, allocations: 4.188 kB / 1.05 GB, free: 2.766 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.2651, allocations: 3.984 kB / 1.05 GB, free: 2.762 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.267, allocations: 1.275 MB / 1.051 GB, free: 1.418 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.2671, allocations: 0 / 1.051 GB, free: 1.418 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005437/0.2676, allocations: 115.8 kB / 1.051 GB, free: 1.305 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2676, allocations: 0 / 1.051 GB, free: 1.305 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.2677, allocations: 15.98 kB / 1.051 GB, free: 1.289 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/0.269, allocations: 2.946 MB / 1.054 GB, free: 14.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2691, allocations: 7.875 kB / 1.054 GB, free: 14.22 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008497/0.2699, allocations: 0.5699 MB / 1.055 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/0.2703, allocations: 223.6 kB / 1.055 GB, free: 13.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.186e-05/0.2704, allocations: 11.98 kB / 1.055 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/0.2709, allocations: 67.88 kB / 1.055 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.232e-05/0.271, allocations: 23.91 kB / 1.055 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.621e-05/0.271, allocations: 19.98 kB / 1.055 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0007575/0.2718, allocations: 0.5883 MB / 1.056 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2718, allocations: 0 / 1.056 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001475/0.2733, allocations: 0.5384 MB / 1.056 GB, free: 12.12 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001755/0.275, allocations: 1.334 MB / 1.057 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002526/0.2776, allocations: 0.8355 MB / 1.058 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.2776, allocations: 0 / 1.058 GB, free: 9.926 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005904/0.2782, allocations: 243.9 kB / 1.058 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002635/0.2808, allocations: 486.2 kB / 1.059 GB, free: 9.219 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00767/0.2885, allocations: 5.038 MB / 1.064 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005758/0.2891, allocations: 1.025 MB / 1.065 GB, free: 2.891 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001118/0.2903, allocations: 207.1 kB / 1.065 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000451/0.2907, allocations: 367.3 kB / 1.065 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of SimCode: time 4.6e-07/0.2907, allocations: 0 / 1.065 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.079/1.37, allocations: 32.95 MB / 1.098 GB, free: 78.26 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.37, allocations: 268.2 kB / 1.098 GB, free: 77.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/4.427, allocations: 0 / 1.098 GB, free: 77.9 MB / 0.6823 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)