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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 107.6 kB / 16.38 MB, free: 5.957 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.001141/0.001141, allocations: 193.4 kB / 17.32 MB, free: 5.582 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8193/0.8193, allocations: 132.2 MB / 423.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 70.64 kB / 0.5819 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1349, allocations: 80.2 MB / 0.6602 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.00233/0.1372, allocations: 1.48 MB / 0.6617 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008567/0.1381, allocations: 419.3 kB / 0.6621 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.013e-05/0.1382, allocations: 0 / 0.6621 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.495e-05/0.1383, allocations: 7.875 kB / 0.6621 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.76e-05/0.1384, allocations: 36.22 kB / 0.6621 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006533/0.1391, allocations: 240.7 kB / 0.6624 GB, free: 8.152 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.1394, allocations: 319.5 kB / 0.6627 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.143e-05/0.1395, allocations: 7.984 kB / 0.6627 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.1397, allocations: 191.7 kB / 0.6629 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.1399, allocations: 108.1 kB / 0.663 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.14, allocations: 16 kB / 0.663 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.704e-05/0.14, allocations: 27.94 kB / 0.663 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.686e-05/0.1401, allocations: 75.78 kB / 0.6631 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.1403, allocations: 123.4 kB / 0.6632 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.1406, allocations: 275.1 kB / 0.6635 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1406, allocations: 4 kB / 0.6635 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1406, allocations: 0 / 0.6635 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.1406, allocations: 0 / 0.6635 GB, free: 7.027 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.001116/0.1417, allocations: 0.696 MB / 0.6641 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.1418, allocations: 12.03 kB / 0.6641 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.653e-05/0.1419, allocations: 32.66 kB / 0.6642 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.1421, allocations: 271.4 kB / 0.6644 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.1422, allocations: 12.38 kB / 0.6644 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.1422, allocations: 19.92 kB / 0.6645 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1425, allocations: 145.5 kB / 0.6646 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1426, allocations: 3.938 kB / 0.6646 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.1426, allocations: 0 / 0.6646 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.1426, allocations: 4 kB / 0.6646 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.1427, allocations: 47.95 kB / 0.6647 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003259/0.1431, allocations: 317.4 kB / 0.665 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002829/0.1434, allocations: 138.7 kB / 0.6651 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.1435, allocations: 52.83 kB / 0.6651 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.1435, allocations: 4 kB / 0.6651 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.1439, allocations: 225 kB / 0.6654 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.663e-06/0.1439, allocations: 0 / 0.6654 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005712/0.1445, allocations: 267.9 kB / 0.6656 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.1446, allocations: 67.39 kB / 0.6657 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.1448, allocations: 290.9 kB / 0.666 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.1449, allocations: 33.7 kB / 0.666 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.145, allocations: 93.12 kB / 0.6661 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.145, allocations: 43.53 kB / 0.6661 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.1452, allocations: 109.6 kB / 0.6662 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.1453, allocations: 322.8 kB / 0.6665 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.1455, allocations: 92.11 kB / 0.6666 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.1457, allocations: 150.4 kB / 0.6668 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.146, allocations: 240.1 kB / 0.667 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1461, allocations: 0 / 0.667 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000648/0.1467, allocations: 412.5 kB / 0.6674 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.268e-05/0.1468, allocations: 79.38 kB / 0.6675 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1468, allocations: 4 kB / 0.6675 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1468, allocations: 192 / 0.6675 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.147, allocations: 31.92 kB / 0.6675 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.147, allocations: 3.984 kB / 0.6675 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.1475, allocations: 59.8 kB / 0.6676 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.258e-05/0.1476, allocations: 59.98 kB / 0.6676 GB, free: 2.426 MB / 0.4981 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.0001821/0.1478, allocations: 169.7 kB / 0.6678 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.208e-05/0.1478, allocations: 31.66 kB / 0.6678 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.31e-05/0.1479, allocations: 30.25 kB / 0.6678 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1479, allocations: 0 / 0.6678 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.1479, allocations: 3.984 kB / 0.6678 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1479, allocations: 0 / 0.6678 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.1487, allocations: 0.5645 MB / 0.6684 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1487, allocations: 0 / 0.6684 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.617e-05/0.1487, allocations: 8 kB / 0.6684 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.311e-06/0.1487, allocations: 7.984 kB / 0.6684 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.1488, allocations: 7.984 kB / 0.6684 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1488, allocations: 7.938 kB / 0.6684 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1488, allocations: 0 / 0.6684 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003997/0.1492, allocations: 320.9 kB / 0.6687 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.1494, allocations: 156.7 kB / 0.6689 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.21e-05/0.1494, allocations: 11.98 kB / 0.6689 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1496, allocations: 4 kB / 0.6689 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.1497, allocations: 27.89 kB / 0.6689 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.1497, allocations: 31.98 kB / 0.669 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001724/0.1499, allocations: 209.9 kB / 0.6692 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1499, allocations: 0 / 0.6692 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003191/0.1503, allocations: 48 kB / 0.6692 GB, free: 0.7109 MB / 0.4981 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.0001288/0.1504, allocations: 114.3 kB / 0.6693 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005301/0.1509, allocations: 350.4 kB / 0.6696 GB, free: 224 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1509, allocations: 384 / 0.6696 GB, free: 224 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.1511, allocations: 78.09 kB / 0.6697 GB, free: 148 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.1514, allocations: 23.41 kB / 0.6697 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006728/0.1521, allocations: 413.4 kB / 0.6701 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.1524, allocations: 0.7474 MB / 0.6709 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1525, allocations: 35.41 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.1525, allocations: 0 / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of Templates: time 0.004597/0.1571, allocations: 3.01 MB / 0.6738 GB, free: 11.89 MB / 0.5137 GB 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)