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 4.754/4.754, allocations: 0.5623 GB / 0.5769 GB, free: 3.32 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002408/0.002408, allocations: 354.9 kB / 0.644 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.017/4.017, allocations: 410.7 MB / 1.112 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001706/0.001706, allocations: 172.1 kB / 1.225 GB, free: 36.02 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004725/0.0004727, allocations: 8 kB / 1.348 GB, free: 121.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1536, allocations: 115.3 MB / 1.461 GB, free: 6.652 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001389/0.1551, allocations: 1.182 MB / 1.462 GB, free: 5.457 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007805/0.1559, allocations: 387.2 kB / 1.462 GB, free: 5.082 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.653e-05/0.1559, allocations: 0 / 1.462 GB, free: 5.082 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.927e-05/0.156, allocations: 0 / 1.462 GB, free: 5.082 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.1561, allocations: 23.84 kB / 1.462 GB, free: 5.059 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006498/0.1568, allocations: 207.5 kB / 1.462 GB, free: 4.855 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.157, allocations: 239.5 kB / 1.463 GB, free: 4.621 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.507e-05/0.1571, allocations: 4 kB / 1.463 GB, free: 4.617 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.1573, allocations: 163.7 kB / 1.463 GB, free: 4.457 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.1575, allocations: 139.7 kB / 1.463 GB, free: 4.32 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.1576, allocations: 11.94 kB / 1.463 GB, free: 4.309 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.1577, allocations: 8 kB / 1.463 GB, free: 4.301 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.154e-05/0.1578, allocations: 75.78 kB / 1.463 GB, free: 4.227 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.993e-05/0.1579, allocations: 69.58 kB / 1.463 GB, free: 4.152 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.1581, allocations: 207.8 kB / 1.463 GB, free: 3.949 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.394e-06/0.1581, allocations: 0 / 1.463 GB, free: 3.949 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.874e-06/0.1581, allocations: 0 / 1.463 GB, free: 3.949 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.1581, allocations: 0 / 1.463 GB, free: 3.949 MB / 0.6042 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.0009703/0.1591, allocations: 0.6204 MB / 1.464 GB, free: 3.258 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.1591, allocations: 8.031 kB / 1.464 GB, free: 3.25 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.809e-05/0.1593, allocations: 31.72 kB / 1.464 GB, free: 3.219 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.1595, allocations: 262.5 kB / 1.464 GB, free: 2.922 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.1596, allocations: 8 kB / 1.464 GB, free: 2.914 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.321e-05/0.1597, allocations: 23.98 kB / 1.464 GB, free: 2.891 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.16, allocations: 149.3 kB / 1.464 GB, free: 2.742 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.16, allocations: 4 kB / 1.464 GB, free: 2.738 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.1601, allocations: 7.984 kB / 1.464 GB, free: 2.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.905e-06/0.1601, allocations: 0 / 1.464 GB, free: 2.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.1603, allocations: 43.97 kB / 1.464 GB, free: 2.688 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003278/0.1606, allocations: 313.3 kB / 1.465 GB, free: 2.332 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1609, allocations: 130.7 kB / 1.465 GB, free: 2.195 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.1611, allocations: 57.2 kB / 1.465 GB, free: 2.137 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.1611, allocations: 0 / 1.465 GB, free: 2.137 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005272/0.1617, allocations: 228.1 kB / 1.465 GB, free: 1.902 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 2.773e-06/0.1617, allocations: 0 / 1.465 GB, free: 1.902 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0006981/0.1624, allocations: 269.1 kB / 1.465 GB, free: 1.633 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.1624, allocations: 59.39 kB / 1.465 GB, free: 1.562 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.1628, allocations: 290.8 kB / 1.466 GB, free: 1.273 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.109e-05/0.1629, allocations: 41.7 kB / 1.466 GB, free: 1.227 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 9.459e-05/0.163, allocations: 97.11 kB / 1.466 GB, free: 1.129 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.163, allocations: 39.52 kB / 1.466 GB, free: 1.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.1631, allocations: 8 kB / 1.466 GB, free: 1.082 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1633, allocations: 326.8 kB / 1.466 GB, free: 0.7539 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003116/0.1636, allocations: 92.17 kB / 1.466 GB, free: 0.6602 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.164, allocations: 150.9 kB / 1.466 GB, free: 0.4922 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000327/0.1643, allocations: 156 kB / 1.467 GB, free: 332 kB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.445e-06/0.1643, allocations: 0 / 1.467 GB, free: 332 kB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00102/0.1653, allocations: 407.3 kB / 1.467 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.53e-05/0.1655, allocations: 79.38 kB / 1.467 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.493e-06/0.1655, allocations: 0 / 1.467 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.1655, allocations: 4 kB / 1.467 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.1657, allocations: 27.86 kB / 1.467 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.1658, allocations: 4 kB / 1.467 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/0.1665, allocations: 79.81 kB / 1.467 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.1666, allocations: 55.98 kB / 1.467 GB, free: 15.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: 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.0002791/0.1669, allocations: 173.2 kB / 1.467 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-05/0.167, allocations: 27.62 kB / 1.467 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.532e-05/0.1671, allocations: 34.25 kB / 1.467 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.407e-06/0.1671, allocations: 0 / 1.467 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.784e-06/0.1671, allocations: 4 kB / 1.467 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.346e-06/0.1671, allocations: 3.984 kB / 1.467 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.1682, allocations: 0.5635 MB / 1.468 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.703e-06/0.1682, allocations: 4 kB / 1.468 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.1683, allocations: 7.984 kB / 1.468 GB, free: 14.78 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.526e-06/0.1683, allocations: 3.984 kB / 1.468 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.666e-05/0.1684, allocations: 11.98 kB / 1.468 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.956e-06/0.1684, allocations: 4 kB / 1.468 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.687e-06/0.1684, allocations: 0 / 1.468 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006119/0.169, allocations: 330.9 kB / 1.468 GB, free: 14.42 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.1693, allocations: 152.7 kB / 1.469 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.619e-05/0.1694, allocations: 11.98 kB / 1.469 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.1697, allocations: 8 kB / 1.469 GB, free: 14.23 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.1698, allocations: 19.97 kB / 1.469 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.073e-05/0.1698, allocations: 27.98 kB / 1.469 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002763/0.1701, allocations: 213.9 kB / 1.469 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.041e-06/0.1701, allocations: 0 / 1.469 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004794/0.1706, allocations: 55.92 kB / 1.469 GB, free: 13.92 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.0001717/0.1708, allocations: 116.9 kB / 1.469 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007824/0.1716, allocations: 338.7 kB / 1.469 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.097e-06/0.1716, allocations: 0 / 1.469 GB, free: 13.44 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.1719, allocations: 74.88 kB / 1.469 GB, free: 13.37 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1723, allocations: 31.47 kB / 1.469 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009077/0.1732, allocations: 446.9 kB / 1.47 GB, free: 12.87 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.1737, allocations: 0.7513 MB / 1.471 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000224/0.1739, allocations: 41.42 kB / 1.471 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.1741, allocations: 35.42 kB / 1.471 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of SimCode: time 1.67e-06/0.1741, allocations: 0 / 1.471 GB, free: 12.02 MB / 0.6198 GB Notification: Performance of Templates: time 0.01014/0.1843, allocations: 3.914 MB / 1.474 GB, free: 8.121 MB / 0.6198 GB