Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.587/1.587, allocations: 251.9 MB / 266.8 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002284/0.002284, allocations: 177.5 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.243/2.243, allocations: 205.4 MB / 0.5775 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001056, allocations: 99.66 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003853, allocations: 9.688 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2688, allocations: 106.3 MB / 0.9002 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.279, allocations: 393.3 MB / 1.284 GB, free: 5.93 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003952/1.28, allocations: 94.7 kB / 1.284 GB, free: 5.879 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.332/2.612, allocations: 353 MB / 1.629 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.134e-06/2.612, allocations: 0 / 1.629 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.00013/2.612, allocations: 35.92 kB / 1.629 GB, free: 122.8 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.003246/2.615, allocations: 1.32 MB / 1.63 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/2.615, allocations: 8.031 kB / 1.63 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/2.615, allocations: 90.52 kB / 1.631 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004273/2.616, allocations: 122.6 kB / 1.631 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/2.618, allocations: 0.6726 MB / 1.631 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.873e-05/2.618, allocations: 68.94 kB / 1.631 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/2.618, allocations: 84 kB / 1.631 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008881/2.619, allocations: 0.5374 MB / 1.632 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/2.619, allocations: 3.938 kB / 1.632 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/2.619, allocations: 20 kB / 1.632 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/2.619, allocations: 15.95 kB / 1.632 GB, free: 119.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006512/2.619, allocations: 399.7 kB / 1.632 GB, free: 119.3 MB / 0.8855 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.003459/2.623, allocations: 2.509 MB / 1.635 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/2.623, allocations: 278.5 kB / 1.635 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002673/2.624, allocations: 348.4 kB / 1.635 GB, free: 116 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/2.624, allocations: 30.56 kB / 1.635 GB, free: 116 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=29): time 2.475e-06/2.624, allocations: 0 / 1.635 GB, free: 116 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29): time 0.001025/2.625, allocations: 490.5 kB / 1.636 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/2.625, allocations: 55.41 kB / 1.636 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006484/2.625, allocations: 0.6606 MB / 1.637 GB, free: 114.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.161e-05/2.626, allocations: 45.7 kB / 1.637 GB, free: 114.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003314/2.626, allocations: 447.5 kB / 1.637 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 6.16e-05/2.626, allocations: 102.6 kB / 1.637 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/2.626, allocations: 8 kB / 1.637 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.365e-05/2.626, allocations: 326 kB / 1.637 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/2.626, allocations: 153 kB / 1.638 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007206/2.627, allocations: 0.797 MB / 1.638 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/2.627, allocations: 231.2 kB / 1.639 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/2.627, allocations: 4 kB / 1.639 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009063/2.628, allocations: 0.5612 MB / 1.639 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/2.629, allocations: 0.7993 MB / 1.64 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.629, allocations: 4 kB / 1.64 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/2.629, allocations: 4 kB / 1.64 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/2.63, allocations: 171.7 kB / 1.64 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009292/2.631, allocations: 2.368 MB / 1.642 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/2.632, allocations: 403.5 kB / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.928e-05/2.632, allocations: 27.98 kB / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/2.632, allocations: 4 kB / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007937/2.633, allocations: 446.1 kB / 1.643 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/2.633, allocations: 0 / 1.643 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/2.633, allocations: 4 kB / 1.643 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/2.634, allocations: 131.9 kB / 1.643 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/2.634, allocations: 15.92 kB / 1.643 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001755/2.636, allocations: 387.8 kB / 1.644 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.327e-05/2.636, allocations: 20 kB / 1.644 GB, free: 106.9 MB / 0.8855 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006298/2.636, allocations: 299.1 kB / 1.644 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001748/2.636, allocations: 78.97 kB / 1.644 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/2.638, allocations: 477.7 kB / 1.645 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/2.638, allocations: 7.984 kB / 1.645 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-06/2.638, allocations: 0 / 1.645 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/2.638, allocations: 3.953 kB / 1.645 GB, free: 106.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/2.64, allocations: 1.137 MB / 1.646 GB, free: 104.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/2.64, allocations: 4.125 kB / 1.646 GB, free: 104.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/2.64, allocations: 111.8 kB / 1.646 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/2.64, allocations: 4 kB / 1.646 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/2.64, allocations: 12.17 kB / 1.646 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006873/2.641, allocations: 2.348 MB / 1.648 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/2.641, allocations: 4.031 kB / 1.648 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000767/2.642, allocations: 0.5902 MB / 1.649 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003707/2.642, allocations: 199.8 kB / 1.649 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/2.642, allocations: 11.98 kB / 1.649 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000547/2.643, allocations: 59.84 kB / 1.649 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/2.643, allocations: 27.97 kB / 1.649 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/2.643, allocations: 12 kB / 1.649 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0006276/2.644, allocations: 0.5068 MB / 1.65 GB, free: 100.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/2.644, allocations: 0 / 1.65 GB, free: 100.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002288/2.646, allocations: 0.4993 MB / 1.65 GB, free: 100.3 MB / 0.8855 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002302/2.648, allocations: 1.754 MB / 1.652 GB, free: 98.52 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00229/2.651, allocations: 0.6885 MB / 1.652 GB, free: 97.83 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/2.651, allocations: 0.5 kB / 1.652 GB, free: 97.83 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004571/2.651, allocations: 203.8 kB / 1.653 GB, free: 97.63 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002153/2.653, allocations: 426.5 kB / 1.653 GB, free: 97.22 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/2.657, allocations: 3.198 MB / 1.656 GB, free: 93.92 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/2.657, allocations: 0.9939 MB / 1.657 GB, free: 92.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001016/2.658, allocations: 169.9 kB / 1.657 GB, free: 92.73 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/2.659, allocations: 303.3 kB / 1.658 GB, free: 92.44 MB / 0.8855 GB Notification: Performance of SimCode: time 1.052e-06/2.659, allocations: 0 / 1.658 GB, free: 92.44 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04666/2.705, allocations: 27.87 MB / 1.685 GB, free: 64.98 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/2.706, allocations: 264.1 kB / 1.685 GB, free: 64.62 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/5.53, allocations: 0 / 1.685 GB, free: 64.62 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)