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.001081/0.001081, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001048/0.001048, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.257/1.257, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002095, allocations: 290.7 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9065/0.9065, allocations: 169.2 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 102.3 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1558, allocations: 86.96 MB / 0.6816 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002478/0.1583, allocations: 1.483 MB / 0.683 GB, free: 6 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008432/0.1592, allocations: 430.1 kB / 0.6834 GB, free: 5.578 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.275e-05/0.1592, allocations: 4 kB / 0.6835 GB, free: 5.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.406e-05/0.1593, allocations: 15.8 kB / 0.6835 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.34e-05/0.1594, allocations: 20.23 kB / 0.6835 GB, free: 5.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.16, allocations: 247.5 kB / 0.6837 GB, free: 5.297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.1604, allocations: 323.5 kB / 0.684 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.1604, allocations: 11.97 kB / 0.684 GB, free: 4.969 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.1607, allocations: 203.7 kB / 0.6842 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.1609, allocations: 116 kB / 0.6843 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.099e-05/0.1609, allocations: 20 kB / 0.6844 GB, free: 4.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.656e-05/0.161, allocations: 20 kB / 0.6844 GB, free: 4.617 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.582e-05/0.1611, allocations: 79.78 kB / 0.6845 GB, free: 4.539 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1612, allocations: 123.4 kB / 0.6846 GB, free: 4.418 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.1615, allocations: 295 kB / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1615, allocations: 0 / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1615, allocations: 0 / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1615, allocations: 0 / 0.6849 GB, free: 4.129 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.0009781/0.1625, allocations: 0.7423 MB / 0.6856 GB, free: 3.301 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.1626, allocations: 8.031 kB / 0.6856 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.1627, allocations: 32.66 kB / 0.6856 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.163, allocations: 263.5 kB / 0.6859 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/0.163, allocations: 12.38 kB / 0.6859 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.745e-05/0.1631, allocations: 27.92 kB / 0.6859 GB, free: 2.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/0.1639, allocations: 204.4 kB / 0.6861 GB, free: 2.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.164, allocations: 3.938 kB / 0.6861 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.164, allocations: 3.938 kB / 0.6861 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.164, allocations: 4 kB / 0.6861 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006518/0.1646, allocations: 103.9 kB / 0.6862 GB, free: 2.613 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003026/0.165, allocations: 313.4 kB / 0.6865 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008768/0.1658, allocations: 170.4 kB / 0.6867 GB, free: 2.082 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006362/0.1665, allocations: 112.8 kB / 0.6868 GB, free: 1.969 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.1665, allocations: 4 kB / 0.6868 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000808/0.1673, allocations: 211.1 kB / 0.687 GB, free: 1.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.1673, allocations: 0 / 0.687 GB, free: 1.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002106/0.1695, allocations: 451.8 kB / 0.6874 GB, free: 1.301 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1695, allocations: 59.41 kB / 0.6875 GB, free: 1.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.1698, allocations: 295 kB / 0.6878 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.41e-05/0.1698, allocations: 37.69 kB / 0.6878 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.1699, allocations: 85.14 kB / 0.6879 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.17, allocations: 47.44 kB / 0.6879 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.1701, allocations: 93.48 kB / 0.688 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1702, allocations: 326.8 kB / 0.6883 GB, free: 344 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.1704, allocations: 79.89 kB / 0.6884 GB, free: 264 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.1706, allocations: 141.9 kB / 0.6885 GB, free: 100 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2596/0.4302, allocations: 234.6 kB / 0.6888 GB, free: 18.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.4302, allocations: 3.719 kB / 0.6888 GB, free: 18.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006789/0.4309, allocations: 386.9 kB / 0.6891 GB, free: 17.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.725e-05/0.431, allocations: 75.97 kB / 0.6892 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.431, allocations: 1.406 kB / 0.6892 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.431, allocations: 2.688 kB / 0.6892 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.4312, allocations: 26.94 kB / 0.6892 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.4312, allocations: 3.859 kB / 0.6892 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.4316, allocations: 56.73 kB / 0.6893 GB, free: 17.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.781e-05/0.4317, allocations: 39.56 kB / 0.6893 GB, free: 17.89 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.0001874/0.4319, allocations: 175.8 kB / 0.6895 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.432, allocations: 24.83 kB / 0.6895 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.432, allocations: 34.91 kB / 0.6896 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.432, allocations: 1.688 kB / 0.6896 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.432, allocations: 1.906 kB / 0.6896 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.432, allocations: 2.375 kB / 0.6896 GB, free: 17.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001891/0.4339, allocations: 0.6904 MB / 0.6902 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.434, allocations: 0.6562 kB / 0.6902 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.389e-05/0.434, allocations: 5.375 kB / 0.6902 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.434, allocations: 3.031 kB / 0.6902 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.151e-05/0.434, allocations: 19.73 kB / 0.6903 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.4341, allocations: 7.438 kB / 0.6903 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4341, allocations: 1.188 kB / 0.6903 GB, free: 17.46 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.4356, allocations: 453.8 kB / 0.6907 GB, free: 17.33 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.4358, allocations: 161.8 kB / 0.6909 GB, free: 17.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.276e-05/0.4359, allocations: 13.41 kB / 0.6909 GB, free: 17.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/0.4363, allocations: 34.62 kB / 0.6909 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.963e-05/0.4363, allocations: 6.594 kB / 0.6909 GB, free: 17.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.4364, allocations: 48.73 kB / 0.691 GB, free: 17.22 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.4366, allocations: 211.6 kB / 0.6912 GB, free: 17.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4366, allocations: 0 / 0.6912 GB, free: 17.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.4369, allocations: 47.36 kB / 0.6912 GB, free: 17.15 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.0001243/0.437, allocations: 121.8 kB / 0.6913 GB, free: 17.06 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009827/0.438, allocations: 375.5 kB / 0.6917 GB, free: 16.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.438, allocations: 0 / 0.6917 GB, free: 16.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006377/0.4387, allocations: 118 kB / 0.6918 GB, free: 16.93 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.439, allocations: 24.08 kB / 0.6918 GB, free: 16.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.4402, allocations: 428.1 kB / 0.6922 GB, free: 16.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.4404, allocations: 0.742 MB / 0.6929 GB, free: 16.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.099e-05/0.4405, allocations: 13.7 kB / 0.693 GB, free: 16.03 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.4405, allocations: 16.3 kB / 0.693 GB, free: 16.03 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4406, allocations: 1.906 kB / 0.693 GB, free: 16.03 MB / 494.1 MB Notification: Performance of Templates: time 0.007207/0.4478, allocations: 3.659 MB / 0.6966 GB, free: 15.69 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)