Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.776/0.776, allocations: 143.3 MB / 158.3 MB, free: 5.773 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001152, allocations: 177 kB / 191.5 MB, free: 5.766 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 447.7 MB, free: 6.551 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 96.25 kB / 0.5187 GB, free: 2.906 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001789/0.001789, allocations: 269.5 kB / 0.6005 GB, free: 48.99 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004092/0.0004093, allocations: 15.98 kB / 0.6929 GB, free: 2.227 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3461, allocations: 82.78 MB / 0.7738 GB, free: 26.21 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6944/1.041, allocations: 358.9 MB / 1.124 GB, free: 12.59 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/1.041, allocations: 108.9 kB / 1.124 GB, free: 12.53 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.544/2.585, allocations: 439 MB / 1.553 GB, free: 158.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.184e-06/2.585, allocations: 0 / 1.553 GB, free: 158.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.096e-05/2.585, allocations: 35.33 kB / 1.553 GB, free: 158.9 MB / 0.698 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.002866/2.588, allocations: 1.527 MB / 1.555 GB, free: 158 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/2.588, allocations: 10.22 kB / 1.555 GB, free: 158 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001205/2.588, allocations: 106.2 kB / 1.555 GB, free: 157.9 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002773/2.588, allocations: 149.9 kB / 1.555 GB, free: 157.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/2.59, allocations: 0.8343 MB / 1.556 GB, free: 157.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/2.59, allocations: 85.09 kB / 1.556 GB, free: 157.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/2.59, allocations: 123.4 kB / 1.556 GB, free: 157.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009056/2.591, allocations: 0.6298 MB / 1.556 GB, free: 157.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/2.591, allocations: 2.062 kB / 1.556 GB, free: 157.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/2.591, allocations: 26.88 kB / 1.556 GB, free: 157.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/2.591, allocations: 14.81 kB / 1.556 GB, free: 157.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/2.592, allocations: 475.4 kB / 1.557 GB, free: 157.1 MB / 0.698 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.004316/2.596, allocations: 3.077 MB / 1.56 GB, free: 154.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/2.597, allocations: 331.6 kB / 1.56 GB, free: 154.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002497/2.597, allocations: 344.7 kB / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/2.597, allocations: 33.97 kB / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.634e-06/2.597, allocations: 0 / 1.561 GB, free: 154.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.00115/2.598, allocations: 0.5636 MB / 1.561 GB, free: 154 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/2.598, allocations: 57.62 kB / 1.561 GB, free: 154 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008039/2.599, allocations: 0.7805 MB / 1.562 GB, free: 153.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001362/2.599, allocations: 59.39 kB / 1.562 GB, free: 153.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/2.6, allocations: 0.5578 MB / 1.563 GB, free: 153 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/2.6, allocations: 116.7 kB / 1.563 GB, free: 152.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/2.6, allocations: 8 kB / 1.563 GB, free: 152.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.209e-05/2.6, allocations: 329.6 kB / 1.563 GB, free: 152.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/2.6, allocations: 182.6 kB / 1.563 GB, free: 152.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/2.602, allocations: 1.431 MB / 1.565 GB, free: 151.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004732/2.602, allocations: 316.9 kB / 1.565 GB, free: 151 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/2.602, allocations: 0 / 1.565 GB, free: 151 MB / 0.698 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001078/2.603, allocations: 0.6581 MB / 1.566 GB, free: 150.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000206/2.603, allocations: 0.8095 MB / 1.566 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/2.603, allocations: 0 / 1.566 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/2.603, allocations: 5.781 kB / 1.566 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/2.605, allocations: 211.3 kB / 1.566 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/2.606, allocations: 2.959 MB / 1.569 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/2.609, allocations: 0.9097 MB / 1.57 GB, free: 146.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-05/2.609, allocations: 31.64 kB / 1.57 GB, free: 146.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/2.609, allocations: 6.594 kB / 1.57 GB, free: 146.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008698/2.61, allocations: 0.5014 MB / 1.571 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/2.61, allocations: 3.625 kB / 1.571 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.923e-06/2.61, allocations: 3.781 kB / 1.571 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006403/2.61, allocations: 163.2 kB / 1.571 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/2.611, allocations: 6.812 kB / 1.571 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003117/2.614, allocations: 0.9023 MB / 1.572 GB, free: 145.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-05/2.614, allocations: 32.7 kB / 1.572 GB, free: 145.8 MB / 0.698 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.0006/2.614, allocations: 329.1 kB / 1.572 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/2.614, allocations: 95.41 kB / 1.572 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/2.616, allocations: 0.5448 MB / 1.573 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/2.616, allocations: 7.031 kB / 1.573 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/2.616, allocations: 3.375 kB / 1.573 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/2.616, allocations: 6.609 kB / 1.573 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/2.617, allocations: 1.282 MB / 1.574 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/2.617, allocations: 2.844 kB / 1.574 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005118/2.618, allocations: 120.5 kB / 1.574 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/2.618, allocations: 2.969 kB / 1.574 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/2.618, allocations: 14.42 kB / 1.574 GB, free: 144.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007897/2.619, allocations: 2.945 MB / 1.577 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/2.619, allocations: 3.938 kB / 1.577 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007223/2.619, allocations: 0.6416 MB / 1.578 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/2.62, allocations: 225.7 kB / 1.578 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/2.62, allocations: 11.92 kB / 1.578 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005558/2.621, allocations: 64.48 kB / 1.578 GB, free: 140.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/2.621, allocations: 27.94 kB / 1.578 GB, free: 140.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/2.621, allocations: 12 kB / 1.578 GB, free: 140.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0005924/2.621, allocations: 0.5967 MB / 1.579 GB, free: 140 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.41e-07/2.621, allocations: 0 / 1.579 GB, free: 140 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001854/2.623, allocations: 0.619 MB / 1.579 GB, free: 139.4 MB / 0.698 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.00187/2.625, allocations: 1.869 MB / 1.581 GB, free: 137.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002284/2.627, allocations: 0.8261 MB / 1.582 GB, free: 136.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/2.627, allocations: 1.969 kB / 1.582 GB, free: 136.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005043/2.628, allocations: 236.8 kB / 1.582 GB, free: 136.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/2.63, allocations: 468.8 kB / 1.583 GB, free: 136.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/2.634, allocations: 3.528 MB / 1.586 GB, free: 132.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/2.634, allocations: 1.046 MB / 1.587 GB, free: 131.5 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001134/2.635, allocations: 209.2 kB / 1.587 GB, free: 131.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/2.636, allocations: 371.3 kB / 1.588 GB, free: 130.9 MB / 0.698 GB Notification: Performance of SimCode: time 8.92e-07/2.636, allocations: 4 kB / 1.588 GB, free: 130.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05951/2.695, allocations: 36.41 MB / 1.623 GB, free: 95.73 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/2.695, allocations: 261.1 kB / 1.623 GB, free: 95.38 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.207/5.902, allocations: 0 / 1.623 GB, free: 95.38 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)