Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Time.Examples.CalendarTime.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.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.491/2.491, allocations: 287.9 MB / 302.9 MB, free: 8.215 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.001415/0.001414, allocations: 182.1 kB / 371.4 MB, free: 10.67 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.147/2.147, 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.001019/0.001019, allocations: 85.69 kB / 0.7434 GB, free: 6.438 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004783/0.0004785, allocations: 11.06 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1606, allocations: 115.3 MB / 0.9787 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001427/0.1621, allocations: 1.179 MB / 0.9799 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007946/0.1629, allocations: 392.2 kB / 0.9803 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.974e-05/0.163, allocations: 0 / 0.9803 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.163, allocations: 3.984 kB / 0.9803 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.1632, allocations: 23.91 kB / 0.9803 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.1639, allocations: 214.5 kB / 0.9805 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.1641, allocations: 143.8 kB / 0.9806 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.473e-05/0.1641, allocations: 8 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.1644, allocations: 171.6 kB / 0.9808 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.1646, allocations: 119.7 kB / 0.9809 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.256e-05/0.1647, allocations: 12 kB / 0.9809 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.843e-05/0.1647, allocations: 8 kB / 0.9809 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.129e-05/0.1648, allocations: 75.78 kB / 0.981 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.1649, allocations: 69.58 kB / 0.9811 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.1652, allocations: 199.8 kB / 0.9813 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.388e-06/0.1652, allocations: 0 / 0.9813 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.308e-06/0.1652, allocations: 0 / 0.9813 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.1652, allocations: 0 / 0.9813 GB, free: 25.62 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000957/0.1662, allocations: 0.6219 MB / 0.9819 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1662, allocations: 16.02 kB / 0.9819 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.638e-05/0.1663, allocations: 27.72 kB / 0.9819 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.1666, allocations: 250.5 kB / 0.9822 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.1667, allocations: 12 kB / 0.9822 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.1667, allocations: 20 kB / 0.9822 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.1671, allocations: 153.4 kB / 0.9823 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.1671, allocations: 4 kB / 0.9823 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.1672, allocations: 4 kB / 0.9823 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-06/0.1672, allocations: 0 / 0.9823 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000164/0.1673, allocations: 47.97 kB / 0.9824 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003277/0.1677, allocations: 313.3 kB / 0.9827 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.168, allocations: 134.6 kB / 0.9828 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.1681, allocations: 4.312 kB / 0.9828 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005302/0.1686, allocations: 225.3 kB / 0.983 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 2.734e-06/0.1686, allocations: 0 / 0.983 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18): time 0.0006819/0.1693, allocations: 266.8 kB / 0.9833 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.1694, allocations: 63.41 kB / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1697, allocations: 290.8 kB / 0.9836 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.1697, allocations: 37.7 kB / 0.9837 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.873e-05/0.1698, allocations: 93.12 kB / 0.9837 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.34e-05/0.1699, allocations: 43.5 kB / 0.9838 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.1699, allocations: 8 kB / 0.9838 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.17, allocations: 326.8 kB / 0.9841 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.1703, allocations: 96.17 kB / 0.9842 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.1706, allocations: 142.4 kB / 0.9843 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.1709, allocations: 156.1 kB / 0.9845 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.894e-06/0.1709, allocations: 0 / 0.9845 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008625/0.1718, allocations: 408.3 kB / 0.9849 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.222e-05/0.1719, allocations: 75.39 kB / 0.9849 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.068e-06/0.1719, allocations: 4 kB / 0.9849 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1719, allocations: 4 kB / 0.985 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.1721, allocations: 27.91 kB / 0.985 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.65e-06/0.1721, allocations: 4.188 kB / 0.985 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.1728, allocations: 75.73 kB / 0.9851 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.427e-05/0.1729, allocations: 51.98 kB / 0.9851 GB, free: 21.39 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: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0002162/0.1731, allocations: 181.7 kB / 0.9853 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.1732, allocations: 27.62 kB / 0.9853 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.056e-05/0.1732, allocations: 30.25 kB / 0.9853 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.205e-06/0.1732, allocations: 4 kB / 0.9853 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.256e-06/0.1733, allocations: 0 / 0.9853 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.155e-06/0.1733, allocations: 0 / 0.9853 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000902/0.1742, allocations: 0.5578 MB / 0.9859 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.644e-06/0.1742, allocations: 0 / 0.9859 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.644e-05/0.1743, allocations: 15.98 kB / 0.9859 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.436e-06/0.1743, allocations: 0 / 0.9859 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.1743, allocations: 7.984 kB / 0.9859 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.056e-06/0.1744, allocations: 8 kB / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.1744, allocations: 0 / 0.9859 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005228/0.1749, allocations: 328.6 kB / 0.9862 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.1751, allocations: 152.8 kB / 0.9864 GB, free: 20 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.325e-05/0.1752, allocations: 11.98 kB / 0.9864 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.1755, allocations: 15.98 kB / 0.9864 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.1756, allocations: 19.97 kB / 0.9864 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.1757, allocations: 31.92 kB / 0.9864 GB, free: 19.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002083/0.1759, allocations: 201.9 kB / 0.9866 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.04e-07/0.1759, allocations: 0 / 0.9866 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004479/0.1764, allocations: 51.98 kB / 0.9867 GB, free: 19.67 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: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0001306/0.1765, allocations: 124.8 kB / 0.9868 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006529/0.1772, allocations: 346.7 kB / 0.9871 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.047e-06/0.1772, allocations: 0 / 0.9871 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.1774, allocations: 73.31 kB / 0.9872 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.1778, allocations: 28.81 kB / 0.9872 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000753/0.1785, allocations: 443.3 kB / 0.9877 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.1787, allocations: 0.7438 MB / 0.9884 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002071/0.179, allocations: 41.42 kB / 0.9884 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.1791, allocations: 35.42 kB / 0.9885 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of SimCode: time 1.652e-06/0.1792, allocations: 0 / 0.9885 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of Templates: time 0.008716/0.1879, allocations: 3.939 MB / 0.9923 GB, free: 13.85 MB / 0.6198 GB