Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage") translateModel(IDEAS.Utilities.Math.Examples.MovingAverage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.007467/0.007467, allocations: 104.1 kB / 15.74 MB, free: 6.02 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.001924/0.001924, allocations: 188.5 kB / 16.67 MB, free: 5.941 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7682/0.7682, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.06 kB / 0.5813 GB, free: 23.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1592, allocations: 80.22 MB / 0.6597 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002507/0.1617, allocations: 1.574 MB / 0.6612 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008618/0.1626, allocations: 0.5376 MB / 0.6617 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.436e-05/0.1627, allocations: 4 kB / 0.6617 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.417e-05/0.1628, allocations: 7.922 kB / 0.6618 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.724e-05/0.1628, allocations: 7.875 kB / 0.6618 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.1631, allocations: 59.8 kB / 0.6618 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.1633, allocations: 99.77 kB / 0.6619 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.553e-05/0.1634, allocations: 16.17 kB / 0.6619 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.091e-05/0.1634, allocations: 39.84 kB / 0.662 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.775e-05/0.1635, allocations: 47.81 kB / 0.662 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.1636, allocations: 8 kB / 0.662 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.871e-05/0.1636, allocations: 8 kB / 0.662 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.523e-05/0.1636, allocations: 19.92 kB / 0.662 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.653e-05/0.1637, allocations: 31.86 kB / 0.6621 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1638, allocations: 87.62 kB / 0.6622 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1638, allocations: 4 kB / 0.6622 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1639, allocations: 0 / 0.6622 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.1639, allocations: 0 / 0.6622 GB, free: 7.699 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007224/0.1646, allocations: 454.6 kB / 0.6626 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1646, allocations: 16.02 kB / 0.6626 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.796e-05/0.1647, allocations: 8.891 kB / 0.6626 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1649, allocations: 200.1 kB / 0.6628 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.051e-05/0.165, allocations: 42.27 kB / 0.6629 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.165, allocations: 8.312 kB / 0.6629 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.1654, allocations: 97.56 kB / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1654, allocations: 0 / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1654, allocations: 0 / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1654, allocations: 4 kB / 0.663 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003032/0.1657, allocations: 79.86 kB / 0.663 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005303/0.1663, allocations: 336.7 kB / 0.6634 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.1666, allocations: 94.58 kB / 0.6634 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.1668, allocations: 48.84 kB / 0.6635 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.1668, allocations: 4 kB / 0.6635 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.1671, allocations: 111.3 kB / 0.6636 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.1671, allocations: 4 kB / 0.6636 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.000595/0.1677, allocations: 181.5 kB / 0.6638 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.1678, allocations: 51.41 kB / 0.6638 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.1679, allocations: 126.1 kB / 0.6639 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.1679, allocations: 29.7 kB / 0.664 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.168, allocations: 100.1 kB / 0.6641 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.168, allocations: 31.73 kB / 0.6641 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.616e-05/0.1681, allocations: 29.7 kB / 0.6641 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1682, allocations: 326.8 kB / 0.6644 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.1684, allocations: 51.95 kB / 0.6645 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.1686, allocations: 73.98 kB / 0.6646 GB, free: 5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.1689, allocations: 161.1 kB / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1689, allocations: 0 / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004632/0.1694, allocations: 228.1 kB / 0.6649 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.1694, allocations: 71.33 kB / 0.665 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1695, allocations: 0 / 0.665 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1695, allocations: 4 kB / 0.665 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.1696, allocations: 19.98 kB / 0.665 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.1696, allocations: 4 kB / 0.665 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.1697, allocations: 15.92 kB / 0.665 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.1698, allocations: 11.94 kB / 0.6651 GB, free: 4.449 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,step.count,$PRE.step.count,step.T_start,$PRE.step.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.388e-05/0.1699, allocations: 125.8 kB / 0.6652 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.813e-05/0.1699, allocations: 7.953 kB / 0.6652 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.1699, allocations: 16.38 kB / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1699, allocations: 0 / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1699, allocations: 0 / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1699, allocations: 0 / 0.6652 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.1701, allocations: 201.4 kB / 0.6654 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1701, allocations: 0 / 0.6654 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.1703, allocations: 23.98 kB / 0.6654 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1703, allocations: 0 / 0.6654 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.1703, allocations: 3.984 kB / 0.6654 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1703, allocations: 4 kB / 0.6654 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1703, allocations: 0 / 0.6654 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005685/0.1709, allocations: 222.5 kB / 0.6656 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.536e-05/0.1709, allocations: 89.09 kB / 0.6657 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.171, allocations: 4 kB / 0.6657 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.1711, allocations: 11.98 kB / 0.6657 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.1712, allocations: 19.97 kB / 0.6658 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.1712, allocations: 4 kB / 0.6658 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.685e-05/0.1712, allocations: 103.1 kB / 0.6659 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 4 kB / 0.6659 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002027/0.1715, allocations: 20 kB / 0.6659 GB, free: 3.508 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 (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.0001089/0.1716, allocations: 99.25 kB / 0.666 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004562/0.172, allocations: 226.7 kB / 0.6662 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.172, allocations: 96 / 0.6662 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.1722, allocations: 71.89 kB / 0.6663 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.1725, allocations: 21.38 kB / 0.6663 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005842/0.1731, allocations: 247.9 kB / 0.6665 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.1733, allocations: 0.6963 MB / 0.6672 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.218e-05/0.1734, allocations: 8.422 kB / 0.6672 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.1734, allocations: 15.44 kB / 0.6672 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of SimCode: time 1.313e-06/0.1734, allocations: 0 / 0.6672 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of Templates: time 0.003829/0.1773, allocations: 1.53 MB / 0.6687 GB, free: 0.5352 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)