Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001185/0.001185, allocations: 102.4 kB / 16.35 MB, free: 6.348 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.001132/0.001132, allocations: 194 kB / 17.29 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.773/1.773, allocations: 292.3 MB / 0.5496 GB, free: 17.49 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 75.17 kB / 0.6729 GB, free: 5.863 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2133, allocations: 114.6 MB / 0.7848 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002463/0.2158, allocations: 1.472 MB / 0.7862 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008779/0.2167, allocations: 431.3 kB / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.2168, allocations: 0 / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.982e-05/0.2169, allocations: 11.86 kB / 0.7866 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.954e-05/0.217, allocations: 24.22 kB / 0.7867 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006485/0.2177, allocations: 246.6 kB / 0.7869 GB, free: 1.004 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.218, allocations: 331.4 kB / 0.7872 GB, free: 0.6797 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.027e-05/0.2181, allocations: 8 kB / 0.7872 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.2183, allocations: 191.8 kB / 0.7874 GB, free: 496 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.2186, allocations: 124 kB / 0.7875 GB, free: 372 kB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.2e-05/0.2186, allocations: 16 kB / 0.7875 GB, free: 356 kB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.2187, allocations: 20 kB / 0.7875 GB, free: 336 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.2188, allocations: 83.77 kB / 0.7876 GB, free: 252 kB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.219, allocations: 127.4 kB / 0.7877 GB, free: 124 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.3552/0.5741, allocations: 288.8 kB / 0.788 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.5742, allocations: 0 / 0.788 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.365e-06/0.5742, allocations: 0 / 0.788 GB, free: 47.11 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.19e-05/0.5742, allocations: 0 / 0.788 GB, free: 47.11 MB / 0.6544 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.001041/0.5753, allocations: 0.7411 MB / 0.7887 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.5753, allocations: 11.88 kB / 0.7888 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.5754, allocations: 32.5 kB / 0.7888 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.5757, allocations: 260.5 kB / 0.789 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.5758, allocations: 16.91 kB / 0.7891 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.5758, allocations: 18.28 kB / 0.7891 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008687/0.5767, allocations: 198.2 kB / 0.7893 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.5767, allocations: 2.625 kB / 0.7893 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.5768, allocations: 7.016 kB / 0.7893 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.5768, allocations: 6.656 kB / 0.7893 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006885/0.5775, allocations: 98.64 kB / 0.7894 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002788/0.5778, allocations: 318 kB / 0.7897 GB, free: 46.04 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009132/0.5787, allocations: 168.5 kB / 0.7898 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006659/0.5794, allocations: 111.5 kB / 0.7899 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.5794, allocations: 6.438 kB / 0.7899 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00091/0.5803, allocations: 210.3 kB / 0.7901 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=16): time 1.893e-06/0.5803, allocations: 2.938 kB / 0.7901 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16): time 0.002396/0.5827, allocations: 447.6 kB / 0.7906 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.5828, allocations: 60.98 kB / 0.7906 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.583, allocations: 294.7 kB / 0.7909 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.5831, allocations: 37.62 kB / 0.7909 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.938e-05/0.5831, allocations: 89.77 kB / 0.791 GB, free: 45.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.5831, allocations: 40.06 kB / 0.7911 GB, free: 45.61 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.5833, allocations: 100 kB / 0.7912 GB, free: 45.58 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.277e-05/0.5833, allocations: 326.1 kB / 0.7915 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.5835, allocations: 81.16 kB / 0.7916 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.5837, allocations: 134 kB / 0.7917 GB, free: 45.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.584, allocations: 239.6 kB / 0.7919 GB, free: 45.09 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.584, allocations: 3.625 kB / 0.7919 GB, free: 45.09 MB / 0.6544 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005546/0.5846, allocations: 391.5 kB / 0.7923 GB, free: 44.99 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.12e-05/0.5846, allocations: 74.55 kB / 0.7924 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5846, allocations: 5.219 kB / 0.7924 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.5847, allocations: 3.219 kB / 0.7924 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.5848, allocations: 27.23 kB / 0.7924 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.5849, allocations: 0.5625 kB / 0.7924 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004505/0.5853, allocations: 59.61 kB / 0.7925 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.5854, allocations: 42.78 kB / 0.7925 GB, free: 44.92 MB / 0.6544 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.0001569/0.5855, allocations: 167.7 kB / 0.7927 GB, free: 44.8 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.373e-05/0.5856, allocations: 32.11 kB / 0.7927 GB, free: 44.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.19e-05/0.5856, allocations: 27.89 kB / 0.7927 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.5857, allocations: 0 / 0.7927 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.5857, allocations: 3.438 kB / 0.7927 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5857, allocations: 3.609 kB / 0.7927 GB, free: 44.78 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.5877, allocations: 0.6912 MB / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5877, allocations: 3.375 kB / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.452e-05/0.5877, allocations: 5.938 kB / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.5877, allocations: 0 / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.5878, allocations: 23.5 kB / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.5878, allocations: 3.719 kB / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5878, allocations: 0 / 0.7934 GB, free: 44.47 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.5894, allocations: 454.4 kB / 0.7939 GB, free: 44.32 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.5896, allocations: 157.6 kB / 0.794 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.404e-05/0.5897, allocations: 10.42 kB / 0.794 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004744/0.5902, allocations: 32.42 kB / 0.7941 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.5902, allocations: 10.12 kB / 0.7941 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.509e-05/0.5903, allocations: 44.02 kB / 0.7941 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000177/0.5905, allocations: 214 kB / 0.7943 GB, free: 44.13 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5905, allocations: 0 / 0.7943 GB, free: 44.13 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003222/0.5908, allocations: 43.81 kB / 0.7943 GB, free: 44.13 MB / 0.6544 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.0001513/0.591, allocations: 121.3 kB / 0.7945 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001147/0.5921, allocations: 384.3 kB / 0.7948 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5921, allocations: 0.5 kB / 0.7948 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0007939/0.5929, allocations: 119.2 kB / 0.7949 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.5933, allocations: 41.39 kB / 0.795 GB, free: 43.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.5947, allocations: 410.3 kB / 0.7954 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.5949, allocations: 0.7519 MB / 0.7961 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.431e-05/0.595, allocations: 8.531 kB / 0.7961 GB, free: 43.02 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.35e-05/0.5951, allocations: 17.86 kB / 0.7961 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of SimCode: time 1.192e-06/0.5951, allocations: 4 kB / 0.7961 GB, free: 43.01 MB / 0.6544 GB Notification: Performance of Templates: time 0.007116/0.6022, allocations: 3.652 MB / 0.7997 GB, free: 42.77 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)