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.0009877/0.0009878, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001316/0.001317, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.004/1.004, allocations: 135.3 MB / 426.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.0004179, allocations: 17.06 kB / 0.507 GB, free: 5.145 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1804, allocations: 82.29 MB / 0.5874 GB, free: 3.023 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001709/0.1821, allocations: 1.176 MB / 0.5885 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009889/0.1831, allocations: 412.5 kB / 0.5889 GB, free: 1.434 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.1832, allocations: 0 / 0.5889 GB, free: 1.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.174e-05/0.1833, allocations: 11.86 kB / 0.5889 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.1834, allocations: 11.94 kB / 0.5889 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007007/0.1842, allocations: 219 kB / 0.5891 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.1845, allocations: 239.5 kB / 0.5894 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.394e-05/0.1846, allocations: 7.984 kB / 0.5894 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004129/0.185, allocations: 223.6 kB / 0.5896 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.1852, allocations: 131.7 kB / 0.5897 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.1853, allocations: 12 kB / 0.5897 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.026e-05/0.1854, allocations: 8 kB / 0.5897 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.1855, allocations: 79.78 kB / 0.5898 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.632e-05/0.1856, allocations: 65.58 kB / 0.5899 GB, free: 456 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.1858, allocations: 211.8 kB / 0.5901 GB, free: 244 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1858, allocations: 0 / 0.5901 GB, free: 244 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1858, allocations: 0 / 0.5901 GB, free: 244 kB / 494.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1858, allocations: 0 / 0.5901 GB, free: 244 kB / 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.001251/0.1871, allocations: 0.6141 MB / 0.5907 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1871, allocations: 8.031 kB / 0.5907 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1873, allocations: 35.7 kB / 0.5907 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.1876, allocations: 250.5 kB / 0.5909 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.1877, allocations: 15.98 kB / 0.591 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.329e-05/0.1878, allocations: 12 kB / 0.591 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.1881, allocations: 157.5 kB / 0.5911 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.1881, allocations: 4 kB / 0.5911 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.964e-05/0.1882, allocations: 7.922 kB / 0.5911 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1882, allocations: 4 kB / 0.5911 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.1884, allocations: 39.98 kB / 0.5912 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/0.1888, allocations: 313.4 kB / 0.5915 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.1891, allocations: 130.6 kB / 0.5916 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.1893, allocations: 64.83 kB / 0.5917 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1893, allocations: 0 / 0.5917 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004844/0.1898, allocations: 220.1 kB / 0.5919 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.1898, allocations: 3.938 kB / 0.5919 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005892/0.1904, allocations: 263.5 kB / 0.5921 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.1905, allocations: 59.41 kB / 0.5922 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.1908, allocations: 290.9 kB / 0.5925 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.584e-05/0.1909, allocations: 41.7 kB / 0.5925 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.742e-05/0.191, allocations: 89.14 kB / 0.5926 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.68e-05/0.1911, allocations: 47.44 kB / 0.5926 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.1912, allocations: 11.98 kB / 0.5926 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.1913, allocations: 326.8 kB / 0.593 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.1916, allocations: 88.19 kB / 0.593 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.1919, allocations: 158.3 kB / 0.5932 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.1921, allocations: 154 kB / 0.5933 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1922, allocations: 0 / 0.5933 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007545/0.1929, allocations: 411.2 kB / 0.5937 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/0.193, allocations: 67.39 kB / 0.5938 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.193, allocations: 7.984 kB / 0.5938 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.1931, allocations: 7.938 kB / 0.5938 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.1932, allocations: 28.11 kB / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.711e-05/0.1933, allocations: 8 kB / 0.5938 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005055/0.1938, allocations: 67.8 kB / 0.5939 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.818e-05/0.1939, allocations: 51.97 kB / 0.594 GB, free: 11.95 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.1941, allocations: 185.7 kB / 0.5941 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.82e-05/0.1942, allocations: 27.62 kB / 0.5942 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.373e-05/0.1943, allocations: 26.25 kB / 0.5942 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1943, allocations: 4 kB / 0.5942 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1943, allocations: 0 / 0.5942 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1943, allocations: 3.984 kB / 0.5942 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00089/0.1952, allocations: 0.5529 MB / 0.5947 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1952, allocations: 0 / 0.5947 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-05/0.1953, allocations: 12 kB / 0.5947 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1953, allocations: 0 / 0.5947 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.296e-05/0.1953, allocations: 19.97 kB / 0.5948 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.1953, allocations: 7.938 kB / 0.5948 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1953, allocations: 0 / 0.5948 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000435/0.1958, allocations: 320.7 kB / 0.5951 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.1959, allocations: 156.7 kB / 0.5952 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.227e-05/0.196, allocations: 11.94 kB / 0.5952 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.1962, allocations: 19.98 kB / 0.5953 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.1963, allocations: 15.97 kB / 0.5953 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.1963, allocations: 31.98 kB / 0.5953 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001866/0.1965, allocations: 205.9 kB / 0.5955 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1965, allocations: 0 / 0.5955 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003209/0.1969, allocations: 48 kB / 0.5955 GB, free: 10.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001584/0.197, allocations: 122.5 kB / 0.5957 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005452/0.1976, allocations: 352.1 kB / 0.596 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1976, allocations: 0 / 0.596 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.1977, allocations: 71.91 kB / 0.5961 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.1981, allocations: 24.86 kB / 0.5961 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008251/0.1989, allocations: 439.3 kB / 0.5965 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.1993, allocations: 0.7452 MB / 0.5972 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001547/0.1995, allocations: 41.38 kB / 0.5973 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.1996, allocations: 39.41 kB / 0.5973 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.1996, allocations: 3.938 kB / 0.5973 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of Templates: time 0.008351/0.208, allocations: 3.916 MB / 0.6011 GB, free: 4.449 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)