Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.0009699/0.0009699, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005502/0.005502, allocations: 173.3 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 223.2 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001625/0.001625, allocations: 255.1 kB / 291.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8941/0.8941, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003974, allocations: 19.52 kB / 0.5988 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1381, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01291/0.1511, allocations: 14.95 MB / 0.6998 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005243/0.1563, allocations: 4.298 MB / 0.704 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003432/0.1567, allocations: 11.88 kB / 0.704 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000668/0.1574, allocations: 222.8 kB / 0.7043 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.1585, allocations: 0.5553 MB / 0.7048 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.16, allocations: 0.6318 MB / 0.7054 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001167/0.1611, allocations: 1.31 MB / 0.7067 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000351/0.1615, allocations: 279.9 kB / 0.707 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005227/0.162, allocations: 374.3 kB / 0.7073 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.1624, allocations: 326.5 kB / 0.7076 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.1624, allocations: 20 kB / 0.7077 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008629/0.1633, allocations: 0.5926 MB / 0.7082 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.817e-05/0.1634, allocations: 91.53 kB / 0.7083 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.1636, allocations: 232.5 kB / 0.7085 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007353/0.1643, allocations: 0.7321 MB / 0.7093 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1643, allocations: 3.984 kB / 0.7093 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1643, allocations: 0 / 0.7093 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.1644, allocations: 0 / 0.7093 GB, free: 6.285 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009303/0.1653, allocations: 0.7475 MB / 0.71 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1653, allocations: 16.02 kB / 0.71 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.96e-05/0.1654, allocations: 54.73 kB / 0.7101 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.1655, allocations: 52.28 kB / 0.7101 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/0.1659, allocations: 421 kB / 0.7105 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.166, allocations: 20.44 kB / 0.7105 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.166, allocations: 28 kB / 0.7106 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.1664, allocations: 219.2 kB / 0.7108 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1664, allocations: 0 / 0.7108 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1664, allocations: 11.94 kB / 0.7108 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1664, allocations: 4 kB / 0.7108 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/0.1668, allocations: 185.6 kB / 0.711 GB, free: 4.445 MB / 0.4981 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.00134/0.1682, allocations: 0.9418 MB / 0.7119 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.1684, allocations: 138.5 kB / 0.712 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.1686, allocations: 84.81 kB / 0.7121 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002247/0.1688, allocations: 336.4 kB / 0.7124 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.1689, allocations: 34.56 kB / 0.7124 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1689, allocations: 0 / 0.7124 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005487/0.1694, allocations: 260.7 kB / 0.7127 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.1695, allocations: 51.41 kB / 0.7127 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/0.1699, allocations: 478 kB / 0.7132 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1699, allocations: 33.64 kB / 0.7132 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.1701, allocations: 232.5 kB / 0.7134 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.1701, allocations: 51.3 kB / 0.7135 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.1702, allocations: 25.7 kB / 0.7135 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.1703, allocations: 354.7 kB / 0.7139 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.1705, allocations: 75.89 kB / 0.7139 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1707, allocations: 163.5 kB / 0.7141 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.171, allocations: 174.5 kB / 0.7143 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1711, allocations: 4 kB / 0.7143 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004612/0.1715, allocations: 255.3 kB / 0.7145 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.1716, allocations: 110.7 kB / 0.7146 GB, free: 440 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1716, allocations: 3.984 kB / 0.7146 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1716, allocations: 4.094 kB / 0.7146 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.1718, allocations: 47.91 kB / 0.7147 GB, free: 384 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.1718, allocations: 3.938 kB / 0.7147 GB, free: 380 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.1722, allocations: 55.7 kB / 0.7147 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.1722, allocations: 8 kB / 0.7147 GB, free: 316 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.461e-06/0.1722, allocations: 4 kB / 0.7147 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003823/0.1726, allocations: 193.9 kB / 0.7149 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/0.1726, allocations: 3.984 kB / 0.7149 GB, free: 116 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-06/0.1726, allocations: 0 / 0.7149 GB, free: 116 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.1728, allocations: 47.92 kB / 0.715 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.497e-06/0.1728, allocations: 3.984 kB / 0.715 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002926/0.1731, allocations: 47.75 kB / 0.715 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/0.1731, allocations: 12.09 kB / 0.715 GB, free: 4 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.0001742/0.1733, allocations: 246.3 kB / 0.7153 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.1734, allocations: 43.44 kB / 0.7153 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004935/0.1739, allocations: 261.2 kB / 0.7155 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1739, allocations: 0 / 0.7155 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1739, allocations: 0 / 0.7155 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1739, allocations: 3.984 kB / 0.7156 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008642/0.1748, allocations: 0.7083 MB / 0.7162 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1748, allocations: 0 / 0.7162 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.1749, allocations: 40.05 kB / 0.7163 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1749, allocations: 7.938 kB / 0.7163 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.175, allocations: 4 kB / 0.7163 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.175, allocations: 3.938 kB / 0.7163 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.175, allocations: 4 kB / 0.7163 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004174/0.1754, allocations: 350.3 kB / 0.7166 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.1755, allocations: 144.4 kB / 0.7168 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.1756, allocations: 8 kB / 0.7168 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.1758, allocations: 35.81 kB / 0.7168 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.1759, allocations: 11.98 kB / 0.7168 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.1759, allocations: 8 kB / 0.7168 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000315/0.1762, allocations: 334.9 kB / 0.7172 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.1762, allocations: 0 / 0.7172 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005606/0.1768, allocations: 203.7 kB / 0.7173 GB, free: 13.49 MB / 0.5137 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001538/0.1783, allocations: 1.26 MB / 0.7186 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005844/0.1789, allocations: 294.4 kB / 0.7189 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1789, allocations: 0 / 0.7189 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.1791, allocations: 87.89 kB / 0.7189 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.1804, allocations: 223.2 kB / 0.7192 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.1843, allocations: 3.545 MB / 0.7226 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.1847, allocations: 0.8231 MB / 0.7234 GB, free: 7.238 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002745/0.1849, allocations: 91.22 kB / 0.7235 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001711/0.1851, allocations: 147.4 kB / 0.7236 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.1851, allocations: 0 / 0.7236 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.155/2.34, allocations: 12.17 MB / 0.7355 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/2.34, allocations: 277.7 kB / 0.7358 GB, free: 10.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/4.259, allocations: 0 / 0.7358 GB, free: 10.79 MB / 0.5294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)