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.001138/0.001138, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 196 kB / 16.53 MB, free: 6.664 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9603/0.9603, allocations: 135.1 MB / 425.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 72.22 kB / 0.5053 GB, free: 5.359 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1726, allocations: 80.93 MB / 0.5844 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002812/0.1754, allocations: 1.468 MB / 0.5858 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009818/0.1764, allocations: 423.4 kB / 0.5862 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.803e-05/0.1765, allocations: 0 / 0.5862 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1767, allocations: 11.86 kB / 0.5862 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1768, allocations: 24.23 kB / 0.5862 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007521/0.1775, allocations: 235.5 kB / 0.5865 GB, free: 2.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003493/0.1779, allocations: 315.5 kB / 0.5868 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.527e-05/0.178, allocations: 15.97 kB / 0.5868 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/0.1783, allocations: 183.7 kB / 0.5869 GB, free: 1.922 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.1785, allocations: 104 kB / 0.587 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.236e-05/0.1786, allocations: 20 kB / 0.5871 GB, free: 1.801 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.514e-05/0.1787, allocations: 20 kB / 0.5871 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.99e-05/0.1788, allocations: 83.77 kB / 0.5872 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.1789, allocations: 119.4 kB / 0.5873 GB, free: 1.582 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.1792, allocations: 291.3 kB / 0.5876 GB, free: 1.297 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1792, allocations: 3.984 kB / 0.5876 GB, free: 1.293 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1793, allocations: 0 / 0.5876 GB, free: 1.293 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.1793, allocations: 0 / 0.5876 GB, free: 1.293 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.00121/0.1805, allocations: 0.6882 MB / 0.5882 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1805, allocations: 12.03 kB / 0.5882 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1806, allocations: 36.64 kB / 0.5883 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.181, allocations: 263.5 kB / 0.5885 GB, free: 192 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.181, allocations: 12.36 kB / 0.5885 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.1811, allocations: 19.94 kB / 0.5886 GB, free: 160 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002816/0.1814, allocations: 144.8 kB / 0.5887 GB, free: 12 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1814, allocations: 0 / 0.5887 GB, free: 12 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.1814, allocations: 7.984 kB / 0.5887 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1814, allocations: 4 kB / 0.5887 GB, free: 0 / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001551/0.1816, allocations: 44.12 kB / 0.5888 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003345/0.1819, allocations: 313.4 kB / 0.5891 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.1823, allocations: 134.6 kB / 0.5892 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.1824, allocations: 56.83 kB / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1824, allocations: 4 kB / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/0.1829, allocations: 224 kB / 0.5895 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.1829, allocations: 3.938 kB / 0.5895 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005781/0.1835, allocations: 263.2 kB / 0.5897 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.1835, allocations: 63.41 kB / 0.5898 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.1838, allocations: 298.9 kB / 0.5901 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.943e-05/0.1839, allocations: 37.64 kB / 0.5901 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.493e-05/0.1839, allocations: 93.14 kB / 0.5902 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.976e-05/0.184, allocations: 43.3 kB / 0.5902 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.1842, allocations: 105.7 kB / 0.5903 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1843, allocations: 326.8 kB / 0.5906 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.1846, allocations: 96.11 kB / 0.5907 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.1849, allocations: 151.7 kB / 0.5909 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.1852, allocations: 247.1 kB / 0.5911 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1853, allocations: 0 / 0.5911 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000711/0.186, allocations: 414 kB / 0.5915 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-05/0.1861, allocations: 79.38 kB / 0.5916 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.1861, allocations: 4 kB / 0.5916 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1861, allocations: 8 kB / 0.5916 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1863, allocations: 28.09 kB / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1863, allocations: 8 kB / 0.5916 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005472/0.1869, allocations: 63.73 kB / 0.5917 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.187, allocations: 51.98 kB / 0.5917 GB, free: 12.7 MB / 0.4981 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.0002165/0.1872, allocations: 169.7 kB / 0.5919 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.1873, allocations: 31.64 kB / 0.5919 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.1874, allocations: 38.25 kB / 0.592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1874, allocations: 0 / 0.592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1874, allocations: 4 kB / 0.592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1874, allocations: 0 / 0.592 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008858/0.1883, allocations: 0.5585 MB / 0.5925 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1883, allocations: 0 / 0.5925 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.927e-05/0.1884, allocations: 11.98 kB / 0.5925 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1884, allocations: 0 / 0.5925 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/0.1884, allocations: 11.98 kB / 0.5925 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1884, allocations: 4 kB / 0.5925 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1884, allocations: 0 / 0.5925 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.1889, allocations: 319 kB / 0.5928 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001791/0.1891, allocations: 160.6 kB / 0.593 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/0.1892, allocations: 11.98 kB / 0.593 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.1894, allocations: 11.98 kB / 0.593 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.1895, allocations: 19.92 kB / 0.593 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.1895, allocations: 31.98 kB / 0.5931 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002029/0.1897, allocations: 213.9 kB / 0.5933 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1897, allocations: 0 / 0.5933 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003543/0.1901, allocations: 48 kB / 0.5933 GB, free: 10.98 MB / 0.4981 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.0001703/0.1903, allocations: 121.2 kB / 0.5934 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006377/0.1909, allocations: 347.8 kB / 0.5938 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.1909, allocations: 8.312 kB / 0.5938 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.1911, allocations: 79.88 kB / 0.5938 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.1915, allocations: 25.36 kB / 0.5939 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007124/0.1922, allocations: 396 kB / 0.5942 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.1926, allocations: 0.7357 MB / 0.595 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001419/0.1928, allocations: 37.42 kB / 0.595 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1929, allocations: 39.42 kB / 0.595 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1929, allocations: 0 / 0.595 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of Templates: time 0.00862/0.2015, allocations: 4.107 MB / 0.599 GB, free: 5.07 MB / 0.4981 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)