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.001074/0.001074, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001265/0.001265, allocations: 194.8 kB / 16.14 MB, free: 6.707 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 291 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9367/0.9367, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 87.17 kB / 0.5945 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1587, allocations: 86.98 MB / 0.6794 GB, free: 1.223 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002825/0.1616, allocations: 1.547 MB / 0.6809 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1628, allocations: 457.8 kB / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.706e-05/0.1628, allocations: 0 / 0.6814 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.163, allocations: 3.938 kB / 0.6814 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.1631, allocations: 24.17 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006743/0.1638, allocations: 234.4 kB / 0.6816 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.1641, allocations: 292 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.935e-05/0.1642, allocations: 19.95 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.1644, allocations: 222.3 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.1647, allocations: 123.6 kB / 0.6822 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.1647, allocations: 8 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.1648, allocations: 15.94 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1649, allocations: 75.77 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1651, allocations: 123.4 kB / 0.6825 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.1654, allocations: 295.3 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1654, allocations: 0 / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1654, allocations: 4 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1655, allocations: 0 / 0.6827 GB, free: 13.82 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.001123/0.1666, allocations: 0.7383 MB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1666, allocations: 12.03 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1667, allocations: 31.62 kB / 0.6835 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1671, allocations: 262.3 kB / 0.6838 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.1671, allocations: 12 kB / 0.6838 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.675e-05/0.1672, allocations: 19.98 kB / 0.6838 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.1683, allocations: 205.4 kB / 0.684 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1683, allocations: 7.875 kB / 0.684 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.081e-05/0.1684, allocations: 8 kB / 0.684 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1684, allocations: 0 / 0.684 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007999/0.1692, allocations: 95.91 kB / 0.6841 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003768/0.1696, allocations: 313.4 kB / 0.6844 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.1707, allocations: 174.5 kB / 0.6846 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007602/0.1715, allocations: 108.8 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.1715, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009822/0.1725, allocations: 221.6 kB / 0.6849 GB, free: 11.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.1725, allocations: 0 / 0.6849 GB, free: 11.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002547/0.175, allocations: 445 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.1751, allocations: 67.39 kB / 0.6854 GB, free: 10.92 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.1754, allocations: 291 kB / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.1755, allocations: 33.7 kB / 0.6857 GB, free: 10.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.501e-05/0.1756, allocations: 93.14 kB / 0.6858 GB, free: 10.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.1756, allocations: 39.45 kB / 0.6858 GB, free: 10.46 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.1758, allocations: 101.5 kB / 0.6859 GB, free: 10.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1759, allocations: 314.8 kB / 0.6862 GB, free: 10.04 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.1762, allocations: 99.81 kB / 0.6863 GB, free: 9.938 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.1764, allocations: 135.1 kB / 0.6864 GB, free: 9.785 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.1767, allocations: 234.9 kB / 0.6866 GB, free: 9.523 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1767, allocations: 4 kB / 0.6866 GB, free: 9.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006338/0.1774, allocations: 392.7 kB / 0.687 GB, free: 9.117 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.728e-05/0.1775, allocations: 83.31 kB / 0.6871 GB, free: 9.023 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1775, allocations: 4.188 kB / 0.6871 GB, free: 9.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1775, allocations: 4 kB / 0.6871 GB, free: 9.016 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.1777, allocations: 23.92 kB / 0.6871 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.1777, allocations: 0 / 0.6871 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.1781, allocations: 59.7 kB / 0.6872 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.318e-05/0.1782, allocations: 43.98 kB / 0.6872 GB, free: 8.891 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.0002005/0.1784, allocations: 182.4 kB / 0.6874 GB, free: 8.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.1785, allocations: 27.64 kB / 0.6874 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.226e-05/0.1785, allocations: 30.3 kB / 0.6875 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1785, allocations: 0 / 0.6875 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1786, allocations: 4 kB / 0.6875 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1786, allocations: 0 / 0.6875 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/0.1806, allocations: 0.6951 MB / 0.6881 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1806, allocations: 3.938 kB / 0.6881 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.1807, allocations: 4 kB / 0.6881 GB, free: 7.883 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1807, allocations: 0 / 0.6881 GB, free: 7.883 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.559e-05/0.1807, allocations: 19.97 kB / 0.6882 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.1807, allocations: 0 / 0.6882 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1807, allocations: 4 kB / 0.6882 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.1824, allocations: 450.8 kB / 0.6886 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.1826, allocations: 152.7 kB / 0.6887 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.871e-05/0.1827, allocations: 16 kB / 0.6888 GB, free: 7.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004634/0.1832, allocations: 31.95 kB / 0.6888 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.1832, allocations: 7.938 kB / 0.6888 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.1833, allocations: 47.97 kB / 0.6888 GB, free: 7.133 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.1835, allocations: 209.9 kB / 0.689 GB, free: 6.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1835, allocations: 0 / 0.689 GB, free: 6.934 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003044/0.1838, allocations: 48 kB / 0.6891 GB, free: 6.887 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.0001535/0.1839, allocations: 117 kB / 0.6892 GB, free: 6.762 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.1851, allocations: 380.3 kB / 0.6896 GB, free: 6.367 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1851, allocations: 4 kB / 0.6896 GB, free: 6.363 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007693/0.1859, allocations: 112.3 kB / 0.6897 GB, free: 6.254 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.1862, allocations: 29.88 kB / 0.6897 GB, free: 6.227 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.1875, allocations: 0.5003 MB / 0.6902 GB, free: 5.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.1879, allocations: 0.736 MB / 0.6909 GB, free: 4.941 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.804e-05/0.1879, allocations: 17.08 kB / 0.6909 GB, free: 4.926 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.006e-05/0.188, allocations: 19.38 kB / 0.6909 GB, free: 4.906 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.188, allocations: 0 / 0.6909 GB, free: 4.906 MB / 494.1 MB Notification: Performance of Templates: time 0.006609/0.1946, allocations: 3.642 MB / 0.6945 GB, free: 1.273 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)