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.00129/0.00129, allocations: 106.1 kB / 16.41 MB, free: 6.504 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.001353/0.001353, allocations: 189.6 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.283/1.283, 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.7752/0.7752, allocations: 135.1 MB / 426.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 62.44 kB / 0.5862 GB, free: 21.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1427, allocations: 80.92 MB / 0.6653 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002335/0.1451, allocations: 1.476 MB / 0.6667 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009858/0.1461, allocations: 423.3 kB / 0.6671 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.744e-05/0.1461, allocations: 0 / 0.6671 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.1463, allocations: 7.875 kB / 0.6671 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.1464, allocations: 24.23 kB / 0.6671 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006868/0.1471, allocations: 250.5 kB / 0.6674 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003297/0.1474, allocations: 315.5 kB / 0.6677 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.276e-05/0.1475, allocations: 7.984 kB / 0.6677 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.1477, allocations: 191.7 kB / 0.6679 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.1479, allocations: 113.2 kB / 0.668 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.148, allocations: 20 kB / 0.668 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.469e-05/0.1481, allocations: 16 kB / 0.668 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1482, allocations: 75.78 kB / 0.6681 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.1483, allocations: 123.4 kB / 0.6682 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.1486, allocations: 287.1 kB / 0.6685 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1486, allocations: 4 kB / 0.6685 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1486, allocations: 0 / 0.6685 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.1486, allocations: 0 / 0.6685 GB, free: 2.555 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.001108/0.1498, allocations: 0.696 MB / 0.6692 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.1498, allocations: 9.109 kB / 0.6692 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.057e-05/0.1499, allocations: 28.66 kB / 0.6692 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.1502, allocations: 259.6 kB / 0.6694 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.045e-05/0.1502, allocations: 20.31 kB / 0.6695 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.631e-05/0.1503, allocations: 27.86 kB / 0.6695 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.1506, allocations: 149 kB / 0.6696 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1506, allocations: 0 / 0.6696 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.1506, allocations: 0 / 0.6696 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1506, allocations: 0 / 0.6696 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1507, allocations: 47.97 kB / 0.6697 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003054/0.151, allocations: 313.3 kB / 0.67 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002758/0.1513, allocations: 146.7 kB / 0.6701 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.1515, allocations: 56.84 kB / 0.6702 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.1515, allocations: 0 / 0.6702 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004098/0.1519, allocations: 225.5 kB / 0.6704 GB, free: 424 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.1519, allocations: 0 / 0.6704 GB, free: 424 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005483/0.1525, allocations: 269.2 kB / 0.6706 GB, free: 148 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.1525, allocations: 55.41 kB / 0.6707 GB, free: 80 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.1528, allocations: 287 kB / 0.671 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/0.1529, allocations: 41.7 kB / 0.671 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.205e-05/0.1529, allocations: 101 kB / 0.6711 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.153, allocations: 39.61 kB / 0.6711 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.1531, allocations: 101.6 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.1533, allocations: 322.8 kB / 0.6715 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.1535, allocations: 96.17 kB / 0.6716 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002277/0.1537, allocations: 148.6 kB / 0.6718 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003057/0.154, allocations: 243.1 kB / 0.672 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.154, allocations: 7.938 kB / 0.672 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006335/0.1547, allocations: 420 kB / 0.6724 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.152e-05/0.1547, allocations: 71.39 kB / 0.6725 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.1548, allocations: 0 / 0.6725 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1548, allocations: 4 kB / 0.6725 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1549, allocations: 23.97 kB / 0.6725 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.155, allocations: 7.938 kB / 0.6725 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.1554, allocations: 63.98 kB / 0.6726 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.178e-05/0.1555, allocations: 55.97 kB / 0.6726 GB, free: 13.97 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.0001614/0.1557, allocations: 169.7 kB / 0.6728 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.1557, allocations: 35.55 kB / 0.6728 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.1558, allocations: 34.25 kB / 0.6729 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1558, allocations: 0 / 0.6729 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1558, allocations: 4 kB / 0.6729 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1558, allocations: 4 kB / 0.6729 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007346/0.1566, allocations: 0.5529 MB / 0.6734 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1566, allocations: 0 / 0.6734 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.87e-05/0.1566, allocations: 19.86 kB / 0.6734 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1566, allocations: 0 / 0.6734 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.1567, allocations: 11.98 kB / 0.6734 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1567, allocations: 4 kB / 0.6734 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1567, allocations: 0 / 0.6734 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.1571, allocations: 332.8 kB / 0.6738 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.1572, allocations: 152.7 kB / 0.6739 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.1573, allocations: 11.98 kB / 0.6739 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.1575, allocations: 11.98 kB / 0.6739 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.1576, allocations: 15.98 kB / 0.6739 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.1576, allocations: 27.98 kB / 0.674 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001797/0.1578, allocations: 209.9 kB / 0.6742 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.502e-06/0.1578, allocations: 0 / 0.6742 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003014/0.1581, allocations: 55.94 kB / 0.6742 GB, free: 12.24 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.0001308/0.1583, allocations: 117.2 kB / 0.6743 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005254/0.1588, allocations: 350.4 kB / 0.6747 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1588, allocations: 0 / 0.6747 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1589, allocations: 70 kB / 0.6747 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.1593, allocations: 24.86 kB / 0.6748 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006056/0.1599, allocations: 409.7 kB / 0.6751 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.1602, allocations: 0.7473 MB / 0.6759 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.1603, allocations: 47.36 kB / 0.6759 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1603, allocations: 0 / 0.6759 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.004339/0.1647, allocations: 3.018 MB / 0.6789 GB, free: 7.398 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)