Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime") translateModel(BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.7206/0.7206, allocations: 127.4 MB / 134.6 MB, free: 4.102 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 185.3 kB / 164.4 MB, free: 6.891 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 399.1 MB, free: 6.082 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 81.27 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 8.406e-06/8.516e-06, allocations: 0 / 0.5459 GB, free: 42.77 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1793, allocations: 76.75 MB / 0.6209 GB, free: 13.95 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.6456, allocations: 103.7 MB / 0.7222 GB, free: 8.676 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.6459, allocations: 75.94 kB / 0.7222 GB, free: 8.602 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.0142/0.6601, allocations: 4.329 MB / 0.7265 GB, free: 4.277 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.6602, allocations: 4 kB / 0.7265 GB, free: 4.273 MB / 490.7 MB 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.0009236/0.6611, allocations: 0.536 MB / 0.727 GB, free: 3.668 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.6612, allocations: 12.03 kB / 0.727 GB, free: 3.656 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.6613, allocations: 27.7 kB / 0.727 GB, free: 3.629 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.6615, allocations: 191.9 kB / 0.7272 GB, free: 3.398 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.6615, allocations: 4 kB / 0.7272 GB, free: 3.395 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.6616, allocations: 16 kB / 0.7272 GB, free: 3.379 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001292/0.6617, allocations: 39.92 kB / 0.7273 GB, free: 3.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.662, allocations: 133.5 kB / 0.7274 GB, free: 3.203 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.662, allocations: 4 kB / 0.7274 GB, free: 3.199 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.662, allocations: 7.984 kB / 0.7274 GB, free: 3.191 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.662, allocations: 0 / 0.7274 GB, free: 3.191 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003686/0.6624, allocations: 277.9 kB / 0.7277 GB, free: 2.883 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.6626, allocations: 106.7 kB / 0.7278 GB, free: 2.77 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.345e-05/0.6627, allocations: 48.78 kB / 0.7278 GB, free: 2.719 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.011e-05/0.6628, allocations: 7.984 kB / 0.7278 GB, free: 2.711 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.6631, allocations: 159.2 kB / 0.728 GB, free: 2.543 MB / 490.7 MB Notification: Performance of pre-optimization done (n=18): time 1.784e-06/0.6631, allocations: 4 kB / 0.728 GB, free: 2.539 MB / 490.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004249/0.6635, allocations: 159.5 kB / 0.7281 GB, free: 2.379 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.6636, allocations: 71.23 kB / 0.7282 GB, free: 2.297 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.6638, allocations: 191 kB / 0.7284 GB, free: 2.105 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.566e-05/0.6638, allocations: 33.7 kB / 0.7284 GB, free: 2.066 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.202e-05/0.6639, allocations: 88.91 kB / 0.7285 GB, free: 1.977 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.116e-05/0.664, allocations: 43.45 kB / 0.7286 GB, free: 1.934 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.664, allocations: 4.75 kB / 0.7286 GB, free: 1.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.6641, allocations: 330.8 kB / 0.7289 GB, free: 1.598 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.6643, allocations: 76.22 kB / 0.7289 GB, free: 1.523 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.6646, allocations: 138.1 kB / 0.7291 GB, free: 1.367 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.6647, allocations: 75.7 kB / 0.7291 GB, free: 1.293 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.6647, allocations: 0 / 0.7291 GB, free: 1.293 MB / 490.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005522/0.6653, allocations: 271.7 kB / 0.7294 GB, free: 1.023 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.6653, allocations: 4 kB / 0.7294 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.6653, allocations: 7.938 kB / 0.7294 GB, free: 1.012 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.6654, allocations: 0 / 0.7294 GB, free: 1.012 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.6655, allocations: 31.91 kB / 0.7294 GB, free: 0.9805 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.6656, allocations: 8.188 kB / 0.7295 GB, free: 0.9727 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00039/0.666, allocations: 47.81 kB / 0.7295 GB, free: 0.9258 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.441e-05/0.666, allocations: 35.98 kB / 0.7295 GB, free: 0.8906 MB / 490.7 MB 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.0001432/0.6662, allocations: 136 kB / 0.7297 GB, free: 0.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.6662, allocations: 23.78 kB / 0.7297 GB, free: 0.7266 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.787e-05/0.6663, allocations: 21.59 kB / 0.7297 GB, free: 0.7031 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.6663, allocations: 0 / 0.7297 GB, free: 0.7031 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.6663, allocations: 3.906 kB / 0.7297 GB, free: 0.6992 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.6663, allocations: 7.984 kB / 0.7297 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006502/0.667, allocations: 466.7 kB / 0.7302 GB, free: 196 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.667, allocations: 4 kB / 0.7302 GB, free: 192 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.632e-05/0.6671, allocations: 8 kB / 0.7302 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.6671, allocations: 0 / 0.7302 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.6671, allocations: 11.97 kB / 0.7302 GB, free: 172 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.6671, allocations: 0 / 0.7302 GB, free: 172 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.6671, allocations: 4 kB / 0.7302 GB, free: 168 kB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003095/0.6674, allocations: 257.4 kB / 0.7304 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.6676, allocations: 140.7 kB / 0.7306 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.6677, allocations: 11.91 kB / 0.7306 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.6679, allocations: 15.98 kB / 0.7306 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.6679, allocations: 11.97 kB / 0.7306 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.668, allocations: 23.98 kB / 0.7306 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0001217/0.6681, allocations: 157.9 kB / 0.7308 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000325/0.6685, allocations: 40 kB / 0.7308 GB, free: 15.49 MB / 0.4948 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.0001686/0.6686, allocations: 109.2 kB / 0.7309 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004653/0.6691, allocations: 259.4 kB / 0.7312 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.6691, allocations: 0 / 0.7312 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.6692, allocations: 67.88 kB / 0.7312 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.6695, allocations: 12.66 kB / 0.7313 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000514/0.67, allocations: 225.1 kB / 0.7315 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.6705, allocations: 0.7785 MB / 0.7322 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of SimCode: time 2.4e-07/0.6705, allocations: 0 / 0.7322 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of Templates: time 0.007355/0.6778, allocations: 3.986 MB / 0.7361 GB, free: 9.996 MB / 0.4948 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1)