Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001674/0.001674, allocations: 182.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8984/0.8984, allocations: 132.2 MB / 148.9 MB, free: 12.17 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.399/1.399, allocations: 222.9 MB / 403.4 MB, free: 7.07 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009623/0.0009623, allocations: 107 kB / 484.4 MB, free: 8.699 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.92 kB / 0.5618 GB, free: 71.05 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1412, allocations: 80.2 MB / 0.6402 GB, free: 6.789 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.003552/0.1448, allocations: 1.54 MB / 0.6417 GB, free: 5.23 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1461, allocations: 460.2 kB / 0.6421 GB, free: 4.777 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.652e-05/0.1462, allocations: 0 / 0.6421 GB, free: 4.777 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.1463, allocations: 3.938 kB / 0.6421 GB, free: 4.773 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.1465, allocations: 20.28 kB / 0.6421 GB, free: 4.754 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008903/0.1474, allocations: 218.3 kB / 0.6423 GB, free: 4.543 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.1478, allocations: 283.9 kB / 0.6426 GB, free: 4.266 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.967e-05/0.1478, allocations: 12 kB / 0.6426 GB, free: 4.254 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003892/0.1482, allocations: 222.3 kB / 0.6428 GB, free: 4.039 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002702/0.1485, allocations: 123.6 kB / 0.6429 GB, free: 3.918 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.1486, allocations: 8 kB / 0.643 GB, free: 3.91 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-05/0.1487, allocations: 12 kB / 0.643 GB, free: 3.898 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.1489, allocations: 67.78 kB / 0.643 GB, free: 3.832 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.1491, allocations: 119.4 kB / 0.6431 GB, free: 3.715 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.1495, allocations: 283.3 kB / 0.6434 GB, free: 3.438 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1495, allocations: 8 kB / 0.6434 GB, free: 3.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1495, allocations: 0 / 0.6434 GB, free: 3.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.1495, allocations: 0 / 0.6434 GB, free: 3.43 MB / 442.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.00153/0.1511, allocations: 0.7036 MB / 0.6441 GB, free: 2.652 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1511, allocations: 8.031 kB / 0.6441 GB, free: 2.645 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.1513, allocations: 35.72 kB / 0.6441 GB, free: 2.609 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004192/0.1517, allocations: 254.3 kB / 0.6444 GB, free: 2.324 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.1518, allocations: 11.94 kB / 0.6444 GB, free: 2.312 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.593e-05/0.1518, allocations: 16 kB / 0.6444 GB, free: 2.297 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1523, allocations: 150 kB / 0.6446 GB, free: 2.145 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1523, allocations: 7.938 kB / 0.6446 GB, free: 2.137 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.1523, allocations: 3.984 kB / 0.6446 GB, free: 2.133 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1523, allocations: 7.938 kB / 0.6446 GB, free: 2.125 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.1525, allocations: 45.97 kB / 0.6446 GB, free: 2.082 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004969/0.153, allocations: 313.3 kB / 0.6449 GB, free: 1.727 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.1534, allocations: 130.8 kB / 0.645 GB, free: 1.59 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.1536, allocations: 61.08 kB / 0.6451 GB, free: 1.527 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.1537, allocations: 4 kB / 0.6451 GB, free: 1.523 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006765/0.1544, allocations: 224.1 kB / 0.6453 GB, free: 1.293 MB / 442.7 MB Notification: Performance of pre-optimization done (n=18): time 2.204e-06/0.1544, allocations: 0 / 0.6453 GB, free: 1.293 MB / 442.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007751/0.1552, allocations: 270.2 kB / 0.6456 GB, free: 1.023 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.1552, allocations: 63.38 kB / 0.6456 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.1556, allocations: 287 kB / 0.6459 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.1557, allocations: 41.7 kB / 0.646 GB, free: 0.6094 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.1557, allocations: 85.14 kB / 0.646 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/0.1558, allocations: 47.44 kB / 0.6461 GB, free: 488 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.1561, allocations: 113.7 kB / 0.6462 GB, free: 364 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1562, allocations: 318.8 kB / 0.6465 GB, free: 36 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.1565, allocations: 96.25 kB / 0.6466 GB, free: 15.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.1568, allocations: 150.3 kB / 0.6467 GB, free: 15.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003211/0.1571, allocations: 248 kB / 0.647 GB, free: 15.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1571, allocations: 4 kB / 0.647 GB, free: 15.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006565/0.1578, allocations: 421.6 kB / 0.6474 GB, free: 15.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.1579, allocations: 71.39 kB / 0.6474 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1579, allocations: 4 kB / 0.6474 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1579, allocations: 3.938 kB / 0.6474 GB, free: 14.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.1581, allocations: 31.97 kB / 0.6475 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1581, allocations: 3.938 kB / 0.6475 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.1586, allocations: 59.8 kB / 0.6475 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/0.1587, allocations: 56.05 kB / 0.6476 GB, free: 14.82 MB / 458.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 (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.0001769/0.1589, allocations: 171 kB / 0.6478 GB, free: 14.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.105e-05/0.159, allocations: 27.62 kB / 0.6478 GB, free: 14.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.656e-05/0.159, allocations: 34.25 kB / 0.6478 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.159, allocations: 3.938 kB / 0.6478 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.1591, allocations: 0 / 0.6478 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.1591, allocations: 0 / 0.6478 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008125/0.1599, allocations: 0.5581 MB / 0.6484 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1599, allocations: 0 / 0.6484 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-05/0.1599, allocations: 11.92 kB / 0.6484 GB, free: 13.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.16, allocations: 7.984 kB / 0.6484 GB, free: 13.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.16, allocations: 15.98 kB / 0.6484 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.16, allocations: 4 kB / 0.6484 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.16, allocations: 3.938 kB / 0.6484 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008121/0.1608, allocations: 0.9357 MB / 0.6493 GB, free: 12.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.161, allocations: 160.6 kB / 0.6495 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.1611, allocations: 8 kB / 0.6495 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.1613, allocations: 11.98 kB / 0.6495 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.998e-05/0.1614, allocations: 15.97 kB / 0.6495 GB, free: 12.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.1614, allocations: 31.98 kB / 0.6495 GB, free: 12.69 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.1616, allocations: 213.9 kB / 0.6497 GB, free: 12.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1616, allocations: 0 / 0.6497 GB, free: 12.48 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003919/0.162, allocations: 48 kB / 0.6498 GB, free: 12.43 MB / 458.7 MB 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.0001642/0.1622, allocations: 120.9 kB / 0.6499 GB, free: 12.31 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005343/0.1627, allocations: 336 kB / 0.6502 GB, free: 11.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.1627, allocations: 4 kB / 0.6502 GB, free: 11.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1629, allocations: 67.91 kB / 0.6503 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.1632, allocations: 26.5 kB / 0.6503 GB, free: 11.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.164, allocations: 0.6061 MB / 0.6509 GB, free: 11.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1644, allocations: 0.7554 MB / 0.6516 GB, free: 10.43 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.1645, allocations: 37.42 kB / 0.6517 GB, free: 10.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.1646, allocations: 31.42 kB / 0.6517 GB, free: 10.36 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1646, allocations: 0 / 0.6517 GB, free: 10.36 MB / 458.7 MB Notification: Performance of Templates: time 0.007004/0.1716, allocations: 4.156 MB / 0.6558 GB, free: 6.223 MB / 458.7 MB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)