Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.005364/0.005364, allocations: 97.61 kB / 15.73 MB, free: 6.047 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.001259/0.001259, allocations: 193.6 kB / 16.67 MB, free: 5.969 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002073, allocations: 277.6 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9309/0.9309, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 95.84 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1774, allocations: 86.97 MB / 0.7663 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002288/0.1797, allocations: 1.482 MB / 0.7678 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009484/0.1807, allocations: 419.4 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.494e-05/0.1807, allocations: 0 / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.1809, allocations: 7.875 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.181, allocations: 24.22 kB / 0.7682 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000646/0.1816, allocations: 262.8 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003379/0.182, allocations: 323.5 kB / 0.7688 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.725e-05/0.182, allocations: 11.97 kB / 0.7688 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.1823, allocations: 203.6 kB / 0.769 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.1825, allocations: 108.1 kB / 0.7691 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.026e-05/0.1826, allocations: 20 kB / 0.7691 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.457e-05/0.1827, allocations: 20 kB / 0.7691 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1828, allocations: 83.7 kB / 0.7692 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1829, allocations: 123.4 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003339/0.1833, allocations: 306.8 kB / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1833, allocations: 0 / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.683e-06/0.1833, allocations: 0 / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.1833, allocations: 3.938 kB / 0.7696 GB, free: 5.109 MB / 0.5606 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.001056/0.1844, allocations: 0.7462 MB / 0.7704 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1844, allocations: 8.031 kB / 0.7704 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.842e-05/0.1845, allocations: 36.73 kB / 0.7704 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.1848, allocations: 267.8 kB / 0.7707 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.1849, allocations: 16.38 kB / 0.7707 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.1849, allocations: 23.94 kB / 0.7707 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000906/0.1858, allocations: 197.4 kB / 0.7709 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.1859, allocations: 0 / 0.7709 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.1859, allocations: 0 / 0.7709 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1859, allocations: 4 kB / 0.7709 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000693/0.1866, allocations: 99.86 kB / 0.771 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003281/0.1869, allocations: 321.4 kB / 0.7713 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009464/0.1879, allocations: 174.4 kB / 0.7715 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006756/0.1886, allocations: 104.8 kB / 0.7715 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.1886, allocations: 4 kB / 0.7716 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008822/0.1895, allocations: 221.1 kB / 0.7718 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.512e-06/0.1895, allocations: 0 / 0.7718 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.002278/0.1918, allocations: 449.1 kB / 0.7722 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.1918, allocations: 59.39 kB / 0.7722 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/0.1921, allocations: 294.9 kB / 0.7725 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.1922, allocations: 37.7 kB / 0.7726 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.883e-05/0.1922, allocations: 93.11 kB / 0.7727 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.217e-05/0.1923, allocations: 39.75 kB / 0.7727 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.1924, allocations: 97.58 kB / 0.7728 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1925, allocations: 326.8 kB / 0.7731 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.1927, allocations: 75.95 kB / 0.7732 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.193, allocations: 134 kB / 0.7733 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.1933, allocations: 247.4 kB / 0.7735 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1933, allocations: 7.938 kB / 0.7735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005974/0.1939, allocations: 384.8 kB / 0.7739 GB, free: 404 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.503e-05/0.194, allocations: 83.31 kB / 0.774 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.194, allocations: 4 kB / 0.774 GB, free: 304 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.194, allocations: 0 / 0.774 GB, free: 304 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.1942, allocations: 23.98 kB / 0.774 GB, free: 280 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.1942, allocations: 7.938 kB / 0.774 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.1946, allocations: 55.84 kB / 0.7741 GB, free: 216 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.1947, allocations: 48.05 kB / 0.7741 GB, free: 168 kB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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.3181/0.5128, allocations: 172.1 kB / 0.7743 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.282e-05/0.5129, allocations: 23.22 kB / 0.7743 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.422e-05/0.513, allocations: 27.36 kB / 0.7743 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.513, allocations: 2.031 kB / 0.7743 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.5131, allocations: 2.281 kB / 0.7743 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.5131, allocations: 1.266 kB / 0.7743 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.5151, allocations: 0.6909 MB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.5152, allocations: 0 / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-05/0.5152, allocations: 11.92 kB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.5152, allocations: 1.406 kB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.092e-05/0.5153, allocations: 16.42 kB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5153, allocations: 4.594 kB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.5153, allocations: 1.406 kB / 0.775 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.5169, allocations: 447.3 kB / 0.7755 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.5171, allocations: 165 kB / 0.7756 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/0.5172, allocations: 13.12 kB / 0.7756 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.5176, allocations: 34.81 kB / 0.7757 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.5177, allocations: 11.27 kB / 0.7757 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-05/0.5177, allocations: 40.28 kB / 0.7757 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002034/0.518, allocations: 210.7 kB / 0.7759 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.518, allocations: 3.656 kB / 0.7759 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003842/0.5184, allocations: 51.34 kB / 0.776 GB, free: 14.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.0001225/0.5185, allocations: 119.3 kB / 0.7761 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001076/0.5196, allocations: 379 kB / 0.7765 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5196, allocations: 1.594 kB / 0.7765 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007284/0.5203, allocations: 113.8 kB / 0.7766 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.5207, allocations: 24.67 kB / 0.7766 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.522, allocations: 433.5 kB / 0.777 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001845/0.5222, allocations: 0.7397 MB / 0.7777 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.597e-05/0.5222, allocations: 17.08 kB / 0.7777 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.5223, allocations: 16.44 kB / 0.7778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.5223, allocations: 0 / 0.7778 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of Templates: time 0.007069/0.5294, allocations: 3.677 MB / 0.7813 GB, free: 13.2 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)