Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.352/1.352, allocations: 285.5 MB / 292.8 MB, free: 10.42 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009336/0.0009336, allocations: 177.3 kB / 361.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.053/1.053, allocations: 205.1 MB / 0.6195 GB, free: 10.31 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007794/0.0007793, allocations: 95.41 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.14e-06/5.23e-06, allocations: 0 / 0.8511 GB, free: 3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4127, allocations: 115.3 MB / 0.9637 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1366/0.5493, allocations: 139 MB / 1.099 GB, free: 1.039 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001821/0.5495, allocations: 71.95 kB / 1.099 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01313/0.5627, allocations: 4.11 MB / 1.103 GB, free: 12.96 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.5627, allocations: 0 / 1.103 GB, free: 12.96 MB / 0.7136 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.0007677/0.5635, allocations: 0.5901 MB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.5635, allocations: 8.031 kB / 1.104 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.686e-05/0.5636, allocations: 27.72 kB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.564, allocations: 255.2 kB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.564, allocations: 4 kB / 1.104 GB, free: 11.97 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.019e-05/0.5641, allocations: 12 kB / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001129/0.5642, allocations: 43.97 kB / 1.104 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.5644, allocations: 145.5 kB / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.5645, allocations: 3.938 kB / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.5645, allocations: 0 / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.5645, allocations: 0 / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003343/0.5648, allocations: 309.7 kB / 1.105 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.565, allocations: 110.7 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.962e-05/0.5651, allocations: 56.84 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.5652, allocations: 0 / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.5655, allocations: 179.1 kB / 1.105 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.5655, allocations: 0 / 1.105 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0003392/0.5658, allocations: 170 kB / 1.105 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.5659, allocations: 55.41 kB / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.5661, allocations: 247.3 kB / 1.106 GB, free: 10.57 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.5661, allocations: 43.09 kB / 1.106 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.928e-05/0.5662, allocations: 85.14 kB / 1.106 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.5663, allocations: 43.5 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.5663, allocations: 4 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.562e-05/0.5664, allocations: 326.8 kB / 1.106 GB, free: 10.06 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.5666, allocations: 88.2 kB / 1.106 GB, free: 9.973 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.5668, allocations: 134.2 kB / 1.106 GB, free: 9.82 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.567, allocations: 79.25 kB / 1.106 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/0.567, allocations: 0 / 1.106 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005242/0.5675, allocations: 289.7 kB / 1.107 GB, free: 9.457 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.5675, allocations: 4 kB / 1.107 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.5675, allocations: 0 / 1.107 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.5676, allocations: 8.188 kB / 1.107 GB, free: 9.445 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.5677, allocations: 29.59 kB / 1.107 GB, free: 9.418 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.5677, allocations: 4 kB / 1.107 GB, free: 9.414 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.5681, allocations: 46.5 kB / 1.107 GB, free: 9.371 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.5682, allocations: 55.98 kB / 1.107 GB, free: 9.316 MB / 0.7136 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.0001411/0.5684, allocations: 127.9 kB / 1.107 GB, free: 9.184 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.5684, allocations: 27.7 kB / 1.107 GB, free: 9.156 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.5e-05/0.5685, allocations: 29.97 kB / 1.107 GB, free: 9.121 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.5685, allocations: 0 / 1.107 GB, free: 9.121 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.5685, allocations: 4 kB / 1.107 GB, free: 9.117 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.5685, allocations: 0 / 1.107 GB, free: 9.117 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.5691, allocations: 496.3 kB / 1.107 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.5691, allocations: 0 / 1.107 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.295e-05/0.5692, allocations: 11.92 kB / 1.107 GB, free: 8.578 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.5692, allocations: 4 kB / 1.107 GB, free: 8.574 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.5692, allocations: 11.98 kB / 1.107 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.5692, allocations: 0 / 1.107 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.5692, allocations: 2.266 kB / 1.107 GB, free: 8.562 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000301/0.5695, allocations: 273 kB / 1.108 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.5698, allocations: 152.7 kB / 1.108 GB, free: 8.113 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.101e-05/0.5698, allocations: 8 kB / 1.108 GB, free: 8.105 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.57, allocations: 13.55 kB / 1.108 GB, free: 8.094 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.5701, allocations: 15.97 kB / 1.108 GB, free: 8.078 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.5701, allocations: 31.97 kB / 1.108 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001668/0.5703, allocations: 199.1 kB / 1.108 GB, free: 7.855 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003313/0.5706, allocations: 43.91 kB / 1.108 GB, free: 7.812 MB / 0.7136 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.0001502/0.5708, allocations: 129.1 kB / 1.108 GB, free: 7.68 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.5713, allocations: 255.5 kB / 1.109 GB, free: 7.418 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.5713, allocations: 0 / 1.109 GB, free: 7.418 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.5714, allocations: 67.92 kB / 1.109 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002236/0.5716, allocations: 21.8 kB / 1.109 GB, free: 7.332 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/0.5721, allocations: 275.3 kB / 1.109 GB, free: 7.047 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004897/0.5726, allocations: 0.8084 MB / 1.11 GB, free: 6.215 MB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/0.5727, allocations: 3.938 kB / 1.11 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of Templates: time 0.007168/0.5798, allocations: 4.315 MB / 1.114 GB, free: 1.961 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)