Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.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 Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Time.Examples.CalendarTime") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.13/2.13, allocations: 253.1 MB / 260.4 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001635/0.001635, allocations: 181.2 kB / 319.6 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.893/1.893, allocations: 205.4 MB / 0.5704 GB, free: 12.57 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001359/0.001358, allocations: 94.81 kB / 0.6746 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.097e-06/9.237e-06, allocations: 3.938 kB / 0.7843 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2023, allocations: 106.2 MB / 0.888 GB, free: 11.87 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6121/0.8144, allocations: 133.5 MB / 1.018 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/0.8148, allocations: 70.83 kB / 1.019 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.02494/0.8397, allocations: 4.113 MB / 1.023 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.235e-05/0.8398, allocations: 4 kB / 1.023 GB, free: 0.9844 MB / 0.6355 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.001918/0.8417, allocations: 0.5874 MB / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.407e-05/0.8419, allocations: 8.031 kB / 1.023 GB, free: 348 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003524/0.8422, allocations: 27.72 kB / 1.023 GB, free: 320 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000899/0.8432, allocations: 263.9 kB / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.718e-05/0.8432, allocations: 7.938 kB / 1.023 GB, free: 20 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.8434, allocations: 15.98 kB / 1.023 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003171/0.8438, allocations: 42.2 kB / 1.023 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.8443, allocations: 137.3 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.8444, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.523e-05/0.8445, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.8445, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001069/0.8456, allocations: 303.8 kB / 1.024 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.8462, allocations: 117.1 kB / 1.024 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.8465, allocations: 51.59 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.8465, allocations: 0 / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009885/0.8475, allocations: 179.4 kB / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 3.426e-06/0.8476, allocations: 0 / 1.024 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0008906/0.8485, allocations: 169.4 kB / 1.024 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.8486, allocations: 62.33 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006917/0.8493, allocations: 248 kB / 1.025 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0002263/0.8496, allocations: 37.69 kB / 1.025 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.8497, allocations: 88.08 kB / 1.025 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.8498, allocations: 43.14 kB / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.889e-05/0.8499, allocations: 0 / 1.025 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001939/0.8502, allocations: 325.1 kB / 1.025 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004933/0.8507, allocations: 88.2 kB / 1.025 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000583/0.8513, allocations: 141.2 kB / 1.025 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.8517, allocations: 75.34 kB / 1.025 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.8517, allocations: 0 / 1.025 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00093/0.8527, allocations: 281.2 kB / 1.026 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.8527, allocations: 8.844 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.8527, allocations: 0 / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/0.8528, allocations: 7.984 kB / 1.026 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.853, allocations: 39.62 kB / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.8531, allocations: 4 kB / 1.026 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006972/0.8538, allocations: 44.03 kB / 1.026 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.8539, allocations: 55.17 kB / 1.026 GB, free: 13.74 MB / 0.6511 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 () * 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.0002139/0.8541, allocations: 126.6 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.969e-05/0.8542, allocations: 31.61 kB / 1.026 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.8544, allocations: 32.78 kB / 1.026 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.8544, allocations: 4 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.8544, allocations: 0 / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.8544, allocations: 4 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.8555, allocations: 490.2 kB / 1.027 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.8556, allocations: 4 kB / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.758e-05/0.8557, allocations: 7.984 kB / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.8557, allocations: 0 / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.8557, allocations: 11.98 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.8557, allocations: 3.938 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.8558, allocations: 4 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005088/0.8563, allocations: 270.5 kB / 1.027 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.8566, allocations: 154.4 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.8567, allocations: 11.53 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.857, allocations: 11.98 kB / 1.027 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.8571, allocations: 11.23 kB / 1.027 GB, free: 12.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.125e-05/0.8572, allocations: 39.34 kB / 1.027 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.00028/0.8575, allocations: 193.7 kB / 1.027 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0005624/0.8581, allocations: 48.38 kB / 1.027 GB, free: 12.39 MB / 0.6511 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) * 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.0002107/0.8583, allocations: 115.9 kB / 1.027 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007518/0.8591, allocations: 258.7 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.8591, allocations: 0 / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.8593, allocations: 80.67 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003872/0.8597, allocations: 16.17 kB / 1.028 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009133/0.8606, allocations: 264.7 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007122/0.8613, allocations: 0.8004 MB / 1.029 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of SimCode: time 1.032e-06/0.8614, allocations: 0 / 1.029 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of Templates: time 0.01264/0.874, allocations: 4.332 MB / 1.033 GB, free: 6.578 MB / 0.6511 GB