Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths") [: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.428/2.428, allocations: 253.1 MB / 260.4 MB, free: 7.527 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.001917/0.001917, allocations: 181.2 kB / 319.6 MB, free: 3.328 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 2.204/2.204, allocations: 205.4 MB / 0.5704 GB, free: 15.12 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.001536/0.001535, allocations: 97.95 kB / 0.6746 GB, free: 4.469 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.691e-05/1.707e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2551, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7514/1.007, allocations: 133.9 MB / 1.019 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/1.007, allocations: 73.58 kB / 1.019 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.02695/1.034, allocations: 4.853 MB / 1.024 GB, free: 420 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.322e-05/1.034, allocations: 4 kB / 1.024 GB, free: 416 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001574/1.036, allocations: 0.6079 MB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/1.036, allocations: 12.02 kB / 1.024 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002796/1.036, allocations: 35.62 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006641/1.037, allocations: 279.5 kB / 1.025 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/1.037, allocations: 4 kB / 1.025 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/1.037, allocations: 27.89 kB / 1.025 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002483/1.037, allocations: 57.17 kB / 1.025 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004404/1.038, allocations: 153.3 kB / 1.025 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/1.038, allocations: 0 / 1.025 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/1.038, allocations: 7.984 kB / 1.025 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/1.038, allocations: 0 / 1.025 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/1.039, allocations: 0.5447 MB / 1.025 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000382/1.04, allocations: 119.7 kB / 1.025 GB, free: 14.65 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/1.04, allocations: 59.72 kB / 1.025 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/1.04, allocations: 0 / 1.025 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006879/1.041, allocations: 178.3 kB / 1.026 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 3.216e-06/1.041, allocations: 0 / 1.026 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0008249/1.042, allocations: 182.7 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/1.042, allocations: 67.14 kB / 1.026 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005107/1.042, allocations: 266.2 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/1.042, allocations: 41.12 kB / 1.026 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/1.043, allocations: 89.05 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.255e-05/1.043, allocations: 52.83 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.355e-05/1.043, allocations: 7.984 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001507/1.043, allocations: 321.4 kB / 1.027 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/1.043, allocations: 110.2 kB / 1.027 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/1.044, allocations: 159.4 kB / 1.027 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/1.044, allocations: 77.2 kB / 1.027 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/1.044, allocations: 4 kB / 1.027 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001096/1.045, allocations: 317.5 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/1.045, allocations: 4 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/1.045, allocations: 0 / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.007e-05/1.045, allocations: 4 kB / 1.027 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/1.046, allocations: 27.91 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/1.046, allocations: 4 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008576/1.047, allocations: 52 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/1.047, allocations: 50.86 kB / 1.027 GB, free: 12.86 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.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.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.0002589/1.047, allocations: 135.2 kB / 1.028 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.178e-05/1.047, allocations: 27.62 kB / 1.028 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/1.047, allocations: 33.64 kB / 1.028 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/1.047, allocations: 0 / 1.028 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.047, allocations: 0 / 1.028 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/1.047, allocations: 7.906 kB / 1.028 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/1.048, allocations: 0.5096 MB / 1.028 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.049, allocations: 8 kB / 1.028 GB, free: 12.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/1.049, allocations: 7.984 kB / 1.028 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/1.049, allocations: 0 / 1.028 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/1.049, allocations: 11.98 kB / 1.028 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/1.049, allocations: 0 / 1.028 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/1.049, allocations: 0 / 1.028 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005697/1.049, allocations: 280 kB / 1.028 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004091/1.05, allocations: 186.9 kB / 1.029 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/1.05, allocations: 22.41 kB / 1.029 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/1.05, allocations: 11.98 kB / 1.029 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/1.05, allocations: 15.86 kB / 1.029 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.701e-05/1.05, allocations: 27.98 kB / 1.029 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003738/1.051, allocations: 217 kB / 1.029 GB, free: 11.51 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0007412/1.052, allocations: 47 kB / 1.029 GB, free: 11.46 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 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.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.0003158/1.052, allocations: 127.9 kB / 1.029 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001035/1.053, allocations: 293.5 kB / 1.029 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/1.053, allocations: 0 / 1.029 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002282/1.053, allocations: 67.92 kB / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/1.054, allocations: 27.33 kB / 1.029 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/1.055, allocations: 303.2 kB / 1.03 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008564/1.056, allocations: 0.8081 MB / 1.03 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of SimCode: time 1.713e-06/1.056, allocations: 0 / 1.03 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of Templates: time 0.01509/1.071, allocations: 4.662 MB / 1.035 GB, free: 5.273 MB / 0.6511 GB