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.001213/0.001213, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.416/1.416, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.054/1.054, allocations: 135.1 MB / 425.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 65.84 kB / 0.5053 GB, free: 5.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1834, allocations: 80.93 MB / 0.5844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002969/0.1864, allocations: 1.566 MB / 0.5859 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009751/0.1874, allocations: 0.5315 MB / 0.5864 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.207e-05/0.1875, allocations: 0 / 0.5864 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.173e-05/0.1875, allocations: 3.938 kB / 0.5864 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.1877, allocations: 15.86 kB / 0.5864 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.188, allocations: 59.81 kB / 0.5865 GB, free: 2.355 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.1882, allocations: 99.77 kB / 0.5866 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1883, allocations: 20.14 kB / 0.5866 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.868e-05/0.1884, allocations: 39.84 kB / 0.5866 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001031/0.1885, allocations: 39.83 kB / 0.5867 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.1885, allocations: 16 kB / 0.5867 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.106e-05/0.1886, allocations: 8 kB / 0.5867 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.1886, allocations: 15.92 kB / 0.5867 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.534e-05/0.1887, allocations: 39.84 kB / 0.5868 GB, free: 2.082 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.1888, allocations: 83.97 kB / 0.5868 GB, free: 2 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1888, allocations: 0 / 0.5868 GB, free: 2 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1888, allocations: 0 / 0.5868 GB, free: 2 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1888, allocations: 0 / 0.5868 GB, free: 2 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.0007908/0.1896, allocations: 462.6 kB / 0.5873 GB, free: 1.488 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1897, allocations: 12.03 kB / 0.5873 GB, free: 1.477 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/0.1897, allocations: 4.938 kB / 0.5873 GB, free: 1.473 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.19, allocations: 197.1 kB / 0.5875 GB, free: 1.242 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.102e-05/0.1901, allocations: 34.27 kB / 0.5875 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.1901, allocations: 16.2 kB / 0.5875 GB, free: 1.188 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000294/0.1904, allocations: 97.56 kB / 0.5876 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1904, allocations: 4 kB / 0.5876 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.1904, allocations: 4 kB / 0.5876 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.1905, allocations: 4 kB / 0.5876 GB, free: 1.074 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003113/0.1908, allocations: 71.86 kB / 0.5877 GB, free: 1.004 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006126/0.1914, allocations: 340.7 kB / 0.588 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.1918, allocations: 86.58 kB / 0.5881 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.192, allocations: 48.84 kB / 0.5882 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.192, allocations: 8 kB / 0.5882 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003498/0.1924, allocations: 119.3 kB / 0.5883 GB, free: 348 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.1924, allocations: 3.938 kB / 0.5883 GB, free: 344 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006106/0.193, allocations: 177.4 kB / 0.5885 GB, free: 160 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.1931, allocations: 51.41 kB / 0.5885 GB, free: 96 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.1932, allocations: 126.1 kB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1932, allocations: 29.7 kB / 0.5887 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.665e-05/0.1933, allocations: 99.97 kB / 0.5887 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.1933, allocations: 23.62 kB / 0.5888 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.916e-05/0.1934, allocations: 33.7 kB / 0.5888 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1935, allocations: 326.8 kB / 0.5891 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.1937, allocations: 55.89 kB / 0.5892 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1939, allocations: 66.05 kB / 0.5892 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/0.1943, allocations: 164.1 kB / 0.5894 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1943, allocations: 0 / 0.5894 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004877/0.1948, allocations: 224.9 kB / 0.5896 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/0.1948, allocations: 70.14 kB / 0.5897 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1948, allocations: 0 / 0.5897 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1948, allocations: 0 / 0.5897 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.195, allocations: 28.02 kB / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.195, allocations: 0 / 0.5897 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.1952, allocations: 19.92 kB / 0.5897 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.1952, allocations: 7.938 kB / 0.5897 GB, free: 14.76 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.0001112/0.1953, allocations: 125.8 kB / 0.5898 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.1953, allocations: 7.906 kB / 0.5898 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.359e-05/0.1954, allocations: 12.38 kB / 0.5899 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1954, allocations: 4 kB / 0.5899 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1954, allocations: 0 / 0.5899 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1954, allocations: 0 / 0.5899 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.1956, allocations: 205.4 kB / 0.5901 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1956, allocations: 4 kB / 0.5901 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.1958, allocations: 15.98 kB / 0.5901 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.1958, allocations: 0 / 0.5901 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.1958, allocations: 11.98 kB / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1958, allocations: 0 / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1958, allocations: 0 / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006118/0.1965, allocations: 224.7 kB / 0.5903 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.1965, allocations: 92.98 kB / 0.5904 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.1965, allocations: 0 / 0.5904 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.1967, allocations: 15.98 kB / 0.5904 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.1967, allocations: 19.97 kB / 0.5904 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.1968, allocations: 11.94 kB / 0.5904 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.597e-05/0.1968, allocations: 103 kB / 0.5905 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1968, allocations: 0 / 0.5905 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002172/0.1971, allocations: 20 kB / 0.5906 GB, free: 13.8 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.0001308/0.1972, allocations: 99.25 kB / 0.5907 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005135/0.1977, allocations: 234.7 kB / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1977, allocations: 96 / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.1979, allocations: 59.83 kB / 0.5909 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.1982, allocations: 23.7 kB / 0.591 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006414/0.1988, allocations: 248.6 kB / 0.5912 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1991, allocations: 0.6924 MB / 0.5919 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.497e-05/0.1992, allocations: 12.42 kB / 0.5919 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.762e-05/0.1992, allocations: 19.44 kB / 0.5919 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1993, allocations: 0 / 0.5919 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of Templates: time 0.004208/0.2035, allocations: 1.508 MB / 0.5934 GB, free: 10.85 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)