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.001117/0.001117, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001434/0.001434, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.366/1.366, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9396/0.9396, allocations: 135.1 MB / 425.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 60.44 kB / 0.5049 GB, free: 5.676 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1821, allocations: 80.93 MB / 0.5839 GB, free: 4.918 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00271/0.1848, allocations: 1.621 MB / 0.5855 GB, free: 3.277 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007859/0.1856, allocations: 0.5222 MB / 0.586 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.252e-05/0.1857, allocations: 7.938 kB / 0.586 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.1857, allocations: 7.922 kB / 0.586 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.455e-05/0.1858, allocations: 11.86 kB / 0.586 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.186, allocations: 43.95 kB / 0.586 GB, free: 2.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001652/0.1862, allocations: 107.7 kB / 0.5861 GB, free: 2.574 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.925e-05/0.1863, allocations: 16.17 kB / 0.5862 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.008e-05/0.1863, allocations: 35.91 kB / 0.5862 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.506e-05/0.1864, allocations: 47.81 kB / 0.5862 GB, free: 2.477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.1865, allocations: 8 kB / 0.5863 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.681e-05/0.1865, allocations: 8 kB / 0.5863 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.905e-05/0.1865, allocations: 19.92 kB / 0.5863 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.985e-05/0.1866, allocations: 39.78 kB / 0.5863 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.1867, allocations: 87.97 kB / 0.5864 GB, free: 2.316 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1867, allocations: 0 / 0.5864 GB, free: 2.316 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1867, allocations: 0 / 0.5864 GB, free: 2.316 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1867, allocations: 0 / 0.5864 GB, free: 2.316 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.0006429/0.1874, allocations: 454.6 kB / 0.5868 GB, free: 1.812 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1874, allocations: 12.03 kB / 0.5868 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.1874, allocations: 4.938 kB / 0.5869 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.1876, allocations: 188.2 kB / 0.587 GB, free: 1.574 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.816e-05/0.1877, allocations: 46.25 kB / 0.5871 GB, free: 1.523 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.1877, allocations: 8.281 kB / 0.5871 GB, free: 1.516 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.188, allocations: 101.5 kB / 0.5872 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.188, allocations: 0 / 0.5872 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.188, allocations: 0 / 0.5872 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.188, allocations: 4 kB / 0.5872 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.1883, allocations: 75.92 kB / 0.5873 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004968/0.1889, allocations: 336.7 kB / 0.5876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.1893, allocations: 102.5 kB / 0.5877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.1894, allocations: 40.83 kB / 0.5877 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.1895, allocations: 4 kB / 0.5877 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003384/0.1898, allocations: 126.4 kB / 0.5878 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.1898, allocations: 3.938 kB / 0.5878 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000574/0.1904, allocations: 177.4 kB / 0.588 GB, free: 492 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1905, allocations: 51.41 kB / 0.5881 GB, free: 428 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.477e-05/0.1906, allocations: 137.3 kB / 0.5882 GB, free: 284 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.1906, allocations: 29.7 kB / 0.5882 GB, free: 248 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/0.1907, allocations: 95.98 kB / 0.5883 GB, free: 148 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.165e-05/0.1907, allocations: 31.61 kB / 0.5883 GB, free: 116 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.1908, allocations: 25.72 kB / 0.5884 GB, free: 84 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1909, allocations: 330.8 kB / 0.5887 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.1911, allocations: 55.95 kB / 0.5887 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1913, allocations: 69.67 kB / 0.5888 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000359/0.1916, allocations: 169 kB / 0.589 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1917, allocations: 0 / 0.589 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004595/0.1921, allocations: 216.9 kB / 0.5892 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.1922, allocations: 65.75 kB / 0.5892 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.1922, allocations: 0 / 0.5892 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.525e-06/0.1922, allocations: 0 / 0.5892 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.1923, allocations: 23.92 kB / 0.5893 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.1923, allocations: 7.984 kB / 0.5893 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.1925, allocations: 15.92 kB / 0.5893 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.1925, allocations: 15.97 kB / 0.5893 GB, free: 15.07 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 9.256e-05/0.1926, allocations: 113.8 kB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.1926, allocations: 7.906 kB / 0.5894 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/0.1927, allocations: 16.36 kB / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1927, allocations: 0 / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1927, allocations: 0 / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1927, allocations: 0 / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1929, allocations: 197.5 kB / 0.5896 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.1929, allocations: 3.984 kB / 0.5896 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.193, allocations: 27.92 kB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1931, allocations: 0 / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.1931, allocations: 384 / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1931, allocations: 4 kB / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1931, allocations: 0 / 0.5896 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005935/0.1937, allocations: 232.7 kB / 0.5899 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.1937, allocations: 88.95 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.1938, allocations: 4 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001284/0.1939, allocations: 12.03 kB / 0.59 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.088e-05/0.194, allocations: 19.97 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.194, allocations: 4 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.446e-05/0.1941, allocations: 110.2 kB / 0.5901 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1941, allocations: 4 kB / 0.5901 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002162/0.1943, allocations: 16 kB / 0.5901 GB, free: 14.12 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.0001205/0.1944, allocations: 107.2 kB / 0.5902 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004846/0.1949, allocations: 234.6 kB / 0.5904 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1949, allocations: 0 / 0.5904 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.1951, allocations: 60.02 kB / 0.5905 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.1954, allocations: 20.97 kB / 0.5905 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006337/0.196, allocations: 268.4 kB / 0.5908 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.1963, allocations: 0.6924 MB / 0.5914 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.659e-05/0.1964, allocations: 8.438 kB / 0.5915 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.253e-05/0.1964, allocations: 11.44 kB / 0.5915 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1964, allocations: 4 kB / 0.5915 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of Templates: time 0.003694/0.2001, allocations: 1.42 MB / 0.5929 GB, free: 11.24 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)