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.0008152/0.0008152, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009938/0.0009938, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8819/0.8819, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005716/0.0005719, allocations: 11.98 kB / 0.5068 GB, free: 5.289 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1522, allocations: 82.31 MB / 0.5872 GB, free: 3.156 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001493/0.1537, allocations: 1.167 MB / 0.5883 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007934/0.1545, allocations: 391.2 kB / 0.5887 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.328e-05/0.1546, allocations: 0 / 0.5887 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.728e-05/0.1546, allocations: 3.938 kB / 0.5887 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1548, allocations: 27.95 kB / 0.5887 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000652/0.1554, allocations: 202.8 kB / 0.5889 GB, free: 1.371 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.1556, allocations: 155.7 kB / 0.5891 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.1557, allocations: 4 kB / 0.5891 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002265/0.1559, allocations: 155.7 kB / 0.5892 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.1561, allocations: 127.7 kB / 0.5893 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.061e-05/0.1562, allocations: 8 kB / 0.5894 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.1562, allocations: 16 kB / 0.5894 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.223e-05/0.1563, allocations: 75.78 kB / 0.5894 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.466e-05/0.1564, allocations: 65.58 kB / 0.5895 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.1566, allocations: 211.8 kB / 0.5897 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.1566, allocations: 0 / 0.5897 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1566, allocations: 0 / 0.5897 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1566, allocations: 0 / 0.5897 GB, free: 0.5625 MB / 494.1 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.0009768/0.1576, allocations: 0.6141 MB / 0.5903 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.1576, allocations: 8.031 kB / 0.5903 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.571e-05/0.1577, allocations: 39.64 kB / 0.5904 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.1581, allocations: 250.4 kB / 0.5906 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.1581, allocations: 15.98 kB / 0.5906 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.1582, allocations: 15.98 kB / 0.5906 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.1585, allocations: 149.5 kB / 0.5908 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.1585, allocations: 0 / 0.5908 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.1585, allocations: 3.938 kB / 0.5908 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.1585, allocations: 4 kB / 0.5908 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.1586, allocations: 47.97 kB / 0.5908 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/0.159, allocations: 313.4 kB / 0.5911 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.1592, allocations: 130.6 kB / 0.5912 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1592, allocations: 4 kB / 0.5912 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003894/0.1596, allocations: 221.9 kB / 0.5915 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.393e-06/0.1596, allocations: 0 / 0.5915 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005431/0.1602, allocations: 267.2 kB / 0.5917 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.1602, allocations: 63.39 kB / 0.5918 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.1605, allocations: 290.9 kB / 0.592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.1606, allocations: 37.7 kB / 0.5921 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.1607, allocations: 89.14 kB / 0.5922 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.592e-05/0.1608, allocations: 51.42 kB / 0.5922 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-05/0.1608, allocations: 8 kB / 0.5922 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.161, allocations: 326.8 kB / 0.5925 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/0.1612, allocations: 96.11 kB / 0.5926 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.1614, allocations: 147.1 kB / 0.5928 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.1617, allocations: 158 kB / 0.5929 GB, free: 13 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1617, allocations: 0 / 0.5929 GB, free: 13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006826/0.1624, allocations: 411.1 kB / 0.5933 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.76e-05/0.1624, allocations: 75.38 kB / 0.5934 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1624, allocations: 0 / 0.5934 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1625, allocations: 4 kB / 0.5934 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.1626, allocations: 27.92 kB / 0.5934 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.1626, allocations: 11.94 kB / 0.5934 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/0.1631, allocations: 83.59 kB / 0.5935 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.909e-05/0.1632, allocations: 51.98 kB / 0.5936 GB, free: 12.33 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.1634, allocations: 172.2 kB / 0.5937 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.51e-05/0.1635, allocations: 27.66 kB / 0.5937 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.128e-05/0.1635, allocations: 30.25 kB / 0.5938 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1635, allocations: 4 kB / 0.5938 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1636, allocations: 0 / 0.5938 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1636, allocations: 3.984 kB / 0.5938 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.1643, allocations: 0.5606 MB / 0.5943 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1643, allocations: 0 / 0.5943 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.036e-05/0.1643, allocations: 7.938 kB / 0.5943 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1644, allocations: 4 kB / 0.5943 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.39e-05/0.1644, allocations: 15.97 kB / 0.5944 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1644, allocations: 0 / 0.5944 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1644, allocations: 7.984 kB / 0.5944 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003619/0.1648, allocations: 321.5 kB / 0.5947 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.1649, allocations: 152.7 kB / 0.5948 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.077e-05/0.165, allocations: 8 kB / 0.5948 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.1652, allocations: 19.92 kB / 0.5948 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.1652, allocations: 15.97 kB / 0.5949 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.1653, allocations: 31.98 kB / 0.5949 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001603/0.1655, allocations: 213.9 kB / 0.5951 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1655, allocations: 0 / 0.5951 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002974/0.1658, allocations: 47.98 kB / 0.5951 GB, free: 10.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001148/0.1659, allocations: 114.5 kB / 0.5952 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005801/0.1665, allocations: 346.7 kB / 0.5956 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1665, allocations: 0 / 0.5956 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.1666, allocations: 68.34 kB / 0.5956 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.1669, allocations: 30.55 kB / 0.5957 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006337/0.1675, allocations: 446.8 kB / 0.5961 GB, free: 9.566 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.1678, allocations: 0.753 MB / 0.5968 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.168, allocations: 37.42 kB / 0.5969 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1681, allocations: 35.42 kB / 0.5969 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1681, allocations: 0 / 0.5969 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of Templates: time 0.006762/0.1749, allocations: 3.92 MB / 0.6007 GB, free: 4.832 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: