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.001175/0.00118, allocations: 109.4 kB / 16.41 MB, free: 6.488 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.001236/0.001235, 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8222/0.8222, allocations: 135.1 MB / 426.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 65.31 kB / 0.5862 GB, free: 21.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.137, allocations: 80.92 MB / 0.6653 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002669/0.1397, allocations: 1.483 MB / 0.6667 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009596/0.1407, allocations: 415.4 kB / 0.6671 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.868e-05/0.1408, allocations: 0 / 0.6671 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.1409, allocations: 7.875 kB / 0.6671 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.1411, allocations: 32.22 kB / 0.6671 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007397/0.1418, allocations: 242.9 kB / 0.6674 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.1422, allocations: 315.5 kB / 0.6677 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.1423, allocations: 7.984 kB / 0.6677 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.1426, allocations: 191.7 kB / 0.6679 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.1428, allocations: 108.1 kB / 0.668 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.673e-05/0.1429, allocations: 20 kB / 0.668 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.1429, allocations: 16 kB / 0.668 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1431, allocations: 83.72 kB / 0.6681 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.1432, allocations: 127.4 kB / 0.6682 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.1435, allocations: 271.1 kB / 0.6685 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1435, allocations: 4 kB / 0.6685 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1435, allocations: 0 / 0.6685 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.905e-06/0.1435, allocations: 0 / 0.6685 GB, free: 2.566 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.001208/0.1447, allocations: 0.6959 MB / 0.6691 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1448, allocations: 13.11 kB / 0.6692 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.1449, allocations: 32.66 kB / 0.6692 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.1452, allocations: 271.5 kB / 0.6694 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.1452, allocations: 8.375 kB / 0.6695 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.125e-05/0.1453, allocations: 27.92 kB / 0.6695 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002996/0.1456, allocations: 145.5 kB / 0.6696 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1456, allocations: 0 / 0.6696 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.1457, allocations: 0 / 0.6696 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1457, allocations: 0 / 0.6696 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.1458, allocations: 55.84 kB / 0.6697 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000337/0.1461, allocations: 313.3 kB / 0.67 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.1464, allocations: 138.8 kB / 0.6701 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.1466, allocations: 56.83 kB / 0.6702 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1466, allocations: 0 / 0.6702 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004249/0.147, allocations: 227.6 kB / 0.6704 GB, free: 424 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/0.147, allocations: 0 / 0.6704 GB, free: 424 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005567/0.1476, allocations: 267.4 kB / 0.6706 GB, free: 152 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.1476, allocations: 63.33 kB / 0.6707 GB, free: 76 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.1479, allocations: 287 kB / 0.671 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.299e-05/0.148, allocations: 41.7 kB / 0.671 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/0.1481, allocations: 97.03 kB / 0.6711 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.1481, allocations: 39.59 kB / 0.6711 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.1483, allocations: 105.6 kB / 0.6712 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.1484, allocations: 322.8 kB / 0.6715 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.1486, allocations: 92.17 kB / 0.6716 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.1488, allocations: 152.6 kB / 0.6718 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.1491, allocations: 242.9 kB / 0.672 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1491, allocations: 4 kB / 0.672 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000637/0.1498, allocations: 404.7 kB / 0.6724 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.791e-05/0.1499, allocations: 79.38 kB / 0.6725 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1499, allocations: 0 / 0.6725 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1499, allocations: 4 kB / 0.6725 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.1501, allocations: 27.91 kB / 0.6725 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.1501, allocations: 7.984 kB / 0.6725 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.1506, allocations: 63.98 kB / 0.6726 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.181e-05/0.1507, allocations: 51.98 kB / 0.6726 GB, free: 13.98 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.0001856/0.1509, allocations: 165.8 kB / 0.6728 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.1509, allocations: 31.56 kB / 0.6728 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.38e-05/0.151, allocations: 30.25 kB / 0.6728 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.151, allocations: 4 kB / 0.6728 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.151, allocations: 7.984 kB / 0.6729 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.151, allocations: 0 / 0.6729 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007708/0.1518, allocations: 0.5662 MB / 0.6734 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1518, allocations: 0 / 0.6734 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.913e-05/0.1519, allocations: 15.98 kB / 0.6734 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1519, allocations: 0 / 0.6734 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.1519, allocations: 11.98 kB / 0.6734 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1519, allocations: 0 / 0.6734 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1519, allocations: 0 / 0.6734 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004014/0.1523, allocations: 334.8 kB / 0.6738 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.1525, allocations: 156.7 kB / 0.6739 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.1526, allocations: 11.98 kB / 0.6739 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.1528, allocations: 8 kB / 0.6739 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.361e-05/0.1529, allocations: 19.97 kB / 0.6739 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.1529, allocations: 27.98 kB / 0.674 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001734/0.1531, allocations: 209.9 kB / 0.6742 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1531, allocations: 4 kB / 0.6742 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003255/0.1534, allocations: 44 kB / 0.6742 GB, free: 12.25 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.0001375/0.1536, allocations: 121.2 kB / 0.6743 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005388/0.1541, allocations: 352.4 kB / 0.6747 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1541, allocations: 0 / 0.6747 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.1543, allocations: 71.91 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.0003445/0.1546, allocations: 22.38 kB / 0.6748 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006537/0.1553, allocations: 409.4 kB / 0.6751 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1556, allocations: 0.7396 MB / 0.6759 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1557, allocations: 39.41 kB / 0.6759 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.1557, allocations: 0 / 0.6759 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of Templates: time 0.00542/0.1611, allocations: 3.018 MB / 0.6789 GB, free: 7.418 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)