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.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") [: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.478/2.478, allocations: 253.1 MB / 260.4 MB, free: 11.8 MB / 211.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001632/0.001632, allocations: 193.9 kB / 319.6 MB, free: 2.277 MB / 243.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.236/2.236, allocations: 205.4 MB / 0.5704 GB, free: 8.352 MB / 435.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001232/0.001231, allocations: 95.23 kB / 0.6746 GB, free: 21.86 MB / 467.1 MB Notification: Performance of FrontEnd - loaded program: time 1.52e-05/1.54e-05, allocations: 4 kB / 0.7843 GB, free: 5.43 MB / 0.5499 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6303/0.6304, allocations: 106.3 MB / 0.8881 GB, free: 64.55 MB / 0.5968 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.229/0.8595, allocations: 132.9 MB / 1.018 GB, free: 7.387 MB / 0.6593 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/0.8599, allocations: 75.94 kB / 1.018 GB, free: 7.312 MB / 0.6593 GB Notification: Performance of FrontEnd: time 0.02632/0.8862, allocations: 4.859 MB / 1.023 GB, free: 2.465 MB / 0.6593 GB Notification: Performance of Transformations before backend: time 2.309e-05/0.8863, allocations: 4 kB / 1.023 GB, free: 2.461 MB / 0.6593 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.001362/0.8877, allocations: 0.6063 MB / 1.023 GB, free: 1.785 MB / 0.6593 GB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.8877, allocations: 12.03 kB / 1.023 GB, free: 1.773 MB / 0.6593 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.8879, allocations: 35.62 kB / 1.023 GB, free: 1.738 MB / 0.6593 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005601/0.8885, allocations: 267.2 kB / 1.024 GB, free: 1.438 MB / 0.6593 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.8885, allocations: 4 kB / 1.024 GB, free: 1.434 MB / 0.6593 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.8887, allocations: 23.89 kB / 1.024 GB, free: 1.41 MB / 0.6593 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002314/0.8889, allocations: 59.92 kB / 1.024 GB, free: 1.352 MB / 0.6593 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.8893, allocations: 149.5 kB / 1.024 GB, free: 1.199 MB / 0.6593 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.8894, allocations: 0 / 1.024 GB, free: 1.199 MB / 0.6593 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.644e-05/0.8894, allocations: 7.984 kB / 1.024 GB, free: 1.191 MB / 0.6593 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.8894, allocations: 0 / 1.024 GB, free: 1.191 MB / 0.6593 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.8908, allocations: 0.5554 MB / 1.024 GB, free: 0.5977 MB / 0.6593 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.8911, allocations: 114.7 kB / 1.024 GB, free: 488 kB / 0.6593 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.8913, allocations: 60.84 kB / 1.025 GB, free: 424 kB / 0.6593 GB Notification: Performance of preOpt evalFunc (simulation): time 5.692e-05/0.8914, allocations: 3.984 kB / 1.025 GB, free: 420 kB / 0.6593 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005819/0.892, allocations: 179.2 kB / 1.025 GB, free: 228 kB / 0.6593 GB Notification: Performance of pre-optimization done (n=18): time 4.429e-06/0.892, allocations: 0 / 1.025 GB, free: 228 kB / 0.6593 GB Notification: Performance of matching and sorting (n=18): time 0.0006491/0.8927, allocations: 178 kB / 1.025 GB, free: 44 kB / 0.6593 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.8928, allocations: 75.31 kB / 1.025 GB, free: 15.96 MB / 0.6749 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004747/0.8933, allocations: 267.4 kB / 1.025 GB, free: 15.69 MB / 0.6749 GB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.8934, allocations: 33.69 kB / 1.025 GB, free: 15.65 MB / 0.6749 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.8935, allocations: 97.05 kB / 1.025 GB, free: 15.55 MB / 0.6749 GB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.8936, allocations: 47.39 kB / 1.025 GB, free: 15.5 MB / 0.6749 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.958e-05/0.8937, allocations: 7.984 kB / 1.025 GB, free: 15.5 MB / 0.6749 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.8938, allocations: 326.8 kB / 1.026 GB, free: 15.17 MB / 0.6749 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004001/0.8943, allocations: 104.2 kB / 1.026 GB, free: 15.06 MB / 0.6749 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.8947, allocations: 162.7 kB / 1.026 GB, free: 14.88 MB / 0.6749 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.895, allocations: 86.7 kB / 1.026 GB, free: 14.8 MB / 0.6749 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.895, allocations: 0 / 1.026 GB, free: 14.8 MB / 0.6749 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001048/0.8961, allocations: 307.7 kB / 1.026 GB, free: 14.49 MB / 0.6749 GB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.8961, allocations: 6.969 kB / 1.026 GB, free: 14.49 MB / 0.6749 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.8962, allocations: 0 / 1.026 GB, free: 14.49 MB / 0.6749 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.8962, allocations: 8.188 kB / 1.026 GB, free: 14.48 MB / 0.6749 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.8965, allocations: 27.97 kB / 1.026 GB, free: 14.45 MB / 0.6749 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.584e-05/0.8965, allocations: 7.938 kB / 1.026 GB, free: 14.45 MB / 0.6749 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007395/0.8973, allocations: 51.81 kB / 1.026 GB, free: 14.39 MB / 0.6749 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.8974, allocations: 47.98 kB / 1.026 GB, free: 14.35 MB / 0.6749 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.0002353/0.8977, allocations: 128 kB / 1.027 GB, free: 14.22 MB / 0.6749 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.633e-05/0.8978, allocations: 27.62 kB / 1.027 GB, free: 14.19 MB / 0.6749 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.8979, allocations: 30.08 kB / 1.027 GB, free: 14.16 MB / 0.6749 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.8979, allocations: 0 / 1.027 GB, free: 14.16 MB / 0.6749 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.898, allocations: 0 / 1.027 GB, free: 14.16 MB / 0.6749 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.898, allocations: 3.906 kB / 1.027 GB, free: 14.16 MB / 0.6749 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.8991, allocations: 0.5144 MB / 1.027 GB, free: 13.6 MB / 0.6749 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.8991, allocations: 0 / 1.027 GB, free: 13.6 MB / 0.6749 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.026e-05/0.8992, allocations: 15.92 kB / 1.027 GB, free: 13.59 MB / 0.6749 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.8992, allocations: 0 / 1.027 GB, free: 13.59 MB / 0.6749 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.433e-05/0.8992, allocations: 11.98 kB / 1.027 GB, free: 13.57 MB / 0.6749 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.8993, allocations: 0 / 1.027 GB, free: 13.57 MB / 0.6749 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8993, allocations: 0 / 1.027 GB, free: 13.57 MB / 0.6749 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005378/0.8998, allocations: 279 kB / 1.027 GB, free: 13.29 MB / 0.6749 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004215/0.9003, allocations: 188.6 kB / 1.028 GB, free: 13.08 MB / 0.6749 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.9004, allocations: 15.91 kB / 1.028 GB, free: 13.07 MB / 0.6749 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003298/0.9007, allocations: 11.98 kB / 1.028 GB, free: 13.05 MB / 0.6749 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.569e-05/0.9008, allocations: 15.97 kB / 1.028 GB, free: 13.04 MB / 0.6749 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/0.9009, allocations: 31.98 kB / 1.028 GB, free: 13.01 MB / 0.6749 GB Notification: Performance of sort global known variables: time 0.0003482/0.9013, allocations: 215.1 kB / 1.028 GB, free: 12.8 MB / 0.6749 GB Notification: Performance of remove unused functions: time 0.0006274/0.9019, allocations: 44 kB / 1.028 GB, free: 12.75 MB / 0.6749 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.0002807/0.9022, allocations: 129.9 kB / 1.028 GB, free: 12.62 MB / 0.6749 GB Notification: Performance of simCode: created initialization part: time 0.000873/0.9031, allocations: 291.4 kB / 1.028 GB, free: 12.32 MB / 0.6749 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.9031, allocations: 3.938 kB / 1.028 GB, free: 12.32 MB / 0.6749 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/0.9033, allocations: 70.27 kB / 1.028 GB, free: 12.25 MB / 0.6749 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.9039, allocations: 31.23 kB / 1.028 GB, free: 12.22 MB / 0.6749 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.905, allocations: 308.5 kB / 1.029 GB, free: 11.89 MB / 0.6749 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007252/0.9057, allocations: 0.8055 MB / 1.03 GB, free: 11.06 MB / 0.6749 GB Notification: Performance of SimCode: time 3.777e-06/0.9057, allocations: 0 / 1.03 GB, free: 11.06 MB / 0.6749 GB Notification: Performance of Templates: time 0.014/0.9198, allocations: 4.677 MB / 1.034 GB, free: 6.418 MB / 0.6749 GB