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.001014/0.001014, allocations: 106.3 kB / 16.37 MB, free: 6.477 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.001112/0.001112, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 282.1 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8964/0.8964, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 91.38 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1522, allocations: 86.97 MB / 0.6816 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002363/0.1545, allocations: 1.485 MB / 0.683 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008539/0.1554, allocations: 435.3 kB / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.1555, allocations: 3.938 kB / 0.6835 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.73e-05/0.1556, allocations: 11.88 kB / 0.6835 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.1e-05/0.1557, allocations: 20.23 kB / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006203/0.1563, allocations: 246.4 kB / 0.6837 GB, free: 5.289 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.1567, allocations: 319.6 kB / 0.684 GB, free: 4.977 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.1567, allocations: 23.89 kB / 0.6841 GB, free: 4.953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.157, allocations: 191.7 kB / 0.6842 GB, free: 4.766 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.1572, allocations: 117.5 kB / 0.6843 GB, free: 4.652 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.1572, allocations: 20 kB / 0.6844 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.025e-05/0.1573, allocations: 20 kB / 0.6844 GB, free: 4.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.797e-05/0.1574, allocations: 83.77 kB / 0.6845 GB, free: 4.531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1575, allocations: 119.4 kB / 0.6846 GB, free: 4.414 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.1578, allocations: 291 kB / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1578, allocations: 0 / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1578, allocations: 0 / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1579, allocations: 4 kB / 0.6849 GB, free: 4.125 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.0009499/0.1588, allocations: 0.7384 MB / 0.6856 GB, free: 3.301 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.1588, allocations: 15.97 kB / 0.6856 GB, free: 3.285 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.724e-05/0.1589, allocations: 32.64 kB / 0.6856 GB, free: 3.254 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.1592, allocations: 259.6 kB / 0.6859 GB, free: 2.965 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.1593, allocations: 16.36 kB / 0.6859 GB, free: 2.949 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.1594, allocations: 19.94 kB / 0.6859 GB, free: 2.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008418/0.1602, allocations: 204.4 kB / 0.6861 GB, free: 2.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1602, allocations: 7.938 kB / 0.6861 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.1603, allocations: 4 kB / 0.6861 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1603, allocations: 0 / 0.6861 GB, free: 2.715 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000648/0.1609, allocations: 99.86 kB / 0.6862 GB, free: 2.617 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002966/0.1612, allocations: 325.3 kB / 0.6865 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008602/0.1621, allocations: 170.4 kB / 0.6867 GB, free: 2.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006184/0.1627, allocations: 112.8 kB / 0.6868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.1628, allocations: 0 / 0.6868 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007829/0.1635, allocations: 211.2 kB / 0.687 GB, free: 1.742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.433e-06/0.1636, allocations: 4 kB / 0.687 GB, free: 1.738 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002114/0.1657, allocations: 452.9 kB / 0.6874 GB, free: 1.289 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.1657, allocations: 63.39 kB / 0.6875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.166, allocations: 287 kB / 0.6878 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.8e-05/0.166, allocations: 33.7 kB / 0.6878 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.1661, allocations: 97.12 kB / 0.6879 GB, free: 0.793 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/0.1661, allocations: 39.45 kB / 0.6879 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.1663, allocations: 93.48 kB / 0.688 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.1664, allocations: 322.8 kB / 0.6883 GB, free: 340 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.1666, allocations: 87.89 kB / 0.6884 GB, free: 252 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1668, allocations: 129.9 kB / 0.6885 GB, free: 100 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2619/0.4287, allocations: 239.4 kB / 0.6888 GB, free: 18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.4287, allocations: 4.562 kB / 0.6888 GB, free: 18 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007569/0.4295, allocations: 391.2 kB / 0.6891 GB, free: 17.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.756e-05/0.4296, allocations: 74.19 kB / 0.6892 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4296, allocations: 3.281 kB / 0.6892 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4296, allocations: 3.125 kB / 0.6892 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.4298, allocations: 26.2 kB / 0.6892 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4298, allocations: 4.25 kB / 0.6892 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004377/0.4302, allocations: 56.94 kB / 0.6893 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.288e-05/0.4303, allocations: 42.59 kB / 0.6893 GB, free: 17.84 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.0001905/0.4305, allocations: 172.8 kB / 0.6895 GB, free: 17.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.4306, allocations: 27.52 kB / 0.6895 GB, free: 17.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.4306, allocations: 30.88 kB / 0.6896 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4306, allocations: 3.594 kB / 0.6896 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4307, allocations: 1.094 kB / 0.6896 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4307, allocations: 1.078 kB / 0.6896 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.4326, allocations: 0.6909 MB / 0.6902 GB, free: 17.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.4326, allocations: 0.875 kB / 0.6902 GB, free: 17.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.4326, allocations: 7.609 kB / 0.6902 GB, free: 17.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4326, allocations: 0.6562 kB / 0.6902 GB, free: 17.42 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.4327, allocations: 19.64 kB / 0.6903 GB, free: 17.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4327, allocations: 3.938 kB / 0.6903 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4327, allocations: 4.953 kB / 0.6903 GB, free: 17.41 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.4341, allocations: 455.4 kB / 0.6907 GB, free: 17.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.4343, allocations: 160 kB / 0.6909 GB, free: 17.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.96e-05/0.4344, allocations: 13.94 kB / 0.6909 GB, free: 17.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.4348, allocations: 34 kB / 0.6909 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.4349, allocations: 10.19 kB / 0.6909 GB, free: 17.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.4349, allocations: 40.94 kB / 0.691 GB, free: 17.17 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.4351, allocations: 212.9 kB / 0.6912 GB, free: 17.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4351, allocations: 0 / 0.6912 GB, free: 17.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.4354, allocations: 47.16 kB / 0.6912 GB, free: 17.1 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.0001174/0.4356, allocations: 119.6 kB / 0.6913 GB, free: 17.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.4366, allocations: 378.3 kB / 0.6917 GB, free: 16.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4366, allocations: 3.5 kB / 0.6917 GB, free: 16.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.4373, allocations: 116 kB / 0.6918 GB, free: 16.88 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.4376, allocations: 25.17 kB / 0.6918 GB, free: 16.88 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.4387, allocations: 422.2 kB / 0.6922 GB, free: 16.68 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.4389, allocations: 0.7421 MB / 0.6929 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.538e-05/0.439, allocations: 17.03 kB / 0.693 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.439, allocations: 18.5 kB / 0.693 GB, free: 15.98 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.439, allocations: 0 / 0.693 GB, free: 15.98 MB / 494.1 MB Notification: Performance of Templates: time 0.007157/0.4462, allocations: 3.661 MB / 0.6966 GB, free: 15.64 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)