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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.555/1.555, allocations: 292.3 MB / 308.1 MB, free: 4.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 191.6 kB / 376.9 MB, free: 1.805 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205 MB / 0.6353 GB, free: 9.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009702/0.0009701, allocations: 95.08 kB / 0.748 GB, free: 61.09 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 59.91 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2702, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003766/0.274, allocations: 1.551 MB / 0.9837 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2752, allocations: 442.1 kB / 0.9841 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.873e-05/0.2753, allocations: 0 / 0.9841 GB, free: 8.41 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.2754, allocations: 11.92 kB / 0.9842 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.2756, allocations: 20.28 kB / 0.9842 GB, free: 8.379 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.2763, allocations: 215.7 kB / 0.9844 GB, free: 8.168 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.2767, allocations: 287.9 kB / 0.9847 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 6.397e-05/0.2767, allocations: 11.98 kB / 0.9847 GB, free: 7.875 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.2771, allocations: 226.3 kB / 0.9849 GB, free: 7.656 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.2774, allocations: 115.6 kB / 0.985 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 7.42e-05/0.2774, allocations: 12 kB / 0.985 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.615e-05/0.2775, allocations: 8 kB / 0.985 GB, free: 7.523 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.2776, allocations: 75.77 kB / 0.9851 GB, free: 7.449 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.2778, allocations: 119.3 kB / 0.9852 GB, free: 7.332 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.2781, allocations: 287.3 kB / 0.9855 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2781, allocations: 0 / 0.9855 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.92e-07/0.2781, allocations: 0 / 0.9855 GB, free: 7.051 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2782, allocations: 0 / 0.9855 GB, free: 7.051 MB / 0.7136 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.001253/0.2794, allocations: 0.7036 MB / 0.9862 GB, free: 6.273 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2795, allocations: 8.031 kB / 0.9862 GB, free: 6.266 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.574e-05/0.2796, allocations: 31.72 kB / 0.9862 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.2799, allocations: 262.3 kB / 0.9864 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.2799, allocations: 8 kB / 0.9865 GB, free: 5.93 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.678e-05/0.28, allocations: 23.92 kB / 0.9865 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002911/0.2803, allocations: 141.5 kB / 0.9866 GB, free: 5.762 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.2803, allocations: 3.938 kB / 0.9866 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.2804, allocations: 12 kB / 0.9866 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2804, allocations: 0 / 0.9866 GB, free: 5.746 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.2805, allocations: 47.97 kB / 0.9867 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.2809, allocations: 309.3 kB / 0.987 GB, free: 5.348 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.2811, allocations: 130.6 kB / 0.9871 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.2813, allocations: 56.84 kB / 0.9871 GB, free: 5.152 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.2813, allocations: 11.94 kB / 0.9872 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004816/0.2818, allocations: 220.1 kB / 0.9874 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 3.917e-06/0.2818, allocations: 4 kB / 0.9874 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0005483/0.2824, allocations: 269.1 kB / 0.9876 GB, free: 4.641 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/0.2824, allocations: 67.39 kB / 0.9877 GB, free: 4.562 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.2827, allocations: 290.9 kB / 0.988 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.677e-05/0.2828, allocations: 37.69 kB / 0.988 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.2828, allocations: 93.14 kB / 0.9881 GB, free: 4.129 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.2829, allocations: 35.52 kB / 0.9881 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.2831, allocations: 113.6 kB / 0.9882 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.2832, allocations: 326.8 kB / 0.9885 GB, free: 3.645 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.2834, allocations: 92.17 kB / 0.9886 GB, free: 3.555 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.2837, allocations: 150.3 kB / 0.9888 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.284, allocations: 248.1 kB / 0.989 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.284, allocations: 0 / 0.989 GB, free: 3.113 MB / 0.7136 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006704/0.2847, allocations: 423 kB / 0.9894 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.645e-05/0.2848, allocations: 75.52 kB / 0.9895 GB, free: 2.598 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2848, allocations: 8 kB / 0.9895 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.2848, allocations: 11.92 kB / 0.9895 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.285, allocations: 19.98 kB / 0.9895 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.285, allocations: 7.938 kB / 0.9895 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004594/0.2854, allocations: 59.8 kB / 0.9896 GB, free: 2.492 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.2855, allocations: 51.98 kB / 0.9896 GB, free: 2.441 MB / 0.7136 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.000177/0.2857, allocations: 177.8 kB / 0.9898 GB, free: 2.258 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.2858, allocations: 27.62 kB / 0.9898 GB, free: 2.23 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.65e-05/0.2858, allocations: 38.19 kB / 0.9899 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2858, allocations: 3.938 kB / 0.9899 GB, free: 2.191 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2858, allocations: 4 kB / 0.9899 GB, free: 2.188 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2858, allocations: 3.984 kB / 0.9899 GB, free: 2.184 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007905/0.2866, allocations: 0.5567 MB / 0.9904 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2867, allocations: 4 kB / 0.9904 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.504e-05/0.2867, allocations: 11.94 kB / 0.9904 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.2867, allocations: 0 / 0.9904 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.2868, allocations: 15.97 kB / 0.9905 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2868, allocations: 0 / 0.9905 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2868, allocations: 0 / 0.9905 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007932/0.2876, allocations: 0.9363 MB / 0.9914 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.2878, allocations: 156.7 kB / 0.9915 GB, free: 384 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.917e-05/0.2878, allocations: 11.98 kB / 0.9915 GB, free: 372 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.288, allocations: 15.98 kB / 0.9915 GB, free: 356 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.2881, allocations: 11.98 kB / 0.9916 GB, free: 344 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.78e-05/0.2881, allocations: 31.92 kB / 0.9916 GB, free: 312 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.000173/0.2883, allocations: 213.9 kB / 0.9918 GB, free: 96 kB / 0.7136 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2883, allocations: 0 / 0.9918 GB, free: 96 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003902/0.2887, allocations: 48 kB / 0.9918 GB, free: 48 kB / 0.7136 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.0001468/0.2889, allocations: 117.1 kB / 0.992 GB, free: 15.92 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005028/0.2894, allocations: 342.6 kB / 0.9923 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2894, allocations: 0 / 0.9923 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.2895, allocations: 71.91 kB / 0.9923 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.2898, allocations: 28.8 kB / 0.9924 GB, free: 15.46 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008116/0.2907, allocations: 0.6076 MB / 0.993 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.291, allocations: 0.7399 MB / 0.9937 GB, free: 14.05 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001328/0.2911, allocations: 37.42 kB / 0.9937 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.2913, allocations: 43.41 kB / 0.9938 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/0.2913, allocations: 0 / 0.9938 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of Templates: time 0.008184/0.2995, allocations: 4.163 MB / 0.9978 GB, free: 9.824 MB / 0.7292 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 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)