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.001108/0.001108, allocations: 109.3 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.00115/0.00115, allocations: 183 kB / 17.34 MB, free: 5.766 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.33/1.33, 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/package.mo): time 0.8376/0.8376, allocations: 132.2 MB / 423.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001157, allocations: 66.52 kB / 0.582 GB, free: 23.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1303, allocations: 80.21 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002559/0.1329, allocations: 1.47 MB / 0.6617 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009131/0.1339, allocations: 432.8 kB / 0.6621 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.1339, allocations: 0 / 0.6621 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.756e-05/0.1341, allocations: 7.922 kB / 0.6621 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.1342, allocations: 28.22 kB / 0.6622 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000751/0.1349, allocations: 233.7 kB / 0.6624 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004063/0.1353, allocations: 319.5 kB / 0.6627 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.44e-05/0.1354, allocations: 8 kB / 0.6627 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.1357, allocations: 199.7 kB / 0.6629 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.136, allocations: 112.7 kB / 0.663 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.118e-05/0.1361, allocations: 16 kB / 0.663 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.489e-05/0.1361, allocations: 20 kB / 0.663 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1363, allocations: 75.72 kB / 0.6631 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.1364, allocations: 123.4 kB / 0.6632 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.1367, allocations: 279.1 kB / 0.6635 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1367, allocations: 0 / 0.6635 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1367, allocations: 0 / 0.6635 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.1367, 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.001273/0.138, allocations: 0.7077 MB / 0.6642 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.138, allocations: 8.031 kB / 0.6642 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.1382, allocations: 32.66 kB / 0.6642 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.1384, allocations: 259.5 kB / 0.6645 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1385, allocations: 16.36 kB / 0.6645 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.1386, allocations: 15.94 kB / 0.6645 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.1389, allocations: 152.9 kB / 0.6647 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1389, allocations: 7.938 kB / 0.6647 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.1389, allocations: 3.984 kB / 0.6647 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1389, allocations: 7.938 kB / 0.6647 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.1391, allocations: 39.98 kB / 0.6647 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003399/0.1394, allocations: 313.4 kB / 0.665 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.1397, allocations: 138.7 kB / 0.6651 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.1398, allocations: 60.83 kB / 0.6652 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.1399, allocations: 0 / 0.6652 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.1403, allocations: 215.7 kB / 0.6654 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.1403, allocations: 0 / 0.6654 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005703/0.1409, allocations: 275.3 kB / 0.6657 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.141, allocations: 63.39 kB / 0.6657 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.1412, allocations: 290.9 kB / 0.666 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.1413, allocations: 41.7 kB / 0.666 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.1414, allocations: 89.14 kB / 0.6661 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.1414, allocations: 35.61 kB / 0.6662 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1416, allocations: 109.6 kB / 0.6663 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1417, allocations: 322.8 kB / 0.6666 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002104/0.1419, allocations: 100.1 kB / 0.6667 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.1422, allocations: 146.4 kB / 0.6668 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.1425, allocations: 248 kB / 0.667 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1425, allocations: 0 / 0.667 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006601/0.1432, allocations: 412.7 kB / 0.6674 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.931e-05/0.1433, allocations: 71.39 kB / 0.6675 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1433, allocations: 0 / 0.6675 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.1433, allocations: 7.984 kB / 0.6675 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.1435, allocations: 23.92 kB / 0.6675 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.1436, allocations: 4 kB / 0.6675 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000531/0.1441, allocations: 59.8 kB / 0.6676 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/0.1442, allocations: 56.02 kB / 0.6677 GB, free: 2.434 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.0001954/0.1444, allocations: 177.7 kB / 0.6678 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.1444, allocations: 27.66 kB / 0.6679 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.1445, allocations: 30.25 kB / 0.6679 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1445, allocations: 4 kB / 0.6679 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1445, allocations: 0 / 0.6679 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1445, allocations: 0 / 0.6679 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007874/0.1453, allocations: 0.5701 MB / 0.6684 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1453, allocations: 8 kB / 0.6684 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.66e-05/0.1454, allocations: 4 kB / 0.6685 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1454, allocations: 3.984 kB / 0.6685 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.1454, allocations: 11.98 kB / 0.6685 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.1454, allocations: 3.984 kB / 0.6685 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1455, allocations: 0 / 0.6685 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.1459, allocations: 326.9 kB / 0.6688 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.1461, allocations: 156.7 kB / 0.6689 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.1461, allocations: 12 kB / 0.6689 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.1464, allocations: 7.984 kB / 0.669 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.1464, allocations: 15.98 kB / 0.669 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.078e-05/0.1465, allocations: 31.97 kB / 0.669 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001829/0.1467, allocations: 205.9 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1467, allocations: 0 / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000344/0.147, allocations: 55.98 kB / 0.6692 GB, free: 0.707 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.0001355/0.1472, allocations: 114.2 kB / 0.6694 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005614/0.1477, allocations: 352.3 kB / 0.6697 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1477, allocations: 0 / 0.6697 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.1479, allocations: 71.91 kB / 0.6698 GB, free: 148 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.1483, allocations: 23.12 kB / 0.6698 GB, free: 124 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006798/0.149, allocations: 410 kB / 0.6702 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1493, allocations: 0.7396 MB / 0.6709 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.1494, allocations: 39.42 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.1494, allocations: 4 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of Templates: time 0.005338/0.1548, allocations: 3.03 MB / 0.6739 GB, free: 11.87 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)