Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.005768/0.005768, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001372/0.001372, allocations: 194.9 kB / 16.67 MB, free: 5.973 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8615/0.8615, allocations: 135.1 MB / 425.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 62.84 kB / 0.5856 GB, free: 21.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1704, allocations: 80.92 MB / 0.6646 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002598/0.1731, allocations: 1.479 MB / 0.666 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009315/0.174, allocations: 419.4 kB / 0.6664 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.497e-05/0.1741, allocations: 0 / 0.6664 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.1742, allocations: 15.86 kB / 0.6665 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.1743, allocations: 20.23 kB / 0.6665 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.1751, allocations: 246.5 kB / 0.6667 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.1755, allocations: 311.5 kB / 0.667 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.984e-05/0.1755, allocations: 15.98 kB / 0.667 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.1758, allocations: 195.6 kB / 0.6672 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.176, allocations: 108 kB / 0.6673 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.975e-05/0.1761, allocations: 20 kB / 0.6673 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.1762, allocations: 16 kB / 0.6673 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.1763, allocations: 87.77 kB / 0.6674 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.1764, allocations: 123.3 kB / 0.6675 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.1768, allocations: 283 kB / 0.6678 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1768, allocations: 0 / 0.6678 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1768, allocations: 0 / 0.6678 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.1768, allocations: 0 / 0.6678 GB, free: 2.512 MB / 0.4981 GB 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.001181/0.178, allocations: 0.7037 MB / 0.6685 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.178, allocations: 9.109 kB / 0.6685 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.539e-05/0.1781, allocations: 44.73 kB / 0.6686 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.1784, allocations: 255.8 kB / 0.6688 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.1785, allocations: 20.3 kB / 0.6688 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-05/0.1785, allocations: 19.94 kB / 0.6688 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.1788, allocations: 148.9 kB / 0.669 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.1788, allocations: 0 / 0.669 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.1789, allocations: 0 / 0.669 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.1789, allocations: 0 / 0.669 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.179, allocations: 51.97 kB / 0.669 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003399/0.1794, allocations: 313.4 kB / 0.6693 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.1796, allocations: 134.6 kB / 0.6695 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1798, allocations: 52.84 kB / 0.6695 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.1798, allocations: 4 kB / 0.6695 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.1802, allocations: 221.4 kB / 0.6697 GB, free: 380 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.343e-06/0.1803, allocations: 0 / 0.6697 GB, free: 380 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005631/0.1808, allocations: 275.2 kB / 0.67 GB, free: 100 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.309e-05/0.1809, allocations: 59.39 kB / 0.67 GB, free: 28 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1812, allocations: 294.9 kB / 0.6703 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.317e-05/0.1812, allocations: 41.69 kB / 0.6704 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.568e-05/0.1813, allocations: 89.14 kB / 0.6704 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.1814, allocations: 43.69 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.1815, allocations: 105.8 kB / 0.6706 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1817, allocations: 326.8 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.1819, allocations: 96.17 kB / 0.671 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.1821, allocations: 148.7 kB / 0.6711 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.1824, allocations: 251.2 kB / 0.6714 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1824, allocations: 4 kB / 0.6714 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006527/0.1831, allocations: 410.2 kB / 0.6718 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.288e-05/0.1832, allocations: 75.39 kB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1832, allocations: 0 / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1832, allocations: 4 kB / 0.6718 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.1834, allocations: 27.91 kB / 0.6719 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.1834, allocations: 8.188 kB / 0.6719 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.1839, allocations: 55.91 kB / 0.6719 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.207e-05/0.184, allocations: 51.98 kB / 0.672 GB, free: 13.92 MB / 0.5137 GB 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.0001869/0.1841, allocations: 177.7 kB / 0.6722 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.1842, allocations: 31.75 kB / 0.6722 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/0.1843, allocations: 34.25 kB / 0.6722 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1843, allocations: 4 kB / 0.6722 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1843, allocations: 4 kB / 0.6722 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1843, allocations: 0 / 0.6722 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007808/0.1851, allocations: 0.5567 MB / 0.6728 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1851, allocations: 3.938 kB / 0.6728 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.1851, allocations: 15.98 kB / 0.6728 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.1851, allocations: 0 / 0.6728 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.1852, allocations: 11.98 kB / 0.6728 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1852, allocations: 0 / 0.6728 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1852, allocations: 4 kB / 0.6728 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.1856, allocations: 332.8 kB / 0.6731 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.1858, allocations: 152.9 kB / 0.6733 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.1859, allocations: 8 kB / 0.6733 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.1861, allocations: 15.92 kB / 0.6733 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.1861, allocations: 15.98 kB / 0.6733 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.1862, allocations: 27.98 kB / 0.6733 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001827/0.1864, allocations: 213.9 kB / 0.6735 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1864, allocations: 0 / 0.6735 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000297/0.1867, allocations: 48 kB / 0.6736 GB, free: 12.18 MB / 0.5137 GB 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.0001463/0.1868, allocations: 117.2 kB / 0.6737 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005372/0.1874, allocations: 348.5 kB / 0.674 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1874, allocations: 0 / 0.674 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.1875, allocations: 72.28 kB / 0.6741 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.1879, allocations: 28.86 kB / 0.6741 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007181/0.1886, allocations: 383.1 kB / 0.6745 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.1891, allocations: 0.7474 MB / 0.6752 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001229/0.1892, allocations: 37.42 kB / 0.6753 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.1894, allocations: 35.42 kB / 0.6753 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.1894, allocations: 0 / 0.6753 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of Templates: time 0.008493/0.1979, allocations: 4.103 MB / 0.6793 GB, free: 6.27 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)