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.001105/0.001105, allocations: 110.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.001217/0.001217, allocations: 187 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.305/1.305, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8421/0.8421, allocations: 132.2 MB / 423.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.5 kB / 0.582 GB, free: 23.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1615, allocations: 80.22 MB / 0.6603 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002783/0.1643, allocations: 1.581 MB / 0.6619 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1654, allocations: 0.5376 MB / 0.6624 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.033e-05/0.1655, allocations: 0 / 0.6624 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.955e-05/0.1656, allocations: 3.938 kB / 0.6624 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.1657, allocations: 19.86 kB / 0.6624 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.166, allocations: 55.8 kB / 0.6625 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.1663, allocations: 103.8 kB / 0.6626 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1664, allocations: 16.11 kB / 0.6626 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.97e-05/0.1665, allocations: 43.89 kB / 0.6626 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.844e-05/0.1666, allocations: 39.83 kB / 0.6627 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.1666, allocations: 8 kB / 0.6627 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.744e-05/0.1666, allocations: 8 kB / 0.6627 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.1667, allocations: 23.92 kB / 0.6627 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.1667, allocations: 35.86 kB / 0.6627 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.1669, allocations: 87.69 kB / 0.6628 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1669, allocations: 0 / 0.6628 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.993e-06/0.1669, allocations: 0 / 0.6628 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.806e-06/0.1669, allocations: 0 / 0.6628 GB, free: 7.656 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.0008179/0.1677, allocations: 458.6 kB / 0.6633 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.1678, allocations: 8.031 kB / 0.6633 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.349e-05/0.1678, allocations: 8.844 kB / 0.6633 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.1681, allocations: 200.1 kB / 0.6635 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.279e-05/0.1682, allocations: 38.27 kB / 0.6635 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.1682, allocations: 4.375 kB / 0.6635 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.1685, allocations: 101.5 kB / 0.6636 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.1686, allocations: 7.938 kB / 0.6636 GB, free: 6.738 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.1686, allocations: 3.984 kB / 0.6636 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1686, allocations: 0 / 0.6636 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.1689, allocations: 71.94 kB / 0.6637 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005695/0.1695, allocations: 336.6 kB / 0.664 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.1699, allocations: 102.6 kB / 0.6641 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.1701, allocations: 48.81 kB / 0.6642 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1701, allocations: 0 / 0.6642 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003005/0.1704, allocations: 115.3 kB / 0.6643 GB, free: 6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.1704, allocations: 0 / 0.6643 GB, free: 6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.000639/0.1711, allocations: 173.4 kB / 0.6644 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.704e-05/0.1711, allocations: 63.33 kB / 0.6645 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.1712, allocations: 122.1 kB / 0.6646 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.1713, allocations: 29.7 kB / 0.6646 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.146e-05/0.1713, allocations: 99.97 kB / 0.6647 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.1714, allocations: 27.7 kB / 0.6648 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.318e-05/0.1715, allocations: 33.7 kB / 0.6648 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.1716, allocations: 322.8 kB / 0.6651 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.1718, allocations: 55.89 kB / 0.6652 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.172, allocations: 73.67 kB / 0.6652 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.1724, allocations: 156.3 kB / 0.6654 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1724, allocations: 0 / 0.6654 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000481/0.1729, allocations: 228.9 kB / 0.6656 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.908e-05/0.1729, allocations: 63.39 kB / 0.6657 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.1729, allocations: 0 / 0.6657 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.173, allocations: 4 kB / 0.6657 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.1731, allocations: 24.3 kB / 0.6657 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1731, allocations: 0 / 0.6657 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1732, allocations: 23.83 kB / 0.6657 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.1733, allocations: 19.95 kB / 0.6657 GB, free: 4.406 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 0.0001001/0.1734, allocations: 117.8 kB / 0.6658 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.1734, allocations: 7.906 kB / 0.6658 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.1735, allocations: 8.375 kB / 0.6658 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1735, allocations: 4 kB / 0.6659 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1735, allocations: 4 kB / 0.6659 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1735, allocations: 0 / 0.6659 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000174/0.1737, allocations: 197.5 kB / 0.666 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1737, allocations: 4 kB / 0.666 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.1738, allocations: 19.97 kB / 0.6661 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.1738, allocations: 4 kB / 0.6661 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.1739, allocations: 3.938 kB / 0.6661 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1739, allocations: 0 / 0.6661 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1739, allocations: 0 / 0.6661 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006155/0.1745, allocations: 224.8 kB / 0.6663 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.136e-05/0.1745, allocations: 88.98 kB / 0.6664 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.1746, allocations: 8 kB / 0.6664 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.1747, allocations: 11.98 kB / 0.6664 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.589e-05/0.1748, allocations: 15.97 kB / 0.6664 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.1748, allocations: 4 kB / 0.6664 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.866e-05/0.1749, allocations: 103.2 kB / 0.6665 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1749, allocations: 0 / 0.6665 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002258/0.1751, allocations: 20 kB / 0.6665 GB, free: 3.477 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.0001179/0.1752, allocations: 103.2 kB / 0.6666 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004953/0.1757, allocations: 226.7 kB / 0.6668 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.1758, allocations: 4.062 kB / 0.6668 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.176, allocations: 55.89 kB / 0.6669 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.1762, allocations: 22.44 kB / 0.6669 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006702/0.1769, allocations: 266.1 kB / 0.6672 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.1772, allocations: 0.6963 MB / 0.6679 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.542e-05/0.1772, allocations: 15.44 kB / 0.6679 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1773, allocations: 4 kB / 0.6679 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of Templates: time 0.003091/0.1803, allocations: 1.447 MB / 0.6693 GB, free: 0.5664 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)