Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.32/1.32, allocations: 252 MB / 267.9 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 169.7 kB / 327.5 MB, free: 2.168 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 0.5785 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007434/0.0007434, allocations: 88.31 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.0003791, allocations: 11.16 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1946, allocations: 106.3 MB / 0.9012 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1495/0.3441, allocations: 133.5 MB / 1.032 GB, free: 9.992 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.3444, allocations: 71.95 kB / 1.032 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01207/0.3565, allocations: 4.479 MB / 1.036 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3565, allocations: 0 / 1.036 GB, free: 5.438 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.3565, allocations: 8 kB / 1.036 GB, free: 5.43 MB / 0.6823 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.0008573/0.3574, allocations: 0.6167 MB / 1.037 GB, free: 4.738 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3574, allocations: 12.03 kB / 1.037 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.268e-05/0.3575, allocations: 28.66 kB / 1.037 GB, free: 4.699 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.3578, allocations: 263.6 kB / 1.037 GB, free: 4.402 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.3579, allocations: 12.38 kB / 1.037 GB, free: 4.391 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.3579, allocations: 20.36 kB / 1.037 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002615/0.3582, allocations: 146 kB / 1.037 GB, free: 4.223 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3582, allocations: 4.172 kB / 1.037 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.3583, allocations: 7.922 kB / 1.037 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3583, allocations: 4 kB / 1.037 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.3584, allocations: 47.97 kB / 1.037 GB, free: 4.16 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003667/0.3588, allocations: 325.3 kB / 1.038 GB, free: 3.793 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.359, allocations: 130.7 kB / 1.038 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.3591, allocations: 56.83 kB / 1.038 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.3592, allocations: 4 kB / 1.038 GB, free: 3.594 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003821/0.3596, allocations: 222.6 kB / 1.038 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.763e-06/0.3596, allocations: 0 / 1.038 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0005216/0.3601, allocations: 265.1 kB / 1.038 GB, free: 3.102 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/0.3602, allocations: 67.39 kB / 1.038 GB, free: 3.023 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3604, allocations: 290.9 kB / 1.039 GB, free: 2.727 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.199e-05/0.3605, allocations: 37.7 kB / 1.039 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.3605, allocations: 89.14 kB / 1.039 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.495e-05/0.3606, allocations: 43.55 kB / 1.039 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.3606, allocations: 8 kB / 1.039 GB, free: 2.543 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.877e-05/0.3607, allocations: 326.8 kB / 1.039 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002497/0.361, allocations: 104.2 kB / 1.039 GB, free: 2.109 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.3613, allocations: 154.3 kB / 1.039 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.3616, allocations: 245.2 kB / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3616, allocations: 0 / 1.039 GB, free: 1.664 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007032/0.3623, allocations: 432 kB / 1.04 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.3624, allocations: 71.39 kB / 1.04 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3624, allocations: 0 / 1.04 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.3624, allocations: 4 kB / 1.04 GB, free: 1.141 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.3626, allocations: 31.84 kB / 1.04 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.3626, allocations: 4 kB / 1.04 GB, free: 1.105 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.3629, allocations: 59.94 kB / 1.04 GB, free: 1.047 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.513e-05/0.363, allocations: 59.97 kB / 1.04 GB, free: 0.9883 MB / 0.6823 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$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 (28): * Single equations (assignments): 26 * 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.0001718/0.3632, allocations: 165.8 kB / 1.04 GB, free: 0.8164 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.929e-05/0.3633, allocations: 31.61 kB / 1.04 GB, free: 0.7852 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.288e-05/0.3633, allocations: 34.25 kB / 1.04 GB, free: 0.7539 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3633, allocations: 3.938 kB / 1.04 GB, free: 0.75 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.3633, allocations: 0 / 1.04 GB, free: 0.75 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3633, allocations: 3.938 kB / 1.04 GB, free: 0.7461 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006827/0.364, allocations: 0.5517 MB / 1.041 GB, free: 144 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.364, allocations: 7.938 kB / 1.041 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.314e-05/0.3641, allocations: 11.92 kB / 1.041 GB, free: 124 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3641, allocations: 0 / 1.041 GB, free: 124 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3641, allocations: 11.98 kB / 1.041 GB, free: 112 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.3641, allocations: 0 / 1.041 GB, free: 112 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3641, allocations: 0 / 1.041 GB, free: 112 kB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/0.3645, allocations: 323.1 kB / 1.041 GB, free: 15.78 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3647, allocations: 164.5 kB / 1.041 GB, free: 15.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.3647, allocations: 8 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.3649, allocations: 11.98 kB / 1.041 GB, free: 15.58 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.365, allocations: 19.97 kB / 1.041 GB, free: 15.56 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.365, allocations: 27.98 kB / 1.041 GB, free: 15.53 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001725/0.3652, allocations: 205.9 kB / 1.042 GB, free: 15.33 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3652, allocations: 0 / 1.042 GB, free: 15.33 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003046/0.3655, allocations: 56 kB / 1.042 GB, free: 15.28 MB / 0.698 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 (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.0001488/0.3657, allocations: 121.5 kB / 1.042 GB, free: 15.15 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005391/0.3662, allocations: 345.3 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3662, allocations: 3.938 kB / 1.042 GB, free: 14.79 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.3664, allocations: 67.97 kB / 1.042 GB, free: 14.72 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.3667, allocations: 31.84 kB / 1.042 GB, free: 14.69 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006602/0.3674, allocations: 447.6 kB / 1.043 GB, free: 14.22 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.3676, allocations: 0.7515 MB / 1.043 GB, free: 13.45 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001365/0.3678, allocations: 29.09 kB / 1.043 GB, free: 13.41 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3679, allocations: 43.41 kB / 1.043 GB, free: 13.37 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.3679, allocations: 3.938 kB / 1.043 GB, free: 13.37 MB / 0.698 GB Notification: Performance of Templates: time 0.008189/0.3761, allocations: 4.368 MB / 1.048 GB, free: 9 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)