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.001065/0.001068, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001181/0.001181, allocations: 193 kB / 16.14 MB, free: 6.711 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9532/0.9532, allocations: 135.1 MB / 425.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 65.03 kB / 0.5047 GB, free: 5.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1661, allocations: 80.93 MB / 0.5837 GB, free: 5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003207/0.1693, allocations: 1.629 MB / 0.5853 GB, free: 3.352 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009038/0.1702, allocations: 0.526 MB / 0.5858 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.1703, allocations: 8 kB / 0.5858 GB, free: 2.812 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.1704, allocations: 3.938 kB / 0.5858 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.267e-05/0.1705, allocations: 7.875 kB / 0.5858 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.1707, allocations: 47.94 kB / 0.5859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001608/0.1709, allocations: 95.7 kB / 0.586 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.171, allocations: 12.17 kB / 0.586 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.329e-05/0.1711, allocations: 35.89 kB / 0.586 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.413e-05/0.1712, allocations: 43.83 kB / 0.5861 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.1712, allocations: 4 kB / 0.5861 GB, free: 2.566 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.066e-05/0.1712, allocations: 4 kB / 0.5861 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.1713, allocations: 19.92 kB / 0.5861 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.088e-05/0.1714, allocations: 35.84 kB / 0.5861 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.1715, allocations: 75.97 kB / 0.5862 GB, free: 2.434 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1715, allocations: 0 / 0.5862 GB, free: 2.434 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1715, allocations: 3.938 kB / 0.5862 GB, free: 2.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1715, allocations: 0 / 0.5862 GB, free: 2.43 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.000814/0.1723, allocations: 462.6 kB / 0.5866 GB, free: 1.918 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1724, allocations: 12.03 kB / 0.5866 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.231e-05/0.1724, allocations: 8.938 kB / 0.5867 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.1726, allocations: 196.2 kB / 0.5868 GB, free: 1.668 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.636e-05/0.1727, allocations: 34.25 kB / 0.5869 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.1728, allocations: 12.28 kB / 0.5869 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.1731, allocations: 109.4 kB / 0.587 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1731, allocations: 0 / 0.587 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.1731, allocations: 0 / 0.587 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.1731, allocations: 0 / 0.587 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000299/0.1734, allocations: 75.92 kB / 0.5871 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005557/0.174, allocations: 332.8 kB / 0.5874 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.1744, allocations: 98.59 kB / 0.5875 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.1746, allocations: 44.83 kB / 0.5875 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.1746, allocations: 4 kB / 0.5875 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003318/0.1749, allocations: 126.1 kB / 0.5876 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.1749, allocations: 0 / 0.5876 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006076/0.1756, allocations: 181.4 kB / 0.5878 GB, free: 0.582 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.1756, allocations: 55.41 kB / 0.5879 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.779e-05/0.1757, allocations: 125.1 kB / 0.588 GB, free: 396 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.1757, allocations: 33.7 kB / 0.588 GB, free: 356 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.333e-05/0.1758, allocations: 95.98 kB / 0.5881 GB, free: 256 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.1758, allocations: 31.59 kB / 0.5881 GB, free: 224 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.1759, allocations: 29.7 kB / 0.5882 GB, free: 188 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.176, allocations: 326.8 kB / 0.5885 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.1762, allocations: 51.95 kB / 0.5885 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.1764, allocations: 65.67 kB / 0.5886 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.1768, allocations: 165 kB / 0.5888 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1768, allocations: 3.938 kB / 0.5888 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004705/0.1773, allocations: 220.9 kB / 0.589 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.519e-05/0.1773, allocations: 59.41 kB / 0.589 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1773, allocations: 0 / 0.589 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.1774, allocations: 4.031 kB / 0.589 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.1775, allocations: 27.91 kB / 0.5891 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1775, allocations: 4 kB / 0.5891 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.1777, allocations: 19.92 kB / 0.5891 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1777, allocations: 7.938 kB / 0.5891 GB, free: 15.18 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.979e-05/0.1778, allocations: 113.8 kB / 0.5892 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.1778, allocations: 11.89 kB / 0.5892 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.785e-05/0.1779, allocations: 24.36 kB / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1779, allocations: 0 / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1779, allocations: 3.938 kB / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1779, allocations: 0 / 0.5892 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.1781, allocations: 197.5 kB / 0.5894 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1781, allocations: 384 / 0.5894 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.1782, allocations: 23.92 kB / 0.5894 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1782, allocations: 0 / 0.5894 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1782, allocations: 4 kB / 0.5894 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1783, allocations: 3.938 kB / 0.5895 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1783, allocations: 12 kB / 0.5895 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.1789, allocations: 220.8 kB / 0.5897 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.1789, allocations: 88.95 kB / 0.5898 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.532e-05/0.179, allocations: 0 / 0.5898 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.1791, allocations: 20.02 kB / 0.5898 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.612e-05/0.1792, allocations: 15.98 kB / 0.5898 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.1792, allocations: 7.984 kB / 0.5898 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.372e-05/0.1793, allocations: 102.8 kB / 0.5899 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1793, allocations: 0 / 0.5899 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002109/0.1795, allocations: 20 kB / 0.5899 GB, free: 14.23 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.0001508/0.1797, allocations: 99.25 kB / 0.59 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005108/0.1802, allocations: 230.7 kB / 0.5902 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1802, allocations: 0 / 0.5902 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.1804, allocations: 59.89 kB / 0.5903 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.1807, allocations: 19.98 kB / 0.5903 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007192/0.1814, allocations: 262.3 kB / 0.5906 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.1818, allocations: 0.6965 MB / 0.5912 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.622e-05/0.1819, allocations: 8.422 kB / 0.5912 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.965e-05/0.182, allocations: 19.44 kB / 0.5913 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.182, allocations: 0 / 0.5913 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of Templates: time 0.004196/0.1862, allocations: 1.335 MB / 0.5926 GB, free: 11.44 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)