Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.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.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008302/0.0008296, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008576/0.0008576, allocations: 168.7 kB / 15.95 MB, free: 204 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.428/1.428, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9837/0.9837, allocations: 135.3 MB / 426.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003601, allocations: 12 kB / 0.507 GB, free: 5.137 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1665, allocations: 82.31 MB / 0.5874 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00174/0.1682, allocations: 1.282 MB / 0.5886 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007788/0.169, allocations: 0.4953 MB / 0.5891 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/0.1691, allocations: 0 / 0.5891 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.1691, allocations: 0 / 0.5891 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.811e-05/0.1692, allocations: 15.81 kB / 0.5891 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.1694, allocations: 43.88 kB / 0.5892 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.1696, allocations: 87.7 kB / 0.5892 GB, free: 1.062 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.405e-05/0.1697, allocations: 20.16 kB / 0.5893 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.632e-05/0.1698, allocations: 31.91 kB / 0.5893 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.804e-05/0.1699, allocations: 39.83 kB / 0.5893 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.485e-05/0.1699, allocations: 4 kB / 0.5893 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.662e-05/0.1699, allocations: 4 kB / 0.5893 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.508e-05/0.17, allocations: 19.91 kB / 0.5894 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.268e-05/0.17, allocations: 33.7 kB / 0.5894 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.447e-05/0.1701, allocations: 56.11 kB / 0.5894 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1701, allocations: 4 kB / 0.5894 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1701, allocations: 0 / 0.5894 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.1701, allocations: 0 / 0.5894 GB, free: 0.8477 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006678/0.1708, allocations: 446.5 kB / 0.5899 GB, free: 360 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1709, allocations: 12.03 kB / 0.5899 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.1709, allocations: 11.91 kB / 0.5899 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001899/0.1711, allocations: 192.3 kB / 0.5901 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.74e-05/0.1712, allocations: 41.69 kB / 0.5901 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.1713, allocations: 7.906 kB / 0.5901 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.1716, allocations: 105.6 kB / 0.5902 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1716, allocations: 0 / 0.5902 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1716, allocations: 4 kB / 0.5902 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.1716, allocations: 0 / 0.5902 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.1719, allocations: 95.86 kB / 0.5903 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.1725, allocations: 336.8 kB / 0.5906 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.1729, allocations: 110.7 kB / 0.5907 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.173, allocations: 60.77 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.1731, allocations: 0 / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003377/0.1734, allocations: 127.3 kB / 0.5909 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1734, allocations: 0 / 0.5909 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0006053/0.174, allocations: 205.4 kB / 0.5911 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.1741, allocations: 59.36 kB / 0.5912 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.47e-05/0.1742, allocations: 130 kB / 0.5913 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.1742, allocations: 25.7 kB / 0.5913 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.1743, allocations: 104 kB / 0.5914 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.1743, allocations: 27.61 kB / 0.5915 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.1743, allocations: 0 / 0.5915 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1745, allocations: 326.8 kB / 0.5918 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.1747, allocations: 59.91 kB / 0.5918 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1748, allocations: 77.67 kB / 0.5919 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.1751, allocations: 119.4 kB / 0.592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1751, allocations: 0 / 0.592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004417/0.1755, allocations: 244.8 kB / 0.5922 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.1756, allocations: 65.91 kB / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1756, allocations: 0 / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1756, allocations: 0 / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.1757, allocations: 23.98 kB / 0.5923 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1757, allocations: 11.94 kB / 0.5923 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.1759, allocations: 23.92 kB / 0.5924 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.1759, allocations: 8 kB / 0.5924 GB, free: 13.57 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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 8.839e-05/0.176, allocations: 113.8 kB / 0.5925 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.176, allocations: 7.906 kB / 0.5925 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.065e-05/0.176, allocations: 24.3 kB / 0.5925 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1761, allocations: 3.984 kB / 0.5925 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1761, allocations: 0 / 0.5925 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1761, allocations: 3.953 kB / 0.5925 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001658/0.1762, allocations: 197.5 kB / 0.5927 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1762, allocations: 7.984 kB / 0.5927 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.1764, allocations: 23.98 kB / 0.5927 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1764, allocations: 0 / 0.5927 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1764, allocations: 0 / 0.5927 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.1764, allocations: 4 kB / 0.5927 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1764, allocations: 0 / 0.5927 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/0.177, allocations: 257.1 kB / 0.593 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.1771, allocations: 88.95 kB / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.1771, allocations: 4 kB / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1772, allocations: 19.97 kB / 0.5931 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.063e-05/0.1773, allocations: 19.97 kB / 0.5931 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.1773, allocations: 3.984 kB / 0.5931 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.495e-05/0.1774, allocations: 99.27 kB / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1774, allocations: 0 / 0.5932 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002121/0.1776, allocations: 24 kB / 0.5932 GB, free: 12.59 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (movingAverage.iDelay,movingAverage.iStop,firstOrder.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,step.T_start,step.count) * Number of discrete states: 1 (step.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001165/0.1777, allocations: 99.19 kB / 0.5933 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004639/0.1782, allocations: 250.7 kB / 0.5936 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1782, allocations: 0 / 0.5936 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.1784, allocations: 60.02 kB / 0.5936 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.1786, allocations: 23.94 kB / 0.5936 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005423/0.1792, allocations: 269.2 kB / 0.5939 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.1794, allocations: 0.6965 MB / 0.5946 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.121e-05/0.1795, allocations: 4.438 kB / 0.5946 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.1795, allocations: 11.44 kB / 0.5946 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1795, allocations: 0 / 0.5946 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of Templates: time 0.003596/0.1831, allocations: 1.263 MB / 0.5958 GB, free: 9.848 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)