Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7367/0.7367, allocations: 141.8 MB / 149.1 MB, free: 12.79 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 185 kB / 181.9 MB, free: 9.516 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 221.4 MB / 436 MB, free: 9.965 MB / 362.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 94.11 kB / 0.507 GB, free: 6.734 MB / 442.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.00172, allocations: 281.2 kB / 0.5884 GB, free: 98.47 MB / 458.9 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/6.122e-06, allocations: 0 / 0.6759 GB, free: 9.219 MB / 458.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4036, allocations: 82.77 MB / 0.7567 GB, free: 38.55 MB / 474.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.5386, allocations: 109.7 MB / 0.8638 GB, free: 14.19 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.5388, allocations: 71.95 kB / 0.8639 GB, free: 14.12 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.01518/0.554, allocations: 4.147 MB / 0.868 GB, free: 9.996 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.696e-05/0.5541, allocations: 4 kB / 0.868 GB, free: 9.992 MB / 0.5419 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.001026/0.5551, allocations: 0.5749 MB / 0.8685 GB, free: 9.348 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.5552, allocations: 8.531 kB / 0.8685 GB, free: 9.34 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.5553, allocations: 35.62 kB / 0.8686 GB, free: 9.301 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.5558, allocations: 251.2 kB / 0.8688 GB, free: 9.016 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.5558, allocations: 6.75 kB / 0.8688 GB, free: 9.012 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.249e-05/0.5559, allocations: 19.98 kB / 0.8688 GB, free: 8.992 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001562/0.5561, allocations: 43.92 kB / 0.8689 GB, free: 8.949 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00025/0.5563, allocations: 144 kB / 0.869 GB, free: 8.805 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.5564, allocations: 0 / 0.869 GB, free: 8.805 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.5564, allocations: 4 kB / 0.869 GB, free: 8.801 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.5564, allocations: 0 / 0.869 GB, free: 8.801 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.5569, allocations: 301.8 kB / 0.8693 GB, free: 8.469 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.5572, allocations: 114.7 kB / 0.8694 GB, free: 8.348 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001109/0.5573, allocations: 60.78 kB / 0.8695 GB, free: 8.285 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.5573, allocations: 4 kB / 0.8695 GB, free: 8.281 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.5577, allocations: 179.4 kB / 0.8696 GB, free: 8.098 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.5577, allocations: 0 / 0.8696 GB, free: 8.098 MB / 0.5419 GB Notification: Performance of matching and sorting (n=18): time 0.0004383/0.5581, allocations: 165.2 kB / 0.8698 GB, free: 7.93 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.5582, allocations: 59.41 kB / 0.8699 GB, free: 7.859 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/0.5585, allocations: 251.3 kB / 0.8701 GB, free: 7.605 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.5586, allocations: 29.7 kB / 0.8701 GB, free: 7.57 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.5587, allocations: 89.14 kB / 0.8702 GB, free: 7.48 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.5587, allocations: 39.52 kB / 0.8703 GB, free: 7.441 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.5588, allocations: 11.98 kB / 0.8703 GB, free: 7.43 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.5589, allocations: 322.8 kB / 0.8706 GB, free: 7.105 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.5591, allocations: 84.22 kB / 0.8707 GB, free: 7.02 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.5594, allocations: 142.1 kB / 0.8708 GB, free: 6.859 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.5595, allocations: 72.7 kB / 0.8709 GB, free: 6.785 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.5596, allocations: 0 / 0.8709 GB, free: 6.785 MB / 0.5419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005482/0.5601, allocations: 286.8 kB / 0.8711 GB, free: 6.504 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.5601, allocations: 4.562 kB / 0.8711 GB, free: 6.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.5602, allocations: 4 kB / 0.8711 GB, free: 6.496 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.5602, allocations: 192 / 0.8711 GB, free: 6.496 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.5603, allocations: 35.91 kB / 0.8712 GB, free: 6.461 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.5604, allocations: 0 / 0.8712 GB, free: 6.461 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.5608, allocations: 47.88 kB / 0.8712 GB, free: 6.414 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.094e-05/0.5609, allocations: 54.05 kB / 0.8713 GB, free: 6.363 MB / 0.5419 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.000151/0.561, allocations: 132 kB / 0.8714 GB, free: 6.227 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.5611, allocations: 27.62 kB / 0.8714 GB, free: 6.199 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.5612, allocations: 25.97 kB / 0.8714 GB, free: 6.176 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.5612, allocations: 4 kB / 0.8715 GB, free: 6.172 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5612, allocations: 2.438 kB / 0.8715 GB, free: 6.172 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.5612, allocations: 0 / 0.8715 GB, free: 6.172 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.5619, allocations: 498.6 kB / 0.8719 GB, free: 5.641 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.5619, allocations: 0 / 0.8719 GB, free: 5.641 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.967e-05/0.562, allocations: 11.98 kB / 0.8719 GB, free: 5.629 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.922e-06/0.562, allocations: 3.906 kB / 0.8719 GB, free: 5.625 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.5621, allocations: 11.98 kB / 0.872 GB, free: 5.613 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5621, allocations: 0 / 0.872 GB, free: 5.613 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5621, allocations: 0 / 0.872 GB, free: 5.613 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003562/0.5624, allocations: 266.1 kB / 0.8722 GB, free: 5.34 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.5626, allocations: 168.6 kB / 0.8724 GB, free: 5.156 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.944e-05/0.5627, allocations: 8 kB / 0.8724 GB, free: 5.148 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.5629, allocations: 7.984 kB / 0.8724 GB, free: 5.141 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.789e-05/0.563, allocations: 11.98 kB / 0.8724 GB, free: 5.129 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.563, allocations: 35.97 kB / 0.8724 GB, free: 5.094 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0002204/0.5633, allocations: 195.1 kB / 0.8726 GB, free: 4.902 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.00034/0.5636, allocations: 52.36 kB / 0.8727 GB, free: 4.852 MB / 0.5419 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.0001718/0.5638, allocations: 115 kB / 0.8728 GB, free: 4.73 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0004724/0.5643, allocations: 267.3 kB / 0.873 GB, free: 4.457 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5643, allocations: 0 / 0.873 GB, free: 4.457 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.5644, allocations: 67.97 kB / 0.8731 GB, free: 4.391 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.5647, allocations: 14.5 kB / 0.8731 GB, free: 4.375 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006434/0.5653, allocations: 274.2 kB / 0.8734 GB, free: 4.09 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005247/0.5659, allocations: 0.8015 MB / 0.8742 GB, free: 3.262 MB / 0.5419 GB Notification: Performance of SimCode: time 2.21e-07/0.5659, allocations: 3.938 kB / 0.8742 GB, free: 3.258 MB / 0.5419 GB Notification: Performance of Templates: time 0.008986/0.5749, allocations: 4.341 MB / 0.8784 GB, free: 14.93 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)