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.0009387/0.0009386, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008367/0.0008367, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.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.928/1.928, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005196/0.0005196, allocations: 9.219 kB / 0.6737 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2671, allocations: 116.3 MB / 0.7873 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002185/0.2694, allocations: 1.194 MB / 0.7884 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.2706, allocations: 424.2 kB / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.875e-05/0.2707, allocations: 0 / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.2709, allocations: 3.938 kB / 0.7888 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.271, allocations: 19.92 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.2717, allocations: 211.6 kB / 0.7891 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002933/0.272, allocations: 251.5 kB / 0.7893 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.117e-05/0.2721, allocations: 8 kB / 0.7893 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.2725, allocations: 227.6 kB / 0.7895 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002441/0.2728, allocations: 135.7 kB / 0.7897 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.838e-05/0.2728, allocations: 12 kB / 0.7897 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 4.326e-05/0.2729, allocations: 8 kB / 0.7897 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.273, allocations: 83.77 kB / 0.7898 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.434e-05/0.2731, allocations: 69.58 kB / 0.7898 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.2733, allocations: 207.8 kB / 0.79 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.2733, allocations: 4 kB / 0.79 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2733, allocations: 0 / 0.79 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.2733, allocations: 0 / 0.79 GB, free: 9.117 MB / 0.6075 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.0009963/0.2743, allocations: 0.6642 MB / 0.7907 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.2744, allocations: 8.031 kB / 0.7907 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.903e-05/0.2745, allocations: 31.72 kB / 0.7907 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.2748, allocations: 254.4 kB / 0.791 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.2748, allocations: 19.98 kB / 0.791 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.2749, allocations: 15.98 kB / 0.791 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008449/0.2758, allocations: 216.5 kB / 0.7912 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.2758, allocations: 0 / 0.7912 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.2758, allocations: 4 kB / 0.7912 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.2758, allocations: 4 kB / 0.7912 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006501/0.2765, allocations: 111.8 kB / 0.7913 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003719/0.2769, allocations: 317.3 kB / 0.7916 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008959/0.2778, allocations: 190.5 kB / 0.7918 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006347/0.2784, allocations: 116.8 kB / 0.7919 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.2784, allocations: 4 kB / 0.7919 GB, free: 7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008343/0.2793, allocations: 223.1 kB / 0.7921 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 3.416e-06/0.2793, allocations: 0 / 0.7921 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.002225/0.2815, allocations: 483.4 kB / 0.7926 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.2816, allocations: 55.41 kB / 0.7926 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.2819, allocations: 294.9 kB / 0.7929 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.2819, allocations: 41.64 kB / 0.793 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.456e-05/0.282, allocations: 93.14 kB / 0.7931 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.64e-05/0.2821, allocations: 39.53 kB / 0.7931 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.2821, allocations: 8 kB / 0.7931 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2823, allocations: 330.8 kB / 0.7934 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.2825, allocations: 83.94 kB / 0.7935 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.2827, allocations: 137.8 kB / 0.7936 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.2829, allocations: 151.4 kB / 0.7938 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.283, allocations: 0 / 0.7938 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006613/0.2836, allocations: 388.8 kB / 0.7941 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 8.528e-05/0.2837, allocations: 79.41 kB / 0.7942 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2837, allocations: 0 / 0.7942 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.2838, allocations: 4 kB / 0.7942 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.284, allocations: 23.92 kB / 0.7942 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.284, allocations: 4 kB / 0.7942 GB, free: 4.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000458/0.2845, allocations: 59.86 kB / 0.7943 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/0.2845, allocations: 43.98 kB / 0.7943 GB, free: 4.383 MB / 0.6075 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0002805/0.2848, allocations: 177 kB / 0.7945 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.2849, allocations: 31.58 kB / 0.7945 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-05/0.285, allocations: 30.3 kB / 0.7946 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.285, allocations: 0 / 0.7946 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.285, allocations: 0 / 0.7946 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.285, allocations: 0 / 0.7946 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.287, allocations: 0.7168 MB / 0.7953 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2871, allocations: 4 kB / 0.7953 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.483e-05/0.2871, allocations: 4 kB / 0.7953 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2871, allocations: 0 / 0.7953 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.177e-05/0.2872, allocations: 23.97 kB / 0.7953 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2872, allocations: 0 / 0.7953 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.2872, allocations: 0 / 0.7953 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.2887, allocations: 485.1 kB / 0.7958 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.2889, allocations: 156.7 kB / 0.7959 GB, free: 2.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.213e-05/0.289, allocations: 8 kB / 0.7959 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.2894, allocations: 43.95 kB / 0.796 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.2895, allocations: 8 kB / 0.796 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.478e-05/0.2895, allocations: 39.97 kB / 0.796 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001943/0.2897, allocations: 209.9 kB / 0.7962 GB, free: 2.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2897, allocations: 0 / 0.7962 GB, free: 2.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003147/0.2901, allocations: 44 kB / 0.7963 GB, free: 2.336 MB / 0.6075 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 (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.0001604/0.2902, allocations: 120.9 kB / 0.7964 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001043/0.2913, allocations: 386.6 kB / 0.7967 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2913, allocations: 3.938 kB / 0.7967 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006388/0.2919, allocations: 128.2 kB / 0.7969 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.2923, allocations: 32.52 kB / 0.7969 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.2935, allocations: 498.9 kB / 0.7974 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.2939, allocations: 0.7461 MB / 0.7981 GB, free: 368 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.914e-05/0.2939, allocations: 17.08 kB / 0.7981 GB, free: 352 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.072e-05/0.294, allocations: 15.44 kB / 0.7981 GB, free: 336 kB / 0.6075 GB Notification: Performance of SimCode: time 4.01e-07/0.294, allocations: 0 / 0.7981 GB, free: 336 kB / 0.6075 GB Notification: Performance of Templates: time 0.006994/0.301, allocations: 3.522 MB / 0.8016 GB, free: 12.82 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) Environment - environmentSimulation: