Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.536/2.536, allocations: 287.9 MB / 302.9 MB, free: 8.25 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001413/0.001413, allocations: 181.5 kB / 371.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.4 MB / 0.6301 GB, free: 10.41 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 100.6 kB / 0.7434 GB, free: 6.414 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0008107/0.000811, allocations: 13.75 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1689, allocations: 115.3 MB / 0.9788 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.0008048/0.1697, allocations: 494.2 kB / 0.9792 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.171, allocations: 1.099 MB / 0.9803 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.187e-05/0.1711, allocations: 0 / 0.9803 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.371e-05/0.1711, allocations: 7.875 kB / 0.9803 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.606e-05/0.1712, allocations: 19.95 kB / 0.9803 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.1716, allocations: 114 kB / 0.9804 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.928e-05/0.1717, allocations: 59.92 kB / 0.9805 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.176e-05/0.1718, allocations: 8 kB / 0.9805 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.854e-05/0.1719, allocations: 51.88 kB / 0.9806 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.353e-05/0.172, allocations: 39.83 kB / 0.9806 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.172, allocations: 8 kB / 0.9806 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.093e-05/0.1721, allocations: 19.98 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.1721, allocations: 3.984 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.976e-05/0.1722, allocations: 41.64 kB / 0.9807 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.1723, allocations: 76.09 kB / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1723, allocations: 0 / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.949e-06/0.1723, allocations: 0 / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.938e-06/0.1723, allocations: 4 kB / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004849/0.1728, allocations: 421.8 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1729, allocations: 12.02 kB / 0.9812 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.1729, allocations: 11.91 kB / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.106e-05/0.173, allocations: 182.9 kB / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.1731, allocations: 0 / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.1731, allocations: 8 kB / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.1734, allocations: 93.58 kB / 0.9814 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.691e-06/0.1734, allocations: 0 / 0.9814 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1734, allocations: 4 kB / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.291e-06/0.1734, allocations: 0 / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003414/0.1738, allocations: 87.92 kB / 0.9815 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004022/0.1742, allocations: 332.7 kB / 0.9818 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/0.1744, allocations: 70.48 kB / 0.9819 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.1745, allocations: 3.938 kB / 0.9819 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/0.1748, allocations: 103.4 kB / 0.982 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 2.472e-06/0.1748, allocations: 0 / 0.982 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0006664/0.1755, allocations: 197.4 kB / 0.9822 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.1755, allocations: 55.36 kB / 0.9823 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.145e-05/0.1756, allocations: 127.3 kB / 0.9824 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.1756, allocations: 33.7 kB / 0.9824 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.778e-05/0.1757, allocations: 88.14 kB / 0.9825 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.1757, allocations: 23.8 kB / 0.9825 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.642e-05/0.1758, allocations: 7.938 kB / 0.9825 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.117e-05/0.1758, allocations: 314.8 kB / 0.9828 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002544/0.1761, allocations: 75.94 kB / 0.9829 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002535/0.1764, allocations: 90.52 kB / 0.983 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.1766, allocations: 101.7 kB / 0.9831 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.1766, allocations: 0 / 0.9831 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006343/0.1773, allocations: 231.1 kB / 0.9833 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.1773, allocations: 37.69 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.507e-06/0.1773, allocations: 64 / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1774, allocations: 4 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.1775, allocations: 23.92 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.159e-06/0.1775, allocations: 4 kB / 0.9834 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.1778, allocations: 65.86 kB / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.1779, allocations: 4 kB / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/0.178, allocations: 117.8 kB / 0.9835 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.178, allocations: 4.219 kB / 0.9835 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.178, allocations: 16.36 kB / 0.9836 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.178, allocations: 0 / 0.9836 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.243e-06/0.1781, allocations: 8 kB / 0.9836 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.976e-06/0.1781, allocations: 0 / 0.9836 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.1782, allocations: 181.6 kB / 0.9837 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.969e-06/0.1782, allocations: 4 kB / 0.9837 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.1783, allocations: 23.95 kB / 0.9838 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.284e-06/0.1784, allocations: 4 kB / 0.9838 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.1784, allocations: 0 / 0.9838 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.237e-06/0.1784, allocations: 0 / 0.9838 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.131e-06/0.1784, allocations: 4 kB / 0.9838 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.1788, allocations: 180.8 kB / 0.9839 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.1789, allocations: 81.02 kB / 0.984 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.1789, allocations: 8 kB / 0.984 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.179, allocations: 11.98 kB / 0.984 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.1791, allocations: 7.984 kB / 0.9841 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.1791, allocations: 8 kB / 0.9841 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.271e-05/0.1792, allocations: 97.52 kB / 0.9842 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.81e-07/0.1792, allocations: 0 / 0.9842 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000288/0.1795, allocations: 20 kB / 0.9842 GB, free: 22.29 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001334/0.1796, allocations: 107.2 kB / 0.9843 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000536/0.1802, allocations: 207.2 kB / 0.9845 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.712e-06/0.1802, allocations: 96 / 0.9845 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.1804, allocations: 68.02 kB / 0.9845 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.1806, allocations: 25.06 kB / 0.9846 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003405/0.181, allocations: 178.6 kB / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.1811, allocations: 0.6887 MB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.519e-05/0.1812, allocations: 4.188 kB / 0.9854 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.226e-05/0.1812, allocations: 7.438 kB / 0.9854 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of SimCode: time 1.536e-06/0.1812, allocations: 0 / 0.9854 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of Templates: time 0.0042/0.1854, allocations: 1.346 MB / 0.9867 GB, free: 19.61 MB / 0.6198 GB