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.001444/0.001444, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001076/0.001076, allocations: 190.3 kB / 16.25 MB, free: 6.621 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.417/1.417, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9874/0.9874, allocations: 135.1 MB / 425.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 64.8 kB / 0.5048 GB, free: 5.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1729, allocations: 80.93 MB / 0.5839 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002665/0.1756, allocations: 1.523 MB / 0.5854 GB, free: 3.363 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000876/0.1765, allocations: 419.4 kB / 0.5858 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.381e-05/0.1766, allocations: 0 / 0.5858 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.1767, allocations: 7.922 kB / 0.5858 GB, free: 2.941 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.1769, allocations: 20.23 kB / 0.5858 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006851/0.1776, allocations: 224.3 kB / 0.586 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.1779, allocations: 319.9 kB / 0.5863 GB, free: 2.395 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.3e-05/0.178, allocations: 11.98 kB / 0.5863 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003323/0.1783, allocations: 230.3 kB / 0.5865 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1786, allocations: 131.6 kB / 0.5867 GB, free: 2.031 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.1786, allocations: 20 kB / 0.5867 GB, free: 2.012 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.305e-05/0.1787, allocations: 20 kB / 0.5867 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1788, allocations: 75.78 kB / 0.5868 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.179, allocations: 131.3 kB / 0.5869 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.1793, allocations: 283.4 kB / 0.5872 GB, free: 1.512 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1793, allocations: 0 / 0.5872 GB, free: 1.512 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1793, allocations: 0 / 0.5872 GB, free: 1.512 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1793, allocations: 0 / 0.5872 GB, free: 1.512 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.001259/0.1806, allocations: 0.7075 MB / 0.5879 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1806, allocations: 12.03 kB / 0.5879 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.1807, allocations: 31.7 kB / 0.5879 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.181, allocations: 262.2 kB / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.1811, allocations: 15.98 kB / 0.5882 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.524e-05/0.1811, allocations: 16 kB / 0.5882 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.1814, allocations: 141.5 kB / 0.5883 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.1814, allocations: 3.938 kB / 0.5883 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.1815, allocations: 8 kB / 0.5883 GB, free: 208 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1815, allocations: 0 / 0.5883 GB, free: 208 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.1816, allocations: 51.91 kB / 0.5884 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003243/0.1819, allocations: 305.4 kB / 0.5887 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.1822, allocations: 126.7 kB / 0.5888 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.1823, allocations: 56.83 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.1824, allocations: 8 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004533/0.1828, allocations: 228.3 kB / 0.5891 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.1829, allocations: 4 kB / 0.5891 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.000592/0.1834, allocations: 271.2 kB / 0.5893 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.1835, allocations: 63.34 kB / 0.5894 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.1838, allocations: 290.9 kB / 0.5897 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.676e-05/0.1839, allocations: 41.69 kB / 0.5897 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.451e-05/0.1839, allocations: 89.14 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.184, allocations: 43.45 kB / 0.5898 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.1842, allocations: 105.7 kB / 0.5899 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1843, allocations: 334.8 kB / 0.5903 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.1845, allocations: 92.17 kB / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.1848, allocations: 150.4 kB / 0.5905 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003472/0.1852, allocations: 242.4 kB / 0.5907 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1852, allocations: 0 / 0.5907 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006818/0.1859, allocations: 413.3 kB / 0.5911 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.412e-05/0.1859, allocations: 75.56 kB / 0.5912 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1859, allocations: 4 kB / 0.5912 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.186, allocations: 7.938 kB / 0.5912 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.1861, allocations: 27.92 kB / 0.5912 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1862, allocations: 7.984 kB / 0.5912 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.1867, allocations: 59.8 kB / 0.5913 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-05/0.1868, allocations: 51.98 kB / 0.5913 GB, free: 12.91 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.0001931/0.187, allocations: 181.7 kB / 0.5915 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.187, allocations: 27.7 kB / 0.5915 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.963e-05/0.1871, allocations: 22.27 kB / 0.5916 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.1871, allocations: 11.92 kB / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1871, allocations: 0 / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1871, allocations: 0 / 0.5916 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008083/0.1879, allocations: 0.5664 MB / 0.5921 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.188, allocations: 4 kB / 0.5921 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.188, allocations: 11.98 kB / 0.5921 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.188, allocations: 0 / 0.5921 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.188, allocations: 15.98 kB / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1881, allocations: 0 / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1881, allocations: 0 / 0.5922 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004326/0.1885, allocations: 323 kB / 0.5925 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.1887, allocations: 156.6 kB / 0.5926 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.896e-05/0.1887, allocations: 19.98 kB / 0.5926 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.189, allocations: 11.98 kB / 0.5926 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.7e-05/0.189, allocations: 15.98 kB / 0.5927 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.1891, allocations: 27.98 kB / 0.5927 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001833/0.1893, allocations: 209.9 kB / 0.5929 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1893, allocations: 0 / 0.5929 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003132/0.1896, allocations: 48 kB / 0.5929 GB, free: 11.18 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.0001574/0.1898, allocations: 114.6 kB / 0.593 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005837/0.1904, allocations: 352 kB / 0.5934 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1904, allocations: 0 / 0.5934 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.1905, allocations: 71.91 kB / 0.5934 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003509/0.1909, allocations: 35.61 kB / 0.5935 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007469/0.1916, allocations: 471.6 kB / 0.5939 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.192, allocations: 0.7449 MB / 0.5947 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001438/0.1921, allocations: 37.42 kB / 0.5947 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.1923, allocations: 43.42 kB / 0.5947 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1923, allocations: 0 / 0.5947 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of Templates: time 0.007671/0.2, allocations: 4.161 MB / 0.5988 GB, free: 5.141 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)