Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.231/2.231, allocations: 284.9 MB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001606, allocations: 181.2 kB / 360.4 MB, free: 7.473 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 205.1 MB / 0.6188 GB, free: 12.39 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001264/0.001264, allocations: 95.81 kB / 0.7318 GB, free: 44.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.558e-06/9.708e-06, allocations: 4 kB / 0.8502 GB, free: 3.824 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5407/0.5407, allocations: 115.2 MB / 0.9628 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2043/0.7451, allocations: 138.8 MB / 1.098 GB, free: 1.887 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.7454, allocations: 76.45 kB / 1.098 GB, free: 1.812 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.02229/0.7677, allocations: 4.107 MB / 1.102 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.05e-05/0.7678, allocations: 4 kB / 1.102 GB, free: 13.8 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.001218/0.769, allocations: 0.5886 MB / 1.103 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.7691, allocations: 8.531 kB / 1.103 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.7693, allocations: 35.66 kB / 1.103 GB, free: 13.1 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.7697, allocations: 251.2 kB / 1.103 GB, free: 12.82 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.7698, allocations: 4 kB / 1.103 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.726e-05/0.7699, allocations: 15.98 kB / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001788/0.7701, allocations: 43.97 kB / 1.103 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000338/0.7704, allocations: 143.4 kB / 1.103 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.7704, allocations: 0 / 1.103 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.7705, allocations: 4 kB / 1.103 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.7705, allocations: 4 kB / 1.103 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.771, allocations: 301.8 kB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.7713, allocations: 110.7 kB / 1.104 GB, free: 12.15 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.7715, allocations: 52.84 kB / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.7716, allocations: 0 / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005377/0.7721, allocations: 183.1 kB / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 2.214e-06/0.7721, allocations: 0 / 1.104 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0005589/0.7727, allocations: 170.3 kB / 1.104 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.7728, allocations: 59.39 kB / 1.104 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.7731, allocations: 255.3 kB / 1.105 GB, free: 11.41 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 7.798e-05/0.7732, allocations: 29.7 kB / 1.105 GB, free: 11.37 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.096e-05/0.7733, allocations: 89.14 kB / 1.105 GB, free: 11.28 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 6.928e-05/0.7734, allocations: 39.52 kB / 1.105 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/0.7735, allocations: 7.984 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.7736, allocations: 322.8 kB / 1.105 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003324/0.7739, allocations: 90.47 kB / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003672/0.7743, allocations: 134.2 kB / 1.105 GB, free: 10.66 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.7746, allocations: 72.64 kB / 1.105 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.7746, allocations: 7.938 kB / 1.105 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009079/0.7755, allocations: 284.6 kB / 1.106 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.7756, allocations: 5.562 kB / 1.106 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.7756, allocations: 0 / 1.106 GB, free: 10.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.7756, allocations: 4 kB / 1.106 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.7759, allocations: 32.09 kB / 1.106 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.7759, allocations: 4 kB / 1.106 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006966/0.7766, allocations: 47.88 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.7768, allocations: 51.98 kB / 1.106 GB, free: 10.16 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.0001997/0.777, allocations: 138.7 kB / 1.106 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.777, allocations: 23.72 kB / 1.106 GB, free: 9.996 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001162/0.7772, allocations: 29.97 kB / 1.106 GB, free: 9.961 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.7772, allocations: 4 kB / 1.106 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.7772, allocations: 0 / 1.106 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.7772, allocations: 0 / 1.106 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009716/0.7782, allocations: 494.6 kB / 1.106 GB, free: 9.43 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.7782, allocations: 3.938 kB / 1.106 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.316e-05/0.7783, allocations: 7.984 kB / 1.106 GB, free: 9.418 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.7783, allocations: 4 kB / 1.106 GB, free: 9.414 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.7784, allocations: 10.3 kB / 1.106 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.7784, allocations: 0 / 1.106 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.7784, allocations: 5.969 kB / 1.106 GB, free: 9.402 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000513/0.7789, allocations: 268.4 kB / 1.107 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.7792, allocations: 156.7 kB / 1.107 GB, free: 8.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.268e-05/0.7793, allocations: 4 kB / 1.107 GB, free: 8.949 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.7796, allocations: 15.98 kB / 1.107 GB, free: 8.934 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.7797, allocations: 19.95 kB / 1.107 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.7798, allocations: 23.98 kB / 1.107 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.000266/0.7801, allocations: 203.1 kB / 1.107 GB, free: 8.695 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000536/0.7806, allocations: 47.89 kB / 1.107 GB, free: 8.648 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.0001938/0.7808, allocations: 121.3 kB / 1.107 GB, free: 8.523 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0007274/0.7816, allocations: 261.3 kB / 1.108 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.7816, allocations: 0 / 1.108 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001866/0.7818, allocations: 63.92 kB / 1.108 GB, free: 8.195 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.7822, allocations: 20.97 kB / 1.108 GB, free: 8.172 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00086/0.783, allocations: 279.2 kB / 1.108 GB, free: 7.883 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006643/0.7837, allocations: 0.802 MB / 1.109 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of SimCode: time 1.002e-06/0.7837, allocations: 0 / 1.109 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of Templates: time 0.0118/0.7955, allocations: 4.32 MB / 1.113 GB, free: 2.801 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)