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-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_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.0009394/0.0009394, allocations: 99.47 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.0008531/0.0008532, 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.234/1.234, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9076/0.9076, allocations: 135.2 MB / 426.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002716/0.0002716, allocations: 8.875 kB / 0.5068 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1414, allocations: 82.32 MB / 0.5872 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.001484/0.1429, allocations: 1.163 MB / 0.5883 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007743/0.1437, allocations: 395.1 kB / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.282e-05/0.1438, allocations: 0 / 0.5887 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.1438, allocations: 3.938 kB / 0.5887 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.655e-05/0.1439, allocations: 19.97 kB / 0.5887 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00066/0.1446, allocations: 206.1 kB / 0.5889 GB, free: 1.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.1448, allocations: 155.7 kB / 0.5891 GB, free: 1.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.1449, allocations: 7.984 kB / 0.5891 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.1452, allocations: 159.7 kB / 0.5892 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1454, allocations: 127.7 kB / 0.5893 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.1454, allocations: 8 kB / 0.5894 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.271e-05/0.1455, allocations: 12 kB / 0.5894 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.939e-05/0.1456, allocations: 75.78 kB / 0.5894 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.1456, allocations: 65.58 kB / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.1458, allocations: 207.8 kB / 0.5897 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.1459, allocations: 0 / 0.5897 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1459, allocations: 0 / 0.5897 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1459, allocations: 0 / 0.5897 GB, free: 0.5117 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.0009601/0.1468, allocations: 0.6219 MB / 0.5903 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.1469, allocations: 12.03 kB / 0.5903 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.147, allocations: 27.72 kB / 0.5903 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.1473, allocations: 254.4 kB / 0.5906 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1473, allocations: 12 kB / 0.5906 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.1474, allocations: 19.98 kB / 0.5906 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.1477, allocations: 153.5 kB / 0.5908 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1477, allocations: 0 / 0.5908 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.42e-05/0.1477, allocations: 4 kB / 0.5908 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1477, allocations: 0 / 0.5908 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.1478, allocations: 43.97 kB / 0.5908 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003241/0.1482, allocations: 313.4 kB / 0.5911 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.1484, allocations: 138.6 kB / 0.5912 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.1484, allocations: 3.984 kB / 0.5912 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.1488, allocations: 218.5 kB / 0.5915 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.1488, allocations: 0 / 0.5915 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0004993/0.1493, allocations: 269.2 kB / 0.5917 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1494, allocations: 59.41 kB / 0.5918 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.1496, allocations: 290.9 kB / 0.592 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.1497, allocations: 37.69 kB / 0.5921 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/0.1498, allocations: 93.14 kB / 0.5922 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/0.1498, allocations: 43.44 kB / 0.5922 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.783e-05/0.1499, allocations: 8 kB / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.744e-05/0.15, allocations: 330.8 kB / 0.5925 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.1502, allocations: 100.1 kB / 0.5926 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.1504, allocations: 142.4 kB / 0.5928 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.1506, allocations: 158 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1506, allocations: 0 / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006127/0.1513, allocations: 411.1 kB / 0.5933 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.1513, allocations: 71.39 kB / 0.5934 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.1513, allocations: 11.94 kB / 0.5934 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.1514, allocations: 0 / 0.5934 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1515, allocations: 32.16 kB / 0.5934 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.1515, allocations: 7.938 kB / 0.5934 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004787/0.152, allocations: 75.7 kB / 0.5935 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.386e-05/0.1521, allocations: 51.98 kB / 0.5935 GB, free: 12.27 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.0001702/0.1523, allocations: 177.7 kB / 0.5937 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.1523, allocations: 23.72 kB / 0.5937 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.868e-05/0.1523, allocations: 30.25 kB / 0.5938 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1524, allocations: 0 / 0.5938 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1524, allocations: 7.938 kB / 0.5938 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1524, allocations: 0 / 0.5938 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007213/0.1531, allocations: 0.5549 MB / 0.5943 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1531, allocations: 3.984 kB / 0.5943 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-05/0.1532, allocations: 11.94 kB / 0.5943 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1532, allocations: 4 kB / 0.5943 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.1532, allocations: 11.98 kB / 0.5943 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1532, allocations: 4 kB / 0.5944 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1532, allocations: 0 / 0.5944 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.1536, allocations: 319 kB / 0.5947 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.1538, allocations: 160.6 kB / 0.5948 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/0.1538, allocations: 12 kB / 0.5948 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.154, allocations: 15.98 kB / 0.5948 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.1541, allocations: 15.97 kB / 0.5948 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.1541, allocations: 31.98 kB / 0.5949 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001693/0.1543, allocations: 205.9 kB / 0.5951 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.352e-06/0.1543, allocations: 0 / 0.5951 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002901/0.1546, allocations: 51.94 kB / 0.5951 GB, free: 10.56 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.0001265/0.1547, allocations: 122.6 kB / 0.5952 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.1552, allocations: 347.9 kB / 0.5956 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1552, allocations: 0 / 0.5956 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1553, allocations: 67.97 kB / 0.5956 GB, free: 10 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.1556, allocations: 28.33 kB / 0.5957 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006031/0.1562, allocations: 449.6 kB / 0.5961 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.1565, allocations: 0.7452 MB / 0.5968 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.1566, allocations: 37.42 kB / 0.5969 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1567, allocations: 39.42 kB / 0.5969 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of SimCode: time 4.61e-07/0.1567, allocations: 0 / 0.5969 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of Templates: time 0.00735/0.1641, allocations: 3.915 MB / 0.6007 GB, free: 4.785 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: