Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.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.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.628/2.628, allocations: 287.9 MB / 302.9 MB, free: 8.34 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.001458/0.001458, allocations: 183.8 kB / 371.4 MB, free: 10.69 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.12/2.12, allocations: 205.4 MB / 0.6301 GB, free: 10.42 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.001009/0.001009, allocations: 86.98 kB / 0.7434 GB, free: 6.434 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000484/0.0004842, allocations: 12.59 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1564, allocations: 115.3 MB / 0.9788 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.0007223/0.1572, allocations: 425.6 kB / 0.9792 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0005554/0.1577, allocations: 260.3 kB / 0.9794 GB, free: 27.54 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.1578, allocations: 3.938 kB / 0.9794 GB, free: 27.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.457e-05/0.1579, allocations: 7.938 kB / 0.9794 GB, free: 27.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.272e-05/0.158, allocations: 23.95 kB / 0.9794 GB, free: 27.51 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.1583, allocations: 79.78 kB / 0.9795 GB, free: 27.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.1585, allocations: 144.2 kB / 0.9797 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.1586, allocations: 5.125 kB / 0.9797 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.311e-05/0.1587, allocations: 79.88 kB / 0.9797 GB, free: 27.21 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.1588, allocations: 103.7 kB / 0.9798 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.488e-05/0.1589, allocations: 8 kB / 0.9799 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 3.608e-05/0.1589, allocations: 8 kB / 0.9799 GB, free: 27.09 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.856e-05/0.159, allocations: 87.77 kB / 0.9799 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.358e-05/0.1591, allocations: 57.58 kB / 0.98 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.1593, allocations: 199.5 kB / 0.9802 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.451e-06/0.1593, allocations: 4 kB / 0.9802 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.925e-06/0.1593, allocations: 0 / 0.9802 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.38e-06/0.1593, allocations: 0 / 0.9802 GB, free: 26.74 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0008477/0.1602, allocations: 0.6317 MB / 0.9808 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.1602, allocations: 12.02 kB / 0.9808 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.1603, allocations: 27.72 kB / 0.9808 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.1606, allocations: 261.6 kB / 0.9811 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.1607, allocations: 16.28 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.1607, allocations: 16 kB / 0.9811 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.1614, allocations: 462.6 kB / 0.9816 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1614, allocations: 0 / 0.9816 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.1614, allocations: 4 kB / 0.9816 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.048e-06/0.1614, allocations: 4 kB / 0.9816 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.1619, allocations: 327.8 kB / 0.9819 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006211/0.1625, allocations: 0.5778 MB / 0.9825 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.1638, allocations: 1.022 MB / 0.9834 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.1639, allocations: 12.16 kB / 0.9835 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006623/0.1645, allocations: 474.2 kB / 0.9839 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 3.154e-06/0.1646, allocations: 3.938 kB / 0.9839 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.001612/0.1662, allocations: 1.116 MB / 0.985 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.1662, allocations: 140.5 kB / 0.9851 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.1665, allocations: 248.9 kB / 0.9854 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.1665, allocations: 37.7 kB / 0.9854 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.1666, allocations: 121.1 kB / 0.9855 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.1667, allocations: 83.14 kB / 0.9856 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.276e-05/0.1667, allocations: 8 kB / 0.9856 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.358e-05/0.1668, allocations: 342.8 kB / 0.9859 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004415/0.1673, allocations: 332.7 kB / 0.9863 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004805/0.1678, allocations: 418.5 kB / 0.9867 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000513/0.1683, allocations: 362 kB / 0.987 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.422e-06/0.1683, allocations: 0 / 0.987 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001162/0.1695, allocations: 0.8248 MB / 0.9878 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1695, allocations: 12.11 kB / 0.9878 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.634e-06/0.1695, allocations: 4 kB / 0.9878 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.1696, allocations: 4 kB / 0.9878 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.1698, allocations: 47.84 kB / 0.9879 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1698, allocations: 4 kB / 0.9879 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.1701, allocations: 31.67 kB / 0.9879 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002973/0.1704, allocations: 268 kB / 0.9882 GB, free: 18.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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.0002153/0.1706, allocations: 197.9 kB / 0.9884 GB, free: 18.01 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.053e-05/0.1707, allocations: 31.62 kB / 0.9884 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.408e-05/0.1708, allocations: 42.17 kB / 0.9884 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.88e-06/0.1708, allocations: 4 kB / 0.9884 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.831e-06/0.1708, allocations: 0 / 0.9884 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.72e-06/0.1708, allocations: 0 / 0.9884 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.173, allocations: 1.711 MB / 0.9901 GB, free: 16.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.848e-06/0.173, allocations: 8 kB / 0.9901 GB, free: 16.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.173, allocations: 23.91 kB / 0.9901 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.01e-06/0.1731, allocations: 4.125 kB / 0.9901 GB, free: 16.13 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.866e-05/0.1731, allocations: 23.97 kB / 0.9902 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.988e-06/0.1731, allocations: 0 / 0.9902 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.244e-06/0.1731, allocations: 4 kB / 0.9902 GB, free: 16.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1743, allocations: 1.15 MB / 0.9913 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.1743, allocations: 104.7 kB / 0.9914 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.1744, allocations: 19.94 kB / 0.9914 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.1748, allocations: 8 kB / 0.9914 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.1749, allocations: 55.88 kB / 0.9915 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003004/0.1752, allocations: 279.4 kB / 0.9917 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001593/0.1754, allocations: 172.5 kB / 0.9919 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.89e-07/0.1754, allocations: 0 / 0.9919 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000614/0.176, allocations: 60 kB / 0.992 GB, free: 14.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001766/0.1762, allocations: 135.2 kB / 0.9921 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001056/0.1773, allocations: 0.7298 MB / 0.9928 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1773, allocations: 4.25 kB / 0.9928 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005865/0.1779, allocations: 412.7 kB / 0.9932 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.1794, allocations: 351.8 kB / 0.9935 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/0.1809, allocations: 1.019 MB / 0.9945 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.1812, allocations: 0.7608 MB / 0.9953 GB, free: 10.76 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003704/0.1816, allocations: 102.9 kB / 0.9954 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.1818, allocations: 67.38 kB / 0.9954 GB, free: 10.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.545e-06/0.1818, allocations: 4 kB / 0.9954 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of Templates: time 0.01503/0.1968, allocations: 8.336 MB / 1.004 GB, free: 2.348 MB / 0.6198 GB