Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.Sources.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.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.674/2.674, allocations: 287.9 MB / 302.9 MB, free: 8.363 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.002254/0.002254, allocations: 173.2 kB / 371.4 MB, free: 10.66 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.276/2.276, allocations: 205.4 MB / 0.6301 GB, free: 10.37 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.001004/0.001003, allocations: 93.89 kB / 0.7434 GB, free: 6.375 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004684/0.0004687, allocations: 13.52 kB / 0.8662 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.162, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.001338/0.1634, allocations: 1.118 MB / 0.9798 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008319/0.1642, allocations: 268.3 kB / 0.9801 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.988e-05/0.1643, allocations: 7.938 kB / 0.9801 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1645, allocations: 15.91 kB / 0.9801 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.351e-05/0.1646, allocations: 11.98 kB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004448/0.165, allocations: 79.78 kB / 0.9802 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002904/0.1654, allocations: 148.2 kB / 0.9803 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.016e-05/0.1654, allocations: 5.125 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.1656, allocations: 83.81 kB / 0.9804 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.1659, allocations: 103.7 kB / 0.9805 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 7.064e-05/0.166, allocations: 12 kB / 0.9805 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.456e-05/0.1661, allocations: 8 kB / 0.9805 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.1662, allocations: 67.8 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.527e-05/0.1663, allocations: 61.58 kB / 0.9807 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.1667, allocations: 179.8 kB / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.279e-06/0.1667, allocations: 0 / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.213e-06/0.1667, allocations: 0 / 0.9808 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.271e-06/0.1667, allocations: 0 / 0.9808 GB, free: 26.03 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.001468/0.1682, allocations: 0.6276 MB / 0.9814 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1683, allocations: 19.95 kB / 0.9815 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.1684, allocations: 27.72 kB / 0.9815 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.1689, allocations: 253.7 kB / 0.9817 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.741e-05/0.1689, allocations: 12.28 kB / 0.9817 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.169, allocations: 19.94 kB / 0.9818 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.1701, allocations: 462.7 kB / 0.9822 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.1701, allocations: 0 / 0.9822 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.1702, allocations: 0 / 0.9822 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.1702, allocations: 4 kB / 0.9822 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008328/0.171, allocations: 331.8 kB / 0.9825 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.1722, allocations: 0.5739 MB / 0.9831 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00249/0.1748, allocations: 1.027 MB / 0.9841 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.1748, allocations: 8.016 kB / 0.9841 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.176, allocations: 478.4 kB / 0.9846 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=37): time 4.725e-06/0.1761, allocations: 0 / 0.9846 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=37): time 0.002521/0.1786, allocations: 1.112 MB / 0.9856 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.1787, allocations: 140.5 kB / 0.9858 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.179, allocations: 248.9 kB / 0.986 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.584e-05/0.179, allocations: 37.7 kB / 0.986 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.631e-05/0.1791, allocations: 125.1 kB / 0.9862 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.846e-05/0.1792, allocations: 83.08 kB / 0.9862 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.1792, allocations: 4 kB / 0.9863 GB, free: 20.17 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.631e-05/0.1793, allocations: 346.8 kB / 0.9866 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.1798, allocations: 328.7 kB / 0.9869 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005227/0.1803, allocations: 422.4 kB / 0.9873 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005364/0.1809, allocations: 363.8 kB / 0.9876 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.902e-06/0.1809, allocations: 0 / 0.9876 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001236/0.1821, allocations: 0.8351 MB / 0.9885 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.1822, allocations: 4 kB / 0.9885 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.707e-06/0.1822, allocations: 4 kB / 0.9885 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.1822, allocations: 4 kB / 0.9885 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.1824, allocations: 43.84 kB / 0.9885 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1824, allocations: 4 kB / 0.9885 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.1827, allocations: 35.67 kB / 0.9886 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.183, allocations: 268.1 kB / 0.9888 GB, free: 17.5 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.0002253/0.1833, allocations: 201.8 kB / 0.989 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.22e-05/0.1834, allocations: 35.62 kB / 0.989 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.133e-05/0.1834, allocations: 38.17 kB / 0.9891 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.1835, allocations: 4 kB / 0.9891 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.699e-06/0.1835, allocations: 0 / 0.9891 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.756e-06/0.1835, allocations: 3.984 kB / 0.9891 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.1857, allocations: 1.704 MB / 0.9907 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.1857, allocations: 4 kB / 0.9907 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.301e-05/0.1858, allocations: 24.03 kB / 0.9908 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.614e-06/0.1858, allocations: 4 kB / 0.9908 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.958e-05/0.1859, allocations: 27.97 kB / 0.9908 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.085e-06/0.1859, allocations: 0 / 0.9908 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.089e-06/0.1859, allocations: 4 kB / 0.9908 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1871, allocations: 1.15 MB / 0.9919 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.1872, allocations: 108.7 kB / 0.992 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.1872, allocations: 11.95 kB / 0.992 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.1876, allocations: 8 kB / 0.992 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1877, allocations: 51.94 kB / 0.9921 GB, free: 14.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003082/0.188, allocations: 283.3 kB / 0.9924 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001861/0.1882, allocations: 172.5 kB / 0.9925 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.77e-07/0.1883, allocations: 0 / 0.9925 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000634/0.1889, allocations: 64 kB / 0.9926 GB, free: 13.5 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.0001463/0.1891, allocations: 140.4 kB / 0.9927 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.1902, allocations: 0.7223 MB / 0.9934 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.947e-06/0.1902, allocations: 4.062 kB / 0.9934 GB, free: 12.63 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006117/0.1908, allocations: 407.6 kB / 0.9938 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.1923, allocations: 311.8 kB / 0.9941 GB, free: 11.94 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.1939, allocations: 1.013 MB / 0.9951 GB, free: 10.89 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.1941, allocations: 0.763 MB / 0.9959 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003573/0.1945, allocations: 103.5 kB / 0.996 GB, free: 10.01 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.1947, allocations: 71.38 kB / 0.996 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of SimCode: time 1.655e-06/0.1947, allocations: 0 / 0.996 GB, free: 9.938 MB / 0.6198 GB Notification: Performance of Templates: time 0.01466/0.2093, allocations: 8.141 MB / 1.004 GB, free: 1.891 MB / 0.6198 GB