Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.839/1.839, allocations: 292.6 MB / 307.5 MB, free: 5.176 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.001264/0.001264, allocations: 190.2 kB / 377.1 MB, free: 1.523 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.996/1.996, allocations: 205.4 MB / 0.6366 GB, free: 8.535 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 91.92 kB / 0.7509 GB, free: 63.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003558, allocations: 15.98 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3139, allocations: 116.3 MB / 0.9884 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.671/1.985, allocations: 402.3 MB / 1.381 GB, free: 246 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004532/1.986, allocations: 100.7 kB / 1.381 GB, free: 246 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.481/3.467, allocations: 430.3 MB / 1.802 GB, free: 193.9 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.923e-06/3.467, allocations: 3.062 kB / 1.802 GB, free: 193.9 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.000109/3.467, allocations: 33.17 kB / 1.802 GB, free: 193.9 MB / 0.948 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.003644/3.471, allocations: 1.517 MB / 1.803 GB, free: 193.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/3.471, allocations: 6.281 kB / 1.803 GB, free: 193.2 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/3.471, allocations: 102.6 kB / 1.803 GB, free: 193.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004084/3.471, allocations: 145.9 kB / 1.803 GB, free: 193.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001974/3.473, allocations: 0.8384 MB / 1.804 GB, free: 192.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.689e-05/3.473, allocations: 82.44 kB / 1.804 GB, free: 192.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/3.474, allocations: 122.6 kB / 1.804 GB, free: 192.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/3.475, allocations: 0.6277 MB / 1.805 GB, free: 192.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/3.475, allocations: 0 / 1.805 GB, free: 192.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/3.475, allocations: 25.23 kB / 1.805 GB, free: 192.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/3.475, allocations: 14.59 kB / 1.805 GB, free: 192.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009197/3.476, allocations: 468.6 kB / 1.805 GB, free: 192.7 MB / 0.948 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.00578/3.482, allocations: 3.092 MB / 1.809 GB, free: 191.5 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/3.482, allocations: 320.5 kB / 1.809 GB, free: 191.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003538/3.483, allocations: 350.3 kB / 1.809 GB, free: 191.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/3.483, allocations: 37.44 kB / 1.809 GB, free: 191.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=33): time 4.098e-06/3.483, allocations: 0 / 1.809 GB, free: 191.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=33): time 0.001547/3.484, allocations: 0.5648 MB / 1.81 GB, free: 191 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/3.484, allocations: 58.42 kB / 1.81 GB, free: 190.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/3.485, allocations: 0.7636 MB / 1.811 GB, free: 190.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002009/3.486, allocations: 58.55 kB / 1.811 GB, free: 190.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005393/3.486, allocations: 0.5535 MB / 1.811 GB, free: 190.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 9.214e-05/3.486, allocations: 120.2 kB / 1.811 GB, free: 190.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/3.486, allocations: 15.38 kB / 1.811 GB, free: 190.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.478e-05/3.486, allocations: 326.5 kB / 1.812 GB, free: 190.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/3.487, allocations: 185.2 kB / 1.812 GB, free: 190.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001551/3.488, allocations: 1.428 MB / 1.813 GB, free: 189.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005203/3.489, allocations: 318.5 kB / 1.813 GB, free: 189.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/3.489, allocations: 2.938 kB / 1.813 GB, free: 189.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001416/3.49, allocations: 0.6498 MB / 1.814 GB, free: 189 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001967/3.49, allocations: 0.814 MB / 1.815 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/3.49, allocations: 3.375 kB / 1.815 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/3.491, allocations: 3.844 kB / 1.815 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/3.492, allocations: 199.9 kB / 1.815 GB, free: 188.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/3.493, allocations: 2.963 MB / 1.818 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004212/3.497, allocations: 0.9126 MB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/3.497, allocations: 35.14 kB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/3.497, allocations: 3.062 kB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00105/3.498, allocations: 0.5072 MB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/3.498, allocations: 2.969 kB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-06/3.499, allocations: 3.922 kB / 1.819 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/3.499, allocations: 166.6 kB / 1.82 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/3.499, allocations: 7.578 kB / 1.82 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/3.503, allocations: 0.8997 MB / 1.82 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.062e-05/3.503, allocations: 29.78 kB / 1.82 GB, free: 185.2 MB / 0.948 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.000919/3.504, allocations: 330.1 kB / 1.821 GB, free: 185 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/3.505, allocations: 92.91 kB / 1.821 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/3.506, allocations: 0.5338 MB / 1.821 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/3.506, allocations: 7.375 kB / 1.821 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/3.506, allocations: 0 / 1.821 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/3.506, allocations: 8.562 kB / 1.821 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/3.508, allocations: 1.274 MB / 1.823 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/3.508, allocations: 6.719 kB / 1.823 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005544/3.509, allocations: 119.1 kB / 1.823 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-06/3.509, allocations: 7.656 kB / 1.823 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.177e-05/3.509, allocations: 14.78 kB / 1.823 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008678/3.51, allocations: 2.94 MB / 1.826 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/3.51, allocations: 4.516 kB / 1.826 GB, free: 181.6 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/3.51, allocations: 0.6374 MB / 1.826 GB, free: 181.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003967/3.511, allocations: 222.6 kB / 1.827 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.75e-05/3.511, allocations: 11.47 kB / 1.827 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005833/3.512, allocations: 65.88 kB / 1.827 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/3.512, allocations: 26.25 kB / 1.827 GB, free: 181.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.974e-05/3.512, allocations: 15.3 kB / 1.827 GB, free: 181.1 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0007215/3.512, allocations: 0.5823 MB / 1.827 GB, free: 181 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.31e-07/3.512, allocations: 3.25 kB / 1.827 GB, free: 181 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002286/3.515, allocations: 0.6084 MB / 1.828 GB, free: 181 MB / 0.948 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.002504/3.517, allocations: 1.869 MB / 1.83 GB, free: 179.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003114/3.52, allocations: 0.8153 MB / 1.83 GB, free: 179.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/3.52, allocations: 0 / 1.83 GB, free: 179.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005893/3.521, allocations: 229.7 kB / 1.831 GB, free: 179.8 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003082/3.524, allocations: 488.6 kB / 1.831 GB, free: 179.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006054/3.53, allocations: 3.506 MB / 1.835 GB, free: 177.3 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007502/3.531, allocations: 1.045 MB / 1.836 GB, free: 176.6 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001922/3.533, allocations: 205.9 kB / 1.836 GB, free: 176.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005796/3.533, allocations: 365.2 kB / 1.836 GB, free: 176.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.783e-06/3.534, allocations: 3.969 kB / 1.836 GB, free: 176.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07406/3.608, allocations: 36.51 MB / 1.872 GB, free: 174.8 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/3.608, allocations: 248.6 kB / 1.872 GB, free: 174.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.224/6.832, allocations: 0 / 1.872 GB, free: 174.5 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)