Running: ./testmodel.py --libraries=/home/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 (/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.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Time_Examples_CalendarTime",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 1.944/1.944, allocations: 248.6 MB / 255.9 MB, free: 364 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001587/0.001586, allocations: 188.3 kB / 315.1 MB, free: 7.754 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.884/1.884, allocations: 205.1 MB / 0.5658 GB, free: 25.43 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001255, allocations: 86.83 kB / 0.67 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2434/0.2447, allocations: 112.4 MB / 0.7797 GB, free: 2.453 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4445/0.6892, allocations: 106.2 MB / 0.8835 GB, free: 77.26 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1976/0.8868, allocations: 132.5 MB / 1.013 GB, free: 8.547 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.8872, allocations: 79.94 kB / 1.013 GB, free: 8.469 MB / 0.6667 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.0234/0.9106, allocations: 4.703 MB / 1.018 GB, free: 3.703 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.9106, allocations: 12 kB / 1.018 GB, free: 3.691 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.9108, allocations: 27.72 kB / 1.018 GB, free: 3.664 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.9113, allocations: 263.1 kB / 1.018 GB, free: 3.367 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.9113, allocations: 7.984 kB / 1.018 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.9114, allocations: 16 kB / 1.018 GB, free: 3.344 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001777/0.9116, allocations: 39.89 kB / 1.018 GB, free: 3.305 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003378/0.912, allocations: 137.5 kB / 1.018 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.912, allocations: 0 / 1.018 GB, free: 3.164 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.912, allocations: 3.984 kB / 1.018 GB, free: 3.16 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.9121, allocations: 0 / 1.018 GB, free: 3.16 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000503/0.9126, allocations: 309.8 kB / 1.018 GB, free: 2.82 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.9129, allocations: 114.7 kB / 1.018 GB, free: 2.699 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.9131, allocations: 52.84 kB / 1.018 GB, free: 2.645 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.9131, allocations: 0 / 1.018 GB, free: 2.645 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005397/0.9137, allocations: 171.2 kB / 1.019 GB, free: 2.465 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=18): time 2.214e-06/0.9137, allocations: 0 / 1.019 GB, free: 2.465 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18): time 0.0005584/0.9142, allocations: 169.2 kB / 1.019 GB, free: 2.293 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.9143, allocations: 63.39 kB / 1.019 GB, free: 2.219 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.9147, allocations: 247.3 kB / 1.019 GB, free: 1.969 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 7.917e-05/0.9148, allocations: 37.7 kB / 1.019 GB, free: 1.926 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.431e-05/0.9149, allocations: 89.12 kB / 1.019 GB, free: 1.836 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 7.222e-05/0.915, allocations: 47.44 kB / 1.019 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.915, allocations: 0 / 1.019 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.9152, allocations: 326.8 kB / 1.02 GB, free: 1.461 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.9156, allocations: 84.22 kB / 1.02 GB, free: 1.375 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/0.916, allocations: 142.7 kB / 1.02 GB, free: 1.215 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.9162, allocations: 68.61 kB / 1.02 GB, free: 1.145 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.9162, allocations: 0 / 1.02 GB, free: 1.145 MB / 0.6667 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008988/0.9171, allocations: 280.4 kB / 1.02 GB, free: 0.8672 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.9172, allocations: 8 kB / 1.02 GB, free: 0.8594 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.9172, allocations: 0 / 1.02 GB, free: 0.8594 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.9172, allocations: 7.984 kB / 1.02 GB, free: 0.8516 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.9175, allocations: 31.83 kB / 1.02 GB, free: 0.8203 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.9175, allocations: 7.984 kB / 1.02 GB, free: 0.8125 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006902/0.9182, allocations: 48 kB / 1.02 GB, free: 0.7656 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.9184, allocations: 51.98 kB / 1.02 GB, free: 0.7148 MB / 0.6667 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.0002021/0.9186, allocations: 132 kB / 1.02 GB, free: 0.5781 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.613e-05/0.9187, allocations: 31.62 kB / 1.02 GB, free: 0.5469 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.9188, allocations: 29.97 kB / 1.02 GB, free: 0.5195 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.9188, allocations: 0 / 1.02 GB, free: 0.5195 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.9188, allocations: 4 kB / 1.02 GB, free: 0.5156 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.9189, allocations: 4 kB / 1.02 GB, free: 0.5117 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.9199, allocations: 489.4 kB / 1.021 GB, free: 15.99 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.9199, allocations: 0 / 1.021 GB, free: 15.99 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.594e-05/0.92, allocations: 7.938 kB / 1.021 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.92, allocations: 0 / 1.021 GB, free: 15.98 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.013e-05/0.9201, allocations: 19.98 kB / 1.021 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.9201, allocations: 0 / 1.021 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.9201, allocations: 0 / 1.021 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004681/0.9206, allocations: 270.9 kB / 1.021 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005818/0.9212, allocations: 0.6361 MB / 1.022 GB, free: 15.03 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.9215, allocations: 164.6 kB / 1.022 GB, free: 14.85 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.705e-05/0.9216, allocations: 8 kB / 1.022 GB, free: 14.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.9219, allocations: 11.98 kB / 1.022 GB, free: 14.83 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.922, allocations: 15.97 kB / 1.022 GB, free: 14.82 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-05/0.9221, allocations: 31.89 kB / 1.022 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0002732/0.9224, allocations: 199.1 kB / 1.022 GB, free: 14.59 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001374/0.9238, allocations: 47.98 kB / 1.022 GB, free: 14.54 MB / 0.6823 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.0002237/0.924, allocations: 131.7 kB / 1.022 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0007502/0.9248, allocations: 251.5 kB / 1.023 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.9248, allocations: 0 / 1.023 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.925, allocations: 67.92 kB / 1.023 GB, free: 14.08 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.9254, allocations: 24.88 kB / 1.023 GB, free: 14.05 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008932/0.9263, allocations: 269.2 kB / 1.023 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007398/0.927, allocations: 0.8015 MB / 1.024 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of SimCode: time 2.926e-06/0.927, allocations: 0 / 1.024 GB, free: 12.94 MB / 0.6823 GB