Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00648/0.00648, allocations: 171.4 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7512/0.7512, allocations: 135.2 MB / 151.1 MB, free: 13.8 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 223.2 MB / 406.9 MB, free: 3.133 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009068/0.0009068, allocations: 103.4 kB / 489.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005413/0.0005416, allocations: 8 kB / 0.5691 GB, free: 14.16 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.4645, allocations: 82.3 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.6262, allocations: 113.2 MB / 0.76 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.6265, allocations: 75.95 kB / 0.7601 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01377/0.6403, allocations: 4.483 MB / 0.7644 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.334e-06/0.6404, allocations: 4 kB / 0.7644 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.559e-05/0.6404, allocations: 4 kB / 0.7644 GB, free: 14.24 MB / 0.5417 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.001234/0.6416, allocations: 0.6181 MB / 0.7651 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.6417, allocations: 8.031 kB / 0.7651 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.6418, allocations: 35.72 kB / 0.7651 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005277/0.6424, allocations: 250.5 kB / 0.7653 GB, free: 13.22 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.838e-05/0.6424, allocations: 16 kB / 0.7653 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/0.6425, allocations: 23.92 kB / 0.7654 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.6429, allocations: 137.5 kB / 0.7655 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.6429, allocations: 0 / 0.7655 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.6429, allocations: 11.92 kB / 0.7655 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.643, allocations: 3.984 kB / 0.7655 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.6431, allocations: 51.47 kB / 0.7656 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004697/0.6436, allocations: 333.3 kB / 0.7659 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.6439, allocations: 122.7 kB / 0.766 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.644, allocations: 15.92 kB / 0.766 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004432/0.6444, allocations: 213.2 kB / 0.7662 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.353e-06/0.6444, allocations: 0 / 0.7662 GB, free: 12.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0006047/0.645, allocations: 270.2 kB / 0.7665 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.19e-05/0.6451, allocations: 59.39 kB / 0.7665 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.6454, allocations: 254.1 kB / 0.7668 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.747e-05/0.6454, allocations: 37.7 kB / 0.7668 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/0.6455, allocations: 97.06 kB / 0.7669 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.992e-05/0.6456, allocations: 43.5 kB / 0.7669 GB, free: 11.46 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.6456, allocations: 12 kB / 0.767 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.6458, allocations: 322.8 kB / 0.7673 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.6461, allocations: 100.2 kB / 0.7674 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/0.6464, allocations: 154.4 kB / 0.7675 GB, free: 10.86 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.6467, allocations: 156.1 kB / 0.7677 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.6467, allocations: 0 / 0.7677 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008824/0.6476, allocations: 422.8 kB / 0.7681 GB, free: 10.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.6477, allocations: 79.38 kB / 0.7681 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.6477, allocations: 0 / 0.7681 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.6478, allocations: 8.188 kB / 0.7681 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.648, allocations: 27.92 kB / 0.7682 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.648, allocations: 7.984 kB / 0.7682 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.6484, allocations: 51.81 kB / 0.7682 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.6485, allocations: 55.97 kB / 0.7683 GB, free: 10.02 MB / 0.5417 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 () * Number of clocked 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.0002484/0.6488, allocations: 173.7 kB / 0.7684 GB, free: 9.844 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.6488, allocations: 31.58 kB / 0.7685 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.6489, allocations: 30.25 kB / 0.7685 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.6489, allocations: 0 / 0.7685 GB, free: 9.785 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.6489, allocations: 4 kB / 0.7685 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.6489, allocations: 3.984 kB / 0.7685 GB, free: 9.777 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009865/0.6499, allocations: 0.5549 MB / 0.7691 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.65, allocations: 0 / 0.7691 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.54e-05/0.65, allocations: 4 kB / 0.7691 GB, free: 9.164 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.65, allocations: 8 kB / 0.7691 GB, free: 9.156 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.6501, allocations: 19.91 kB / 0.7691 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6501, allocations: 0 / 0.7691 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6501, allocations: 4 kB / 0.7691 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.6506, allocations: 322.9 kB / 0.7694 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.6508, allocations: 160.7 kB / 0.7695 GB, free: 8.625 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.43e-05/0.6509, allocations: 8 kB / 0.7696 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.651, allocations: 11.98 kB / 0.7696 GB, free: 8.605 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.6511, allocations: 19.97 kB / 0.7696 GB, free: 8.586 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.943e-05/0.6512, allocations: 31.97 kB / 0.7696 GB, free: 8.555 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002148/0.6514, allocations: 205.9 kB / 0.7698 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6514, allocations: 0 / 0.7698 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003426/0.6518, allocations: 51.98 kB / 0.7699 GB, free: 8.301 MB / 0.5417 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) * Number of clocked states: 0 () * 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.0002286/0.652, allocations: 125.8 kB / 0.77 GB, free: 8.168 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0006657/0.6527, allocations: 360.2 kB / 0.7703 GB, free: 7.793 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6527, allocations: 0 / 0.7703 GB, free: 7.793 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.6528, allocations: 75.89 kB / 0.7704 GB, free: 7.719 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.6531, allocations: 24.83 kB / 0.7704 GB, free: 7.691 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008797/0.654, allocations: 441.1 kB / 0.7708 GB, free: 7.238 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.6545, allocations: 0.7477 MB / 0.7716 GB, free: 6.465 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001504/0.6547, allocations: 37.08 kB / 0.7716 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.6548, allocations: 35.42 kB / 0.7716 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of SimCode: time 2.274e-06/0.6548, allocations: 0 / 0.7716 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of Templates: time 0.008611/0.6634, allocations: 4.355 MB / 0.7759 GB, free: 2.047 MB / 0.5417 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)