Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.643/2.643, allocations: 287.9 MB / 302.9 MB, free: 8.316 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.002482/0.002482, allocations: 174.7 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.264/2.264, allocations: 205.4 MB / 0.6301 GB, free: 10.38 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.00101/0.00101, allocations: 97.16 kB / 0.7434 GB, free: 6.391 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006574/0.0006577, allocations: 17.66 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1702, allocations: 115.3 MB / 0.9788 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.0008512/0.1711, allocations: 0.5332 MB / 0.9793 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1725, allocations: 1.216 MB / 0.9805 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.1726, allocations: 0 / 0.9805 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.495e-05/0.1726, allocations: 7.875 kB / 0.9805 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.783e-05/0.1727, allocations: 23.95 kB / 0.9805 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009479/0.1737, allocations: 285.4 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.1738, allocations: 147.8 kB / 0.9809 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.174, allocations: 25.62 kB / 0.981 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.1741, allocations: 95.8 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001135/0.1742, allocations: 83.69 kB / 0.9811 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.1743, allocations: 12 kB / 0.9811 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.452e-05/0.1744, allocations: 27.98 kB / 0.9812 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.1744, allocations: 19.92 kB / 0.9812 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.1745, allocations: 49.64 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001993/0.1747, allocations: 179.8 kB / 0.9814 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.108e-06/0.1747, allocations: 4 kB / 0.9814 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.12e-06/0.1747, allocations: 0 / 0.9814 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.926e-06/0.1747, allocations: 0 / 0.9814 GB, free: 25.45 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004423/0.1752, allocations: 494.2 kB / 0.9819 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1752, allocations: 8.031 kB / 0.9819 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.693e-05/0.1753, allocations: 23.77 kB / 0.9819 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.876e-05/0.1754, allocations: 183.5 kB / 0.9821 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.1755, allocations: 15.94 kB / 0.9821 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.1755, allocations: 16 kB / 0.9821 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.1757, allocations: 105.5 kB / 0.9822 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1757, allocations: 0 / 0.9822 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.1758, allocations: 4 kB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.164e-06/0.1758, allocations: 4 kB / 0.9822 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1759, allocations: 39.98 kB / 0.9823 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.1766, allocations: 0.4923 MB / 0.9827 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.1769, allocations: 70.56 kB / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1769, allocations: 0 / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.1771, allocations: 111.7 kB / 0.9829 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 2.552e-06/0.1772, allocations: 0 / 0.9829 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0003913/0.1776, allocations: 182 kB / 0.9831 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.1776, allocations: 55.41 kB / 0.9831 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.1777, allocations: 161.1 kB / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.1778, allocations: 29.7 kB / 0.9833 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.557e-05/0.1779, allocations: 111.9 kB / 0.9834 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.1779, allocations: 27.66 kB / 0.9835 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.178, allocations: 8 kB / 0.9835 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.178, allocations: 322.8 kB / 0.9838 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.1783, allocations: 99.94 kB / 0.9839 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000273/0.1786, allocations: 145.9 kB / 0.984 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.1789, allocations: 169.1 kB / 0.9842 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.034e-06/0.1789, allocations: 8 kB / 0.9842 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007545/0.1796, allocations: 400 kB / 0.9846 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.761e-05/0.1797, allocations: 101.1 kB / 0.9846 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.024e-06/0.1797, allocations: 4 kB / 0.9847 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.1798, allocations: 3.953 kB / 0.9847 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.787e-05/0.1798, allocations: 11.98 kB / 0.9847 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.414e-06/0.1799, allocations: 7.938 kB / 0.9847 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005962/0.1805, allocations: 119.9 kB / 0.9848 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.246e-05/0.1805, allocations: 19.98 kB / 0.9848 GB, free: 21.65 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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 0.0001292/0.1807, allocations: 129.8 kB / 0.9849 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.1807, allocations: 15.81 kB / 0.9849 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/0.1808, allocations: 16.84 kB / 0.985 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.478e-06/0.1808, allocations: 11.94 kB / 0.985 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.951e-06/0.1808, allocations: 0 / 0.985 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.667e-06/0.1808, allocations: 3.984 kB / 0.985 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.181, allocations: 209.6 kB / 0.9852 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.641e-06/0.181, allocations: 0 / 0.9852 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.714e-05/0.1811, allocations: 11.94 kB / 0.9852 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.573e-06/0.1811, allocations: 0 / 0.9852 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.1811, allocations: 7.984 kB / 0.9852 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.382e-06/0.1811, allocations: 4 kB / 0.9852 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.128e-06/0.1812, allocations: 7.891 kB / 0.9852 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.1814, allocations: 166.7 kB / 0.9854 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.101e-05/0.1815, allocations: 81.02 kB / 0.9854 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.1815, allocations: 8 kB / 0.9855 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.064e-05/0.1816, allocations: 4 kB / 0.9855 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.1816, allocations: 7.984 kB / 0.9855 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.1816, allocations: 15.94 kB / 0.9855 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.513e-05/0.1817, allocations: 116 kB / 0.9856 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.99e-07/0.1817, allocations: 4 kB / 0.9856 GB, free: 20.75 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003559/0.1821, allocations: 59.83 kB / 0.9857 GB, free: 20.7 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001425/0.1823, allocations: 111.9 kB / 0.9858 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005559/0.1828, allocations: 382.1 kB / 0.9861 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.072e-06/0.1829, allocations: 0 / 0.9861 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.183, allocations: 55.91 kB / 0.9862 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.1832, allocations: 24.36 kB / 0.9862 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004597/0.1837, allocations: 263.7 kB / 0.9865 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.1839, allocations: 0.7126 MB / 0.9871 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.848e-05/0.1839, allocations: 12.64 kB / 0.9872 GB, free: 19.06 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.184, allocations: 11.44 kB / 0.9872 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of SimCode: time 1.557e-06/0.184, allocations: 7.938 kB / 0.9872 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.006426/0.1904, allocations: 2.544 MB / 0.9897 GB, free: 16.53 MB / 0.6198 GB