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.001502/0.001503, 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.001532/0.001532, allocations: 195.3 kB / 16.26 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.373/1.373, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9395/0.9395, allocations: 135.6 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 63.64 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1705, allocations: 81.03 MB / 0.5845 GB, free: 4.34 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002861/0.1734, allocations: 1.525 MB / 0.586 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009621/0.1744, allocations: 427.3 kB / 0.5864 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.819e-05/0.1745, allocations: 0 / 0.5864 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.798e-05/0.1746, allocations: 3.938 kB / 0.5864 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.168e-05/0.1747, allocations: 20.28 kB / 0.5864 GB, free: 2.355 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.1753, allocations: 223.5 kB / 0.5866 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003633/0.1757, allocations: 315.9 kB / 0.5869 GB, free: 1.832 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.181e-05/0.1757, allocations: 11.98 kB / 0.5869 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.176, allocations: 234.3 kB / 0.5872 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.1762, allocations: 119.6 kB / 0.5873 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.297e-05/0.1763, allocations: 20 kB / 0.5873 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.238e-05/0.1764, allocations: 16 kB / 0.5873 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1765, allocations: 87.7 kB / 0.5874 GB, free: 1.355 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.1766, allocations: 127.4 kB / 0.5875 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.177, allocations: 291.3 kB / 0.5878 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.177, allocations: 0 / 0.5878 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.177, allocations: 0 / 0.5878 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.177, allocations: 0 / 0.5878 GB, free: 0.9453 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.001227/0.1782, allocations: 0.7075 MB / 0.5885 GB, free: 168 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1783, allocations: 8.031 kB / 0.5885 GB, free: 160 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.159e-05/0.1784, allocations: 31.72 kB / 0.5885 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.1787, allocations: 254.3 kB / 0.5888 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.196e-05/0.1787, allocations: 12 kB / 0.5888 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.1788, allocations: 23.97 kB / 0.5888 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.1791, allocations: 145.5 kB / 0.5889 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1791, allocations: 11.88 kB / 0.589 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.1792, allocations: 8 kB / 0.589 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.1792, allocations: 0 / 0.589 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.1793, allocations: 51.91 kB / 0.589 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003948/0.1797, allocations: 305.3 kB / 0.5893 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.18, allocations: 130.6 kB / 0.5894 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.1802, allocations: 56.84 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.1802, allocations: 4 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005166/0.1807, allocations: 226.5 kB / 0.5897 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.623e-06/0.1808, allocations: 4 kB / 0.5897 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006566/0.1814, allocations: 273.1 kB / 0.59 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.1815, allocations: 67.3 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.1818, allocations: 287 kB / 0.5903 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.1819, allocations: 37.69 kB / 0.5903 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.363e-05/0.182, allocations: 93.14 kB / 0.5904 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.637e-05/0.182, allocations: 39.45 kB / 0.5905 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.1822, allocations: 105.7 kB / 0.5906 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.1824, allocations: 330.8 kB / 0.5909 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.1826, allocations: 96.16 kB / 0.591 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.1829, allocations: 142.4 kB / 0.5911 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/0.1833, allocations: 246.3 kB / 0.5913 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1833, allocations: 0 / 0.5913 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007404/0.184, allocations: 421.5 kB / 0.5917 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.217e-05/0.1841, allocations: 79.39 kB / 0.5918 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1841, allocations: 3.984 kB / 0.5918 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1842, allocations: 7.938 kB / 0.5918 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.1843, allocations: 23.92 kB / 0.5919 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1844, allocations: 4 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.1849, allocations: 59.8 kB / 0.5919 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.369e-05/0.185, allocations: 59.97 kB / 0.592 GB, free: 12.34 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.0002203/0.1852, allocations: 169.8 kB / 0.5921 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.1853, allocations: 23.72 kB / 0.5922 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.1853, allocations: 26.25 kB / 0.5922 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1853, allocations: 7.938 kB / 0.5922 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1853, allocations: 0 / 0.5922 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.1853, allocations: 3.984 kB / 0.5922 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008816/0.1862, allocations: 0.5626 MB / 0.5927 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1862, allocations: 0 / 0.5927 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.625e-05/0.1863, allocations: 12 kB / 0.5928 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.1863, allocations: 7.922 kB / 0.5928 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1863, allocations: 15.97 kB / 0.5928 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1864, allocations: 0 / 0.5928 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.1864, allocations: 0 / 0.5928 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.1868, allocations: 326.9 kB / 0.5931 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.187, allocations: 164.6 kB / 0.5932 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.1871, allocations: 12 kB / 0.5933 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.1873, allocations: 11.98 kB / 0.5933 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.1873, allocations: 19.97 kB / 0.5933 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.1874, allocations: 27.98 kB / 0.5933 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002081/0.1876, allocations: 209.9 kB / 0.5935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1876, allocations: 0 / 0.5935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003117/0.1879, allocations: 52 kB / 0.5936 GB, free: 10.61 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.000145/0.1881, allocations: 117.7 kB / 0.5937 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000596/0.1887, allocations: 349.3 kB / 0.594 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1887, allocations: 0 / 0.594 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.1888, allocations: 71.91 kB / 0.5941 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1892, allocations: 29.17 kB / 0.5941 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007258/0.1899, allocations: 472 kB / 0.5946 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.1903, allocations: 0.7411 MB / 0.5953 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.1904, allocations: 37.42 kB / 0.5953 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.1906, allocations: 39.42 kB / 0.5954 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1906, allocations: 4 kB / 0.5954 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of Templates: time 0.007872/0.1984, allocations: 4.166 MB / 0.5994 GB, free: 4.57 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)