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.001688/0.001688, allocations: 110.6 kB / 15.99 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.001914/0.001914, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.433/1.433, allocations: 205.1 MB / 222.8 MB, free: 4.711 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.712/1.712, allocations: 292.3 MB / 0.5492 GB, free: 13.64 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.001374/0.001374, allocations: 71.56 kB / 0.6716 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2367, allocations: 114.5 MB / 0.7835 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002642/0.2394, allocations: 1.552 MB / 0.785 GB, free: 12.37 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009069/0.2403, allocations: 432.3 kB / 0.7854 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.907e-05/0.2403, allocations: 0 / 0.7854 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.718e-05/0.2404, allocations: 3.938 kB / 0.7854 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.669e-05/0.2405, allocations: 20.28 kB / 0.7854 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000598/0.2411, allocations: 234.8 kB / 0.7857 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.2415, allocations: 327.9 kB / 0.786 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.497e-05/0.2415, allocations: 8 kB / 0.786 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.2419, allocations: 242.3 kB / 0.7862 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.2421, allocations: 127.6 kB / 0.7863 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.243e-05/0.2422, allocations: 20 kB / 0.7864 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.043e-05/0.2422, allocations: 20 kB / 0.7864 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.2423, allocations: 87.77 kB / 0.7865 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2425, allocations: 131.3 kB / 0.7866 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.2427, allocations: 211.9 kB / 0.7868 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.2427, allocations: 4 kB / 0.7868 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.264e-06/0.2427, allocations: 0 / 0.7868 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.2428, allocations: 0 / 0.7868 GB, free: 10.54 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.001061/0.2438, allocations: 0.7459 MB / 0.7875 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.2439, allocations: 8.031 kB / 0.7875 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.716e-05/0.244, allocations: 31.72 kB / 0.7876 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.2443, allocations: 270.2 kB / 0.7878 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.2443, allocations: 15.98 kB / 0.7878 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.2444, allocations: 20 kB / 0.7879 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009441/0.2453, allocations: 197.5 kB / 0.788 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.2453, allocations: 3.984 kB / 0.788 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.984e-05/0.2454, allocations: 7.984 kB / 0.7881 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-06/0.2454, allocations: 0 / 0.7881 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007557/0.2462, allocations: 95.92 kB / 0.7881 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.2465, allocations: 329.2 kB / 0.7885 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009958/0.2475, allocations: 177.5 kB / 0.7886 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007285/0.2483, allocations: 104.7 kB / 0.7887 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.2483, allocations: 4 kB / 0.7887 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009362/0.2492, allocations: 218 kB / 0.7889 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.2492, allocations: 0 / 0.7889 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16): time 0.002402/0.2517, allocations: 445 kB / 0.7894 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.2517, allocations: 59.39 kB / 0.7894 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.252, allocations: 298.8 kB / 0.7897 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.2521, allocations: 37.7 kB / 0.7897 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.2522, allocations: 89.12 kB / 0.7898 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.2522, allocations: 47.53 kB / 0.7899 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.2524, allocations: 93.48 kB / 0.79 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2525, allocations: 326.8 kB / 0.7903 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.2527, allocations: 75.95 kB / 0.7903 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.2529, allocations: 141.9 kB / 0.7905 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.2532, allocations: 240 kB / 0.7907 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2532, allocations: 0 / 0.7907 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006336/0.2538, allocations: 400.6 kB / 0.7911 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/0.2539, allocations: 71.39 kB / 0.7912 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2539, allocations: 0 / 0.7912 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.254, allocations: 4 kB / 0.7912 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.2541, allocations: 27.91 kB / 0.7912 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2542, allocations: 4 kB / 0.7912 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/0.2546, allocations: 59.98 kB / 0.7912 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/0.2547, allocations: 39.98 kB / 0.7913 GB, free: 5.594 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 (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.000175/0.2549, allocations: 173 kB / 0.7915 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.2549, allocations: 23.72 kB / 0.7915 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.812e-05/0.255, allocations: 34.3 kB / 0.7915 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.255, allocations: 0 / 0.7915 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.255, allocations: 0 / 0.7915 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.255, allocations: 11.92 kB / 0.7915 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.257, allocations: 0.6879 MB / 0.7922 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.257, allocations: 0 / 0.7922 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.583e-05/0.2571, allocations: 8 kB / 0.7922 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2571, allocations: 11.88 kB / 0.7922 GB, free: 4.59 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.2571, allocations: 15.97 kB / 0.7922 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2571, allocations: 0 / 0.7922 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2571, allocations: 0 / 0.7922 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.2588, allocations: 454.9 kB / 0.7927 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.259, allocations: 160.6 kB / 0.7928 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.838e-05/0.259, allocations: 15.92 kB / 0.7928 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004551/0.2595, allocations: 27.97 kB / 0.7929 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/0.2595, allocations: 15.92 kB / 0.7929 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.2596, allocations: 39.98 kB / 0.7929 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001762/0.2598, allocations: 209.9 kB / 0.7931 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2598, allocations: 4 kB / 0.7931 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003388/0.2601, allocations: 51.98 kB / 0.7932 GB, free: 3.582 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 (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.0001562/0.2603, allocations: 109 kB / 0.7933 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001126/0.2614, allocations: 394.2 kB / 0.7936 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2614, allocations: 4.062 kB / 0.7936 GB, free: 3.055 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007381/0.2622, allocations: 115.8 kB / 0.7938 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.2625, allocations: 23.69 kB / 0.7938 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.2639, allocations: 0.5325 MB / 0.7943 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.2642, allocations: 0.7396 MB / 0.795 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.364e-05/0.2643, allocations: 23.42 kB / 0.795 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of SimCode: time 3.6e-07/0.2643, allocations: 0 / 0.795 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of Templates: time 0.004542/0.2688, allocations: 2.857 MB / 0.7978 GB, free: 14.71 MB / 0.6231 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)