Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Annex60.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime") translateModel(Annex60.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.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.007475/0.007475, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001571/0.001572, allocations: 190.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4267/0.4267, allocations: 54.95 MB / 324.8 MB, free: 15.97 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 73.05 kB / 456.2 MB, free: 38.22 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1594, allocations: 59.59 MB / 0.5037 GB, free: 9.781 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Time.Examples.CalendarTime): time 0.002909/0.1624, allocations: 1.436 MB / 0.5051 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008943/0.1633, allocations: 404.8 kB / 0.5055 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.236e-05/0.1633, allocations: 5.312 kB / 0.5055 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.988e-05/0.1634, allocations: 11.86 kB / 0.5055 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.1635, allocations: 21.36 kB / 0.5055 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007083/0.1642, allocations: 246.3 kB / 0.5057 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.1646, allocations: 300.9 kB / 0.506 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.711e-05/0.1647, allocations: 8.922 kB / 0.506 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.1649, allocations: 188.7 kB / 0.5062 GB, free: 7.871 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.1652, allocations: 102 kB / 0.5063 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.569e-05/0.1652, allocations: 17.09 kB / 0.5063 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.8e-05/0.1653, allocations: 17.81 kB / 0.5063 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.987e-05/0.1654, allocations: 64.27 kB / 0.5064 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1655, allocations: 102.5 kB / 0.5065 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.1658, allocations: 228.4 kB / 0.5067 GB, free: 7.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1658, allocations: 0 / 0.5067 GB, free: 7.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1658, allocations: 3.938 kB / 0.5067 GB, free: 7.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.1658, allocations: 1.25 kB / 0.5067 GB, free: 7.535 MB / 382.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.00103/0.1669, allocations: 0.6291 MB / 0.5073 GB, free: 6.922 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1669, allocations: 8.781 kB / 0.5073 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.343e-05/0.167, allocations: 28.47 kB / 0.5074 GB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1673, allocations: 240.8 kB / 0.5076 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.317e-05/0.1673, allocations: 15.17 kB / 0.5076 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.897e-05/0.1674, allocations: 15.5 kB / 0.5076 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.1677, allocations: 144.7 kB / 0.5078 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1677, allocations: 5.547 kB / 0.5078 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.1678, allocations: 3.938 kB / 0.5078 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1678, allocations: 2.75 kB / 0.5078 GB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.1679, allocations: 43.34 kB / 0.5078 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002966/0.1682, allocations: 288.2 kB / 0.5081 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.1685, allocations: 126.9 kB / 0.5082 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1686, allocations: 55.31 kB / 0.5083 GB, free: 6.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.1687, allocations: 10.69 kB / 0.5083 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00042/0.1691, allocations: 201.1 kB / 0.5085 GB, free: 5.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.793e-06/0.1691, allocations: 4 kB / 0.5085 GB, free: 5.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005142/0.1696, allocations: 267.6 kB / 0.5087 GB, free: 5.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1697, allocations: 59.41 kB / 0.5088 GB, free: 5.613 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.1698, allocations: 228 kB / 0.509 GB, free: 5.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.1699, allocations: 41.64 kB / 0.509 GB, free: 5.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.1699, allocations: 93.12 kB / 0.5091 GB, free: 5.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.5e-05/0.17, allocations: 47.38 kB / 0.5092 GB, free: 5.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.1701, allocations: 89.81 kB / 0.5093 GB, free: 5.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.663e-05/0.1702, allocations: 326.8 kB / 0.5096 GB, free: 4.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.1704, allocations: 92.16 kB / 0.5097 GB, free: 4.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.1706, allocations: 138.4 kB / 0.5098 GB, free: 4.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.1708, allocations: 245.2 kB / 0.51 GB, free: 4.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1709, allocations: 0 / 0.51 GB, free: 4.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005517/0.1714, allocations: 392.5 kB / 0.5104 GB, free: 3.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.1715, allocations: 75.58 kB / 0.5105 GB, free: 3.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.1715, allocations: 11.98 kB / 0.5105 GB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1715, allocations: 4 kB / 0.5105 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1717, allocations: 31.86 kB / 0.5105 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1717, allocations: 0 / 0.5105 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.1721, allocations: 63.73 kB / 0.5106 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-05/0.1722, allocations: 43.98 kB / 0.5106 GB, free: 3.609 MB / 382.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: 26 (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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.1723, allocations: 165.7 kB / 0.5108 GB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.1724, allocations: 15.81 kB / 0.5108 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.573e-05/0.1724, allocations: 25.86 kB / 0.5108 GB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1724, allocations: 3.938 kB / 0.5108 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1725, allocations: 0 / 0.5108 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.1725, allocations: 4 kB / 0.5108 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006114/0.1731, allocations: 0.5294 MB / 0.5114 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1731, allocations: 7.922 kB / 0.5114 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.1732, allocations: 12 kB / 0.5114 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1732, allocations: 0 / 0.5114 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.1732, allocations: 15.92 kB / 0.5114 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1732, allocations: 7.984 kB / 0.5114 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1732, allocations: 0 / 0.5114 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.1735, allocations: 313 kB / 0.5117 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.1737, allocations: 140.6 kB / 0.5118 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.1737, allocations: 11.98 kB / 0.5118 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.1739, allocations: 15.98 kB / 0.5119 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.174, allocations: 11.98 kB / 0.5119 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.1741, allocations: 27.98 kB / 0.5119 GB, free: 2.215 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.366e-05/0.1742, allocations: 165.6 kB / 0.512 GB, free: 2.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1742, allocations: 0 / 0.512 GB, free: 2.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.1745, allocations: 44 kB / 0.5121 GB, free: 2.012 MB / 382.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: 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 (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.0001116/0.1746, allocations: 117.2 kB / 0.5122 GB, free: 1.891 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000455/0.175, allocations: 340.9 kB / 0.5125 GB, free: 1.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.175, allocations: 4 kB / 0.5125 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.1752, allocations: 71.75 kB / 0.5126 GB, free: 1.461 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.1755, allocations: 28.59 kB / 0.5126 GB, free: 1.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005279/0.176, allocations: 316.1 kB / 0.5129 GB, free: 1.102 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.1762, allocations: 0.724 MB / 0.5136 GB, free: 356 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.262e-05/0.1763, allocations: 33.08 kB / 0.5137 GB, free: 324 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.015e-05/0.1764, allocations: 27.42 kB / 0.5137 GB, free: 296 kB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1764, allocations: 0 / 0.5137 GB, free: 296 kB / 382.1 MB Notification: Performance of Templates: time 0.007209/0.1836, allocations: 3.72 MB / 0.5173 GB, free: 12.59 MB / 398.1 MB make -j1 -f Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.makefile (rm -f Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.sim & ./Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Utilities.Time.Examples.CalendarTime.pipe 2>&1)