Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.005987/0.005987, allocations: 97.03 kB / 15.73 MB, free: 6.004 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.001182/0.001183, allocations: 194.5 kB / 16.67 MB, free: 5.934 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7987/0.7987, allocations: 132.2 MB / 422.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001375, allocations: 63.2 kB / 0.5813 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1754, allocations: 80.19 MB / 0.6596 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002831/0.1783, allocations: 1.479 MB / 0.6611 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009906/0.1793, allocations: 429.4 kB / 0.6615 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.1794, allocations: 4 kB / 0.6615 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.871e-05/0.1795, allocations: 11.88 kB / 0.6615 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1796, allocations: 24.23 kB / 0.6615 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007564/0.1804, allocations: 246.2 kB / 0.6618 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.1808, allocations: 311.5 kB / 0.6621 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.437e-05/0.1809, allocations: 4 kB / 0.6621 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.1812, allocations: 191.7 kB / 0.6622 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.1815, allocations: 112.1 kB / 0.6624 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.127e-05/0.1815, allocations: 16 kB / 0.6624 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.068e-05/0.1816, allocations: 20 kB / 0.6624 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.1817, allocations: 75.78 kB / 0.6625 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1819, allocations: 127.3 kB / 0.6626 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000338/0.1822, allocations: 286.9 kB / 0.6629 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1822, allocations: 0 / 0.6629 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1822, allocations: 0 / 0.6629 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.1823, allocations: 0 / 0.6629 GB, free: 10.26 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.00115/0.1834, allocations: 0.7076 MB / 0.6635 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1835, allocations: 8.031 kB / 0.6636 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.1836, allocations: 36.8 kB / 0.6636 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.1839, allocations: 267.8 kB / 0.6638 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1839, allocations: 20.31 kB / 0.6639 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.121e-05/0.184, allocations: 19.92 kB / 0.6639 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.1842, allocations: 145.5 kB / 0.664 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1843, allocations: 0 / 0.664 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.1843, allocations: 0 / 0.664 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1843, allocations: 8 kB / 0.664 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.1844, allocations: 47.97 kB / 0.6641 GB, free: 8.891 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003053/0.1847, allocations: 305.4 kB / 0.6644 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.185, allocations: 141.1 kB / 0.6645 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.1852, allocations: 52.83 kB / 0.6645 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1852, allocations: 8 kB / 0.6646 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004197/0.1856, allocations: 219.6 kB / 0.6648 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.432e-06/0.1856, allocations: 0 / 0.6648 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005503/0.1862, allocations: 271.5 kB / 0.665 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.1862, allocations: 63.39 kB / 0.6651 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.1865, allocations: 286.9 kB / 0.6654 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.1866, allocations: 37.7 kB / 0.6654 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.02e-05/0.1866, allocations: 93.12 kB / 0.6655 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.1867, allocations: 47.67 kB / 0.6655 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.1868, allocations: 113.7 kB / 0.6656 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.187, allocations: 322.8 kB / 0.6659 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.1872, allocations: 100.2 kB / 0.666 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.1874, allocations: 142.4 kB / 0.6662 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.1878, allocations: 243.5 kB / 0.6664 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1878, allocations: 0 / 0.6664 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006812/0.1885, allocations: 415.6 kB / 0.6668 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.16e-05/0.1885, allocations: 75.39 kB / 0.6669 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.1885, allocations: 4.188 kB / 0.6669 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1886, allocations: 4 kB / 0.6669 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.1888, allocations: 27.91 kB / 0.6669 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1888, allocations: 4 kB / 0.6669 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.1892, allocations: 55.91 kB / 0.667 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-05/0.1893, allocations: 55.98 kB / 0.667 GB, free: 5.656 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.0001898/0.1895, allocations: 173.7 kB / 0.6672 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.1896, allocations: 35.73 kB / 0.6672 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.213e-05/0.1896, allocations: 26.25 kB / 0.6672 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1896, allocations: 4 kB / 0.6673 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1897, allocations: 0 / 0.6673 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.1897, allocations: 0 / 0.6673 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008016/0.1905, allocations: 0.5668 MB / 0.6678 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1905, allocations: 7.938 kB / 0.6678 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.596e-05/0.1905, allocations: 11.98 kB / 0.6678 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1905, allocations: 4 kB / 0.6678 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.1906, allocations: 11.98 kB / 0.6678 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1906, allocations: 0 / 0.6678 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1906, allocations: 0 / 0.6678 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004193/0.191, allocations: 323.1 kB / 0.6681 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.1912, allocations: 156.9 kB / 0.6683 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/0.1913, allocations: 11.98 kB / 0.6683 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.1915, allocations: 11.92 kB / 0.6683 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.1915, allocations: 19.98 kB / 0.6683 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.814e-05/0.1916, allocations: 27.98 kB / 0.6684 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001898/0.1918, allocations: 209.9 kB / 0.6686 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.1918, allocations: 0 / 0.6686 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003047/0.1921, allocations: 52 kB / 0.6686 GB, free: 3.934 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.0001349/0.1922, allocations: 114.3 kB / 0.6687 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005269/0.1928, allocations: 348.8 kB / 0.6691 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1928, allocations: 4.062 kB / 0.6691 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.1929, allocations: 71.91 kB / 0.6691 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.1933, allocations: 30.55 kB / 0.6692 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000671/0.1939, allocations: 387.1 kB / 0.6695 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.1943, allocations: 0.7474 MB / 0.6703 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001149/0.1944, allocations: 37.42 kB / 0.6703 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1945, allocations: 31.42 kB / 0.6703 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.1945, allocations: 0 / 0.6703 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of Templates: time 0.007907/0.2024, allocations: 4.096 MB / 0.6743 GB, free: 14.05 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)