Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 191.8 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 239.9 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 282.9 kB / 290.4 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9531/0.9531, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 91.14 kB / 0.5947 GB, free: 28.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1609, allocations: 86.98 MB / 0.6796 GB, free: 1.109 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002645/0.1636, allocations: 1.548 MB / 0.6811 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008461/0.1644, allocations: 425.3 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.1645, allocations: 3.938 kB / 0.6815 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.89e-05/0.1646, allocations: 7.938 kB / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.336e-05/0.1647, allocations: 24.22 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006009/0.1653, allocations: 226.4 kB / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.1657, allocations: 331.9 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.91e-05/0.1657, allocations: 4 kB / 0.6821 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003013/0.166, allocations: 238.3 kB / 0.6823 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1662, allocations: 127.6 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.278e-05/0.1663, allocations: 24 kB / 0.6825 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.104e-05/0.1664, allocations: 20 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1665, allocations: 87.7 kB / 0.6826 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.1666, allocations: 131.4 kB / 0.6827 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002894/0.1669, allocations: 307.2 kB / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1669, allocations: 0 / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1669, allocations: 0 / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1669, allocations: 0 / 0.683 GB, free: 13.65 MB / 494.1 MB 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.001023/0.168, allocations: 0.7383 MB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.168, allocations: 11.97 kB / 0.6837 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.331e-05/0.1681, allocations: 35.62 kB / 0.6838 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000275/0.1684, allocations: 258.3 kB / 0.684 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.088e-05/0.1684, allocations: 12 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.957e-05/0.1685, allocations: 19.98 kB / 0.684 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009572/0.1695, allocations: 197.5 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1695, allocations: 7.938 kB / 0.6842 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.1695, allocations: 7.938 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1696, allocations: 4 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007453/0.1703, allocations: 99.89 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.1706, allocations: 309.4 kB / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.1717, allocations: 178.4 kB / 0.6848 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007311/0.1724, allocations: 104.8 kB / 0.6849 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.1724, allocations: 7.984 kB / 0.6849 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008956/0.1733, allocations: 219.1 kB / 0.6851 GB, free: 11.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.1734, allocations: 0 / 0.6851 GB, free: 11.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002439/0.1758, allocations: 451.3 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.1759, allocations: 55.41 kB / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.1761, allocations: 295 kB / 0.6859 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.1762, allocations: 37.7 kB / 0.6859 GB, free: 10.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.242e-05/0.1762, allocations: 89.14 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.1763, allocations: 43.45 kB / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.1764, allocations: 97.47 kB / 0.6861 GB, free: 10.18 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1766, allocations: 322.8 kB / 0.6864 GB, free: 9.855 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.1768, allocations: 83.89 kB / 0.6865 GB, free: 9.773 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.177, allocations: 155 kB / 0.6867 GB, free: 9.602 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.1773, allocations: 230.8 kB / 0.6869 GB, free: 9.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1773, allocations: 0 / 0.6869 GB, free: 9.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006323/0.1779, allocations: 392.7 kB / 0.6873 GB, free: 8.941 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.703e-05/0.178, allocations: 83.31 kB / 0.6873 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.178, allocations: 0 / 0.6873 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.178, allocations: 4 kB / 0.6874 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.1782, allocations: 15.98 kB / 0.6874 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1782, allocations: 7.938 kB / 0.6874 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.1787, allocations: 71.83 kB / 0.6874 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.083e-05/0.1787, allocations: 43.98 kB / 0.6875 GB, free: 8.707 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.1789, allocations: 170.4 kB / 0.6876 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.429e-05/0.179, allocations: 27.66 kB / 0.6877 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.179, allocations: 30.3 kB / 0.6877 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1791, allocations: 4 kB / 0.6877 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1791, allocations: 0 / 0.6877 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1791, allocations: 0 / 0.6877 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.1812, allocations: 0.6895 MB / 0.6884 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1812, allocations: 4 kB / 0.6884 GB, free: 7.719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.1812, allocations: 7.938 kB / 0.6884 GB, free: 7.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1812, allocations: 0 / 0.6884 GB, free: 7.711 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.1813, allocations: 19.97 kB / 0.6884 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1813, allocations: 0 / 0.6884 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1813, allocations: 0 / 0.6884 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.183, allocations: 452.7 kB / 0.6888 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.1831, allocations: 152.7 kB / 0.689 GB, free: 7.066 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.886e-05/0.1832, allocations: 12 kB / 0.689 GB, free: 7.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.1837, allocations: 31.95 kB / 0.689 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.1837, allocations: 8 kB / 0.689 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.374e-05/0.1838, allocations: 55.89 kB / 0.6891 GB, free: 6.961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000181/0.184, allocations: 209.9 kB / 0.6893 GB, free: 6.762 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.184, allocations: 0 / 0.6893 GB, free: 6.762 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000307/0.1843, allocations: 44 kB / 0.6893 GB, free: 6.719 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 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.1844, allocations: 120.9 kB / 0.6894 GB, free: 6.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.1856, allocations: 382.8 kB / 0.6898 GB, free: 6.191 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1856, allocations: 4 kB / 0.6898 GB, free: 6.188 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007473/0.1864, allocations: 119.8 kB / 0.6899 GB, free: 6.07 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.1867, allocations: 33.66 kB / 0.69 GB, free: 6.043 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.1882, allocations: 0.504 MB / 0.6905 GB, free: 5.516 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.1886, allocations: 0.7396 MB / 0.6912 GB, free: 4.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.835e-05/0.1886, allocations: 9.078 kB / 0.6912 GB, free: 4.742 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.32e-05/0.1887, allocations: 19.42 kB / 0.6912 GB, free: 4.723 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1887, allocations: 4 kB / 0.6912 GB, free: 4.719 MB / 494.1 MB Notification: Performance of Templates: time 0.007999/0.1967, allocations: 3.755 MB / 0.6949 GB, free: 0.9727 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)