Running: ./testmodel.py --libraries=/home/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 (/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.54/2.54, allocations: 248.6 MB / 255.9 MB, free: 7.082 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001615/0.001614, allocations: 187.4 kB / 315.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.1 MB / 0.5658 GB, free: 372 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002017/0.002017, allocations: 86.72 kB / 0.67 GB, free: 5.578 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4577/0.4598, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.6637, allocations: 106.3 MB / 0.8835 GB, free: 13.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6393/1.303, allocations: 133.9 MB / 1.014 GB, free: 6.23 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003057/1.303, allocations: 74.64 kB / 1.014 GB, free: 6.191 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.02644/1.33, allocations: 5.472 MB / 1.02 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/1.33, allocations: 8 kB / 1.02 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/1.33, allocations: 35.62 kB / 1.02 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005104/1.331, allocations: 271 kB / 1.02 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/1.331, allocations: 7.984 kB / 1.02 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/1.331, allocations: 23.53 kB / 1.02 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002137/1.331, allocations: 51.61 kB / 1.02 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/1.331, allocations: 153.9 kB / 1.02 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/1.331, allocations: 3.938 kB / 1.02 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.39e-05/1.332, allocations: 15.38 kB / 1.02 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/1.332, allocations: 0 / 1.02 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/1.333, allocations: 0.5421 MB / 1.021 GB, free: 500 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/1.333, allocations: 122.5 kB / 1.021 GB, free: 400 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001908/1.333, allocations: 61.66 kB / 1.021 GB, free: 356 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/1.333, allocations: 3.984 kB / 1.021 GB, free: 352 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/1.334, allocations: 182.7 kB / 1.021 GB, free: 184 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=18): time 2.455e-06/1.334, allocations: 0 / 1.021 GB, free: 184 kB / 0.6355 GB Notification: Performance of matching and sorting (n=18): time 0.0006774/1.335, allocations: 172.5 kB / 1.021 GB, free: 32 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/1.335, allocations: 63.09 kB / 1.021 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004831/1.335, allocations: 268.4 kB / 1.022 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.231e-05/1.335, allocations: 36.83 kB / 1.022 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/1.335, allocations: 106.4 kB / 1.022 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.791e-05/1.336, allocations: 45.39 kB / 1.022 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/1.336, allocations: 4 kB / 1.022 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001334/1.336, allocations: 320.6 kB / 1.022 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/1.336, allocations: 110.9 kB / 1.022 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/1.337, allocations: 158 kB / 1.022 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/1.337, allocations: 82 kB / 1.022 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/1.337, allocations: 0 / 1.022 GB, free: 14.99 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009695/1.338, allocations: 313.4 kB / 1.023 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/1.338, allocations: 8 kB / 1.023 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/1.338, allocations: 0 / 1.023 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/1.338, allocations: 8 kB / 1.023 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/1.338, allocations: 23.92 kB / 1.023 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/1.338, allocations: 4 kB / 1.023 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007296/1.339, allocations: 55.06 kB / 1.023 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/1.339, allocations: 51.97 kB / 1.023 GB, free: 14.61 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.0002236/1.339, allocations: 123.1 kB / 1.023 GB, free: 14.48 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/1.339, allocations: 31.12 kB / 1.023 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001241/1.34, allocations: 28.33 kB / 1.023 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/1.34, allocations: 4 kB / 1.023 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.832e-06/1.34, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/1.34, allocations: 11.89 kB / 1.023 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/1.341, allocations: 0.5119 MB / 1.024 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.341, allocations: 0 / 1.024 GB, free: 13.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.168e-05/1.341, allocations: 8 kB / 1.024 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/1.341, allocations: 0 / 1.024 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.941e-05/1.341, allocations: 19.09 kB / 1.024 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/1.341, allocations: 0 / 1.024 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.341, allocations: 4 kB / 1.024 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005706/1.342, allocations: 283.9 kB / 1.024 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006383/1.342, allocations: 0.6378 MB / 1.025 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003751/1.343, allocations: 190.5 kB / 1.025 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/1.343, allocations: 7.375 kB / 1.025 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/1.343, allocations: 19.89 kB / 1.025 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/1.343, allocations: 19.53 kB / 1.025 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.709e-05/1.343, allocations: 27.98 kB / 1.025 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000333/1.344, allocations: 210.7 kB / 1.025 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001504/1.345, allocations: 59.67 kB / 1.025 GB, free: 12.57 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.0003019/1.345, allocations: 124.1 kB / 1.025 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009012/1.346, allocations: 286.1 kB / 1.025 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/1.346, allocations: 4 kB / 1.025 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002054/1.347, allocations: 73.41 kB / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/1.347, allocations: 27.25 kB / 1.026 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/1.348, allocations: 302.7 kB / 1.026 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007891/1.349, allocations: 0.8082 MB / 1.027 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of SimCode: time 1.192e-06/1.349, allocations: 0 / 1.027 GB, free: 11.05 MB / 0.6511 GB