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.00126/0.001261, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001222/0.001222, allocations: 189.5 kB / 16.25 MB, free: 6.152 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.365/1.365, allocations: 222.9 MB / 239.9 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9549/0.9549, allocations: 135.6 MB / 425.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 68.73 kB / 0.5054 GB, free: 5.184 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.17, allocations: 81.02 MB / 0.5845 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003258/0.1733, allocations: 1.64 MB / 0.5861 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1744, allocations: 0.5143 MB / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.237e-05/0.1745, allocations: 0 / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.628e-05/0.1745, allocations: 3.938 kB / 0.5866 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.1747, allocations: 15.92 kB / 0.5866 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.175, allocations: 47.89 kB / 0.5867 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.1752, allocations: 111.7 kB / 0.5868 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.097e-05/0.1753, allocations: 12.17 kB / 0.5868 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.946e-05/0.1754, allocations: 35.91 kB / 0.5868 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.642e-05/0.1755, allocations: 43.83 kB / 0.5869 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.1755, allocations: 12 kB / 0.5869 GB, free: 1.844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.065e-05/0.1755, allocations: 8 kB / 0.5869 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.669e-05/0.1756, allocations: 23.91 kB / 0.5869 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.173e-05/0.1756, allocations: 31.86 kB / 0.5869 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.1758, allocations: 83.97 kB / 0.587 GB, free: 1.699 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1758, allocations: 0 / 0.587 GB, free: 1.699 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1758, allocations: 0 / 0.587 GB, free: 1.699 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1758, allocations: 0 / 0.587 GB, free: 1.699 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.000863/0.1767, allocations: 466.5 kB / 0.5875 GB, free: 1.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1767, allocations: 8.031 kB / 0.5875 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.595e-05/0.1768, allocations: 12.84 kB / 0.5875 GB, free: 1.164 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.177, allocations: 192.8 kB / 0.5877 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.71e-05/0.1771, allocations: 30.27 kB / 0.5877 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.1772, allocations: 8.375 kB / 0.5877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.1775, allocations: 101.5 kB / 0.5878 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1775, allocations: 4 kB / 0.5878 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.1775, allocations: 7.938 kB / 0.5878 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1775, allocations: 0 / 0.5878 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.1779, allocations: 67.92 kB / 0.5879 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005782/0.1784, allocations: 340.7 kB / 0.5882 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/0.1788, allocations: 94.59 kB / 0.5883 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.179, allocations: 52.8 kB / 0.5883 GB, free: 176 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.1791, allocations: 4 kB / 0.5883 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.1794, allocations: 115.3 kB / 0.5884 GB, free: 44 kB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1794, allocations: 7.875 kB / 0.5885 GB, free: 36 kB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006138/0.18, allocations: 173.5 kB / 0.5886 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.1801, allocations: 63.33 kB / 0.5887 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.1802, allocations: 118.1 kB / 0.5888 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.1803, allocations: 33.7 kB / 0.5888 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.1803, allocations: 99.83 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.1804, allocations: 23.62 kB / 0.5889 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.1804, allocations: 37.7 kB / 0.589 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1806, allocations: 334.8 kB / 0.5893 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.1808, allocations: 51.95 kB / 0.5893 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.181, allocations: 72.34 kB / 0.5894 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.1814, allocations: 156.9 kB / 0.5896 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1814, allocations: 0 / 0.5896 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004896/0.1819, allocations: 224.9 kB / 0.5898 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.1819, allocations: 59.39 kB / 0.5898 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.1819, allocations: 0 / 0.5898 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1819, allocations: 4 kB / 0.5898 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.1821, allocations: 27.95 kB / 0.5899 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.1821, allocations: 384 / 0.5899 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.1822, allocations: 23.92 kB / 0.5899 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1823, allocations: 7.938 kB / 0.5899 GB, free: 14.45 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.0001125/0.1824, allocations: 125.5 kB / 0.59 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.1824, allocations: 11.84 kB / 0.59 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.984e-05/0.1825, allocations: 8.375 kB / 0.59 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1825, allocations: 8 kB / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1825, allocations: 0 / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1825, allocations: 0 / 0.59 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.1827, allocations: 205.4 kB / 0.5902 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1827, allocations: 0 / 0.5902 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/0.1828, allocations: 31.91 kB / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1829, allocations: 0 / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.1829, allocations: 0 / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1829, allocations: 0 / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1829, allocations: 0 / 0.5903 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006099/0.1835, allocations: 228.7 kB / 0.5905 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.071e-05/0.1836, allocations: 88.98 kB / 0.5906 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.1836, allocations: 4 kB / 0.5906 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.1837, allocations: 19.98 kB / 0.5906 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.1838, allocations: 19.97 kB / 0.5906 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.1838, allocations: 0 / 0.5906 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.189e-05/0.1839, allocations: 99.2 kB / 0.5907 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1839, allocations: 0 / 0.5907 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002098/0.1841, allocations: 24 kB / 0.5907 GB, free: 13.5 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.0001307/0.1843, allocations: 95.25 kB / 0.5908 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005097/0.1848, allocations: 238.7 kB / 0.5911 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1848, allocations: 0 / 0.5911 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.185, allocations: 59.89 kB / 0.5911 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.1852, allocations: 24.19 kB / 0.5911 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006664/0.1859, allocations: 256.5 kB / 0.5914 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.1862, allocations: 0.6963 MB / 0.5921 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.786e-05/0.1863, allocations: 12.42 kB / 0.5921 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.963e-05/0.1864, allocations: 23.38 kB / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of SimCode: time 1.9e-07/0.1864, allocations: 0 / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of Templates: time 0.0043/0.1907, allocations: 1.415 MB / 0.5935 GB, free: 10.62 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)