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/ModelicaServices 4.0.0+maint.om/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001691/0.001691, allocations: 106.9 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.877/0.877, allocations: 135.2 MB / 426.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 69.98 kB / 0.5863 GB, free: 21.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1457, allocations: 80.93 MB / 0.6653 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002558/0.1483, allocations: 1.469 MB / 0.6668 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008731/0.1492, allocations: 419.4 kB / 0.6672 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.413e-05/0.1492, allocations: 4 kB / 0.6672 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.1493, allocations: 7.875 kB / 0.6672 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.913e-05/0.1494, allocations: 24.22 kB / 0.6672 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006755/0.1501, allocations: 239 kB / 0.6674 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003946/0.1505, allocations: 303.5 kB / 0.6677 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.726e-05/0.1505, allocations: 4 kB / 0.6677 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.1508, allocations: 191.7 kB / 0.6679 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.151, allocations: 116.1 kB / 0.668 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.131e-05/0.1511, allocations: 16 kB / 0.668 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.148e-05/0.1511, allocations: 20 kB / 0.668 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.1512, allocations: 75.72 kB / 0.6681 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.1513, allocations: 127.4 kB / 0.6682 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003405/0.1517, allocations: 283 kB / 0.6685 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1517, allocations: 7.922 kB / 0.6685 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.174e-06/0.1517, allocations: 0 / 0.6685 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.048e-05/0.1517, allocations: 0 / 0.6685 GB, free: 2.492 MB / 0.4981 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.001237/0.1529, allocations: 0.7076 MB / 0.6692 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.153, allocations: 9.109 kB / 0.6692 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/0.1531, allocations: 36.75 kB / 0.6693 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.1534, allocations: 259.8 kB / 0.6695 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.835e-05/0.1534, allocations: 16.31 kB / 0.6695 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.896e-05/0.1535, allocations: 23.91 kB / 0.6695 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.1538, allocations: 145.5 kB / 0.6697 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1538, allocations: 0 / 0.6697 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.1538, allocations: 4 kB / 0.6697 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1538, allocations: 4 kB / 0.6697 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.154, allocations: 47.97 kB / 0.6697 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004168/0.1544, allocations: 317.4 kB / 0.67 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.1547, allocations: 118.6 kB / 0.6701 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.1548, allocations: 48.83 kB / 0.6702 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.1548, allocations: 4 kB / 0.6702 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000426/0.1552, allocations: 217.6 kB / 0.6704 GB, free: 380 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.302e-06/0.1552, allocations: 0 / 0.6704 GB, free: 380 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006058/0.1559, allocations: 275 kB / 0.6707 GB, free: 100 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.1559, allocations: 59.39 kB / 0.6707 GB, free: 28 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.1562, allocations: 291 kB / 0.671 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.328e-05/0.1562, allocations: 41.7 kB / 0.671 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.1563, allocations: 89.12 kB / 0.6711 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.31e-05/0.1564, allocations: 51.53 kB / 0.6712 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.1565, allocations: 109.8 kB / 0.6713 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1567, allocations: 318.8 kB / 0.6716 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002265/0.1569, allocations: 100.2 kB / 0.6717 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.1571, allocations: 156.6 kB / 0.6718 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.1575, allocations: 235.3 kB / 0.6721 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1575, allocations: 0 / 0.6721 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007024/0.1582, allocations: 417.8 kB / 0.6724 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.203e-05/0.1583, allocations: 71.39 kB / 0.6725 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1583, allocations: 12.17 kB / 0.6725 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1583, allocations: 0 / 0.6725 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.1584, allocations: 31.97 kB / 0.6726 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.1585, allocations: 3.938 kB / 0.6726 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/0.1589, allocations: 51.91 kB / 0.6726 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.171e-05/0.159, allocations: 55.98 kB / 0.6727 GB, free: 13.92 MB / 0.5137 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001863/0.1592, allocations: 173.7 kB / 0.6728 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.1592, allocations: 39.67 kB / 0.6729 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.744e-05/0.1593, allocations: 34.25 kB / 0.6729 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.1593, allocations: 0 / 0.6729 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.1593, allocations: 0 / 0.6729 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1593, allocations: 3.938 kB / 0.6729 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008303/0.1601, allocations: 0.5607 MB / 0.6735 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1601, allocations: 0 / 0.6735 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.407e-05/0.1602, allocations: 11.92 kB / 0.6735 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.1602, allocations: 11.98 kB / 0.6735 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.1602, allocations: 7.984 kB / 0.6735 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1602, allocations: 0 / 0.6735 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1602, allocations: 4 kB / 0.6735 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004444/0.1607, allocations: 325.3 kB / 0.6738 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.1608, allocations: 152.9 kB / 0.6739 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.625e-05/0.1609, allocations: 11.98 kB / 0.674 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.1611, allocations: 11.98 kB / 0.674 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.1612, allocations: 19.98 kB / 0.674 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.1612, allocations: 23.98 kB / 0.674 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001982/0.1614, allocations: 213.9 kB / 0.6742 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1614, allocations: 0 / 0.6742 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000304/0.1617, allocations: 48 kB / 0.6743 GB, free: 12.18 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001277/0.1618, allocations: 117.2 kB / 0.6744 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005626/0.1624, allocations: 322.8 kB / 0.6747 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1624, allocations: 0 / 0.6747 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.1625, allocations: 66.77 kB / 0.6747 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.1629, allocations: 27.91 kB / 0.6748 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000724/0.1636, allocations: 428.7 kB / 0.6752 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.164, allocations: 0.745 MB / 0.6759 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1641, allocations: 35.41 kB / 0.6759 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of SimCode: time 3.9e-07/0.1641, allocations: 0 / 0.6759 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of Templates: time 0.005107/0.1692, allocations: 3.017 MB / 0.6789 GB, free: 7.359 MB / 0.5137 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)