Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.Time.Examples.CalendarTime.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002461/0.002461, allocations: 355.6 kB / 16.58 MB, free: 5.566 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.49/1.49, allocations: 165.8 MB / 183.1 MB, free: 5.426 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.742/3.742, allocations: 410.8 MB / 0.6001 GB, free: 15.16 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001785/0.001785, allocations: 202.4 kB / 0.6668 GB, free: 6.918 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006479/0.0006482, allocations: 12 kB / 0.7429 GB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4144, allocations: 67.44 MB / 0.8087 GB, free: 28.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.169/0.5834, allocations: 100.1 MB / 0.9065 GB, free: 8.547 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5838, allocations: 83.94 kB / 0.9066 GB, free: 8.465 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02286/0.6067, allocations: 4.448 MB / 0.9109 GB, free: 4.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6067, allocations: 0 / 0.9109 GB, free: 4.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.6067, allocations: 4 kB / 0.9109 GB, free: 4.016 MB / 458.7 MB 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.001299/0.6081, allocations: 0.6181 MB / 0.9115 GB, free: 3.324 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.6081, allocations: 12.03 kB / 0.9115 GB, free: 3.312 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.6083, allocations: 27.72 kB / 0.9116 GB, free: 3.285 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.6087, allocations: 258.5 kB / 0.9118 GB, free: 2.992 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.648e-05/0.6088, allocations: 11.98 kB / 0.9118 GB, free: 2.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.6089, allocations: 20 kB / 0.9118 GB, free: 2.961 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000453/0.6094, allocations: 141.5 kB / 0.912 GB, free: 2.816 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.6094, allocations: 0 / 0.912 GB, free: 2.816 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.6094, allocations: 7.953 kB / 0.912 GB, free: 2.809 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.6095, allocations: 0 / 0.912 GB, free: 2.809 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.6097, allocations: 43.97 kB / 0.912 GB, free: 2.766 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005523/0.6102, allocations: 329.3 kB / 0.9123 GB, free: 2.395 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/0.6107, allocations: 138.8 kB / 0.9125 GB, free: 2.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.611, allocations: 57.08 kB / 0.9125 GB, free: 2.191 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.976e-05/0.611, allocations: 8 kB / 0.9125 GB, free: 2.184 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006312/0.6117, allocations: 216 kB / 0.9127 GB, free: 1.961 MB / 458.7 MB Notification: Performance of pre-optimization done (n=18): time 2.665e-06/0.6117, allocations: 3.938 kB / 0.9127 GB, free: 1.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=18): time 0.0009902/0.6127, allocations: 269.2 kB / 0.913 GB, free: 1.688 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.6128, allocations: 59.39 kB / 0.9131 GB, free: 1.617 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004564/0.6132, allocations: 290.8 kB / 0.9133 GB, free: 1.324 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.6134, allocations: 45.7 kB / 0.9134 GB, free: 1.273 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.694e-05/0.6135, allocations: 89.12 kB / 0.9135 GB, free: 1.184 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.15e-05/0.6135, allocations: 43.5 kB / 0.9135 GB, free: 1.141 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.344e-05/0.6136, allocations: 8 kB / 0.9135 GB, free: 1.133 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.6137, allocations: 326.8 kB / 0.9138 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005117/0.6143, allocations: 96.17 kB / 0.9139 GB, free: 0.707 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005006/0.6148, allocations: 162.3 kB / 0.9141 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.6152, allocations: 149.6 kB / 0.9142 GB, free: 376 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.6153, allocations: 0 / 0.9142 GB, free: 376 kB / 458.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00136/0.6166, allocations: 428.1 kB / 0.9146 GB, free: 15.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.6168, allocations: 82.81 kB / 0.9147 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.6168, allocations: 0 / 0.9147 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.6168, allocations: 4 kB / 0.9147 GB, free: 15.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.6171, allocations: 23.92 kB / 0.9147 GB, free: 15.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.6171, allocations: 15.88 kB / 0.9147 GB, free: 15.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006599/0.6178, allocations: 43.98 kB / 0.9148 GB, free: 15.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.618, allocations: 59.97 kB / 0.9148 GB, free: 15.7 MB / 474.7 MB 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.0003409/0.6183, allocations: 173.7 kB / 0.915 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.087e-05/0.6184, allocations: 27.62 kB / 0.915 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.793e-05/0.6185, allocations: 34.25 kB / 0.9151 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6185, allocations: 0 / 0.9151 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.6185, allocations: 0 / 0.9151 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.6186, allocations: 7.938 kB / 0.9151 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.6198, allocations: 0.5569 MB / 0.9156 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.6198, allocations: 0 / 0.9156 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.793e-05/0.6199, allocations: 8 kB / 0.9156 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.6199, allocations: 0 / 0.9156 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.62, allocations: 19.92 kB / 0.9156 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.62, allocations: 0 / 0.9156 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.62, allocations: 3.938 kB / 0.9156 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000667/0.6207, allocations: 320.3 kB / 0.9159 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002592/0.6209, allocations: 156.7 kB / 0.9161 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.489e-05/0.621, allocations: 8 kB / 0.9161 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.6213, allocations: 15.94 kB / 0.9161 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.6214, allocations: 19.92 kB / 0.9161 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.709e-05/0.6215, allocations: 31.97 kB / 0.9162 GB, free: 14.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003084/0.6218, allocations: 201.9 kB / 0.9164 GB, free: 14.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.021e-05/0.6219, allocations: 0 / 0.9164 GB, free: 14.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0005435/0.6224, allocations: 59.98 kB / 0.9164 GB, free: 13.98 MB / 474.7 MB 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.0001984/0.6226, allocations: 117.2 kB / 0.9165 GB, free: 13.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.6237, allocations: 354.7 kB / 0.9169 GB, free: 13.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6237, allocations: 0 / 0.9169 GB, free: 13.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.624, allocations: 78.86 kB / 0.9169 GB, free: 13.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.6244, allocations: 20.88 kB / 0.917 GB, free: 13.39 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.6256, allocations: 447.7 kB / 0.9174 GB, free: 12.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.626, allocations: 0.7477 MB / 0.9181 GB, free: 12.15 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.6263, allocations: 37.08 kB / 0.9182 GB, free: 12.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.6265, allocations: 43.36 kB / 0.9182 GB, free: 12.07 MB / 474.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6265, allocations: 0 / 0.9182 GB, free: 12.07 MB / 474.7 MB Notification: Performance of Templates: time 0.01259/0.6391, allocations: 4.346 MB / 0.9224 GB, free: 7.719 MB / 474.7 MB