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.0008223/0.0008223, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008318/0.0008319, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.152/1.152, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6616/0.6616, allocations: 132.4 MB / 423.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002707, allocations: 8.562 kB / 0.5034 GB, free: 4.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3289, allocations: 81.57 MB / 0.5831 GB, free: 3.973 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.001239/0.3302, allocations: 1.282 MB / 0.5843 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000594/0.3308, allocations: 0.4984 MB / 0.5848 GB, free: 2.691 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.27e-05/0.3309, allocations: 9.156 kB / 0.5848 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.34e-05/0.3309, allocations: 1.359 kB / 0.5848 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/0.331, allocations: 11.44 kB / 0.5848 GB, free: 2.676 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.3311, allocations: 43.38 kB / 0.5849 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001246/0.3313, allocations: 90.89 kB / 0.585 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.395e-05/0.3313, allocations: 11.08 kB / 0.585 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.912e-05/0.3314, allocations: 31.92 kB / 0.585 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.603e-05/0.3315, allocations: 43.02 kB / 0.585 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.3315, allocations: 4.062 kB / 0.585 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.3315, allocations: 5.062 kB / 0.585 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.3316, allocations: 15.36 kB / 0.5851 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.3316, allocations: 39.39 kB / 0.5851 GB, free: 2.527 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.212e-05/0.3317, allocations: 50.59 kB / 0.5852 GB, free: 2.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3317, allocations: 5.312 kB / 0.5852 GB, free: 2.516 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3317, allocations: 0 / 0.5852 GB, free: 2.516 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.965e-06/0.3317, allocations: 0 / 0.5852 GB, free: 2.516 MB / 430.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.0005158/0.3322, allocations: 452.3 kB / 0.5856 GB, free: 2.078 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.3323, allocations: 10.25 kB / 0.5856 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.3323, allocations: 9.031 kB / 0.5856 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3324, allocations: 194.2 kB / 0.5858 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.3325, allocations: 44.22 kB / 0.5858 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.3325, allocations: 4.719 kB / 0.5858 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.3328, allocations: 102.2 kB / 0.5859 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3328, allocations: 0.7031 kB / 0.5859 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.3328, allocations: 1.344 kB / 0.5859 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3328, allocations: 1.75 kB / 0.5859 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.3331, allocations: 91.31 kB / 0.586 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004258/0.3336, allocations: 349.1 kB / 0.5864 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3339, allocations: 108.1 kB / 0.5865 GB, free: 1.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.334, allocations: 51.92 kB / 0.5865 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.3341, allocations: 6.281 kB / 0.5865 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.3344, allocations: 142.9 kB / 0.5867 GB, free: 1.312 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.3344, allocations: 0 / 0.5867 GB, free: 1.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005261/0.3349, allocations: 202.1 kB / 0.5868 GB, free: 1.246 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.3349, allocations: 57.7 kB / 0.5869 GB, free: 1.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.145e-05/0.335, allocations: 125.1 kB / 0.587 GB, free: 1.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.335, allocations: 27.94 kB / 0.587 GB, free: 1.039 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.063e-05/0.335, allocations: 97.92 kB / 0.5871 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.3351, allocations: 33.81 kB / 0.5872 GB, free: 0.918 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-06/0.3351, allocations: 1.281 kB / 0.5872 GB, free: 0.918 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.593e-05/0.3351, allocations: 319.6 kB / 0.5875 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3353, allocations: 63.25 kB / 0.5875 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.3355, allocations: 81.75 kB / 0.5876 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.3356, allocations: 111.5 kB / 0.5877 GB, free: 488 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.3356, allocations: 0 / 0.5877 GB, free: 488 kB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003987/0.336, allocations: 245 kB / 0.588 GB, free: 344 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.3361, allocations: 59.91 kB / 0.588 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3361, allocations: 0.75 kB / 0.588 GB, free: 280 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.3361, allocations: 5.422 kB / 0.588 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3362, allocations: 33.89 kB / 0.5881 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3362, allocations: 2.125 kB / 0.5881 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.3364, allocations: 30.06 kB / 0.5881 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.3364, allocations: 3.922 kB / 0.5881 GB, free: 256 kB / 430.1 MB 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,$whenCondition1,$PRE.step.T_start,step.T_start,$PRE.step.count,step.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.766e-05/0.3364, allocations: 124.7 kB / 0.5882 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.3365, allocations: 4.453 kB / 0.5882 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.927e-05/0.3365, allocations: 18.17 kB / 0.5882 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3365, allocations: 2.125 kB / 0.5882 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3365, allocations: 3.953 kB / 0.5882 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3365, allocations: 1.562 kB / 0.5882 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.3367, allocations: 192.4 kB / 0.5884 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.3367, allocations: 384 / 0.5884 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.3368, allocations: 27.89 kB / 0.5884 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3368, allocations: 4 kB / 0.5884 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.3368, allocations: 6.891 kB / 0.5885 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3369, allocations: 4.688 kB / 0.5885 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3369, allocations: 0 / 0.5885 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.3374, allocations: 245.2 kB / 0.5887 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.875e-05/0.3375, allocations: 88.23 kB / 0.5888 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.3375, allocations: 5.938 kB / 0.5888 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.3376, allocations: 16.61 kB / 0.5888 GB, free: 15.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/0.3377, allocations: 19.19 kB / 0.5888 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.3377, allocations: 7.938 kB / 0.5888 GB, free: 15.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.963e-05/0.3377, allocations: 101.4 kB / 0.5889 GB, free: 15.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3377, allocations: 0 / 0.5889 GB, free: 15.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001909/0.3379, allocations: 18.89 kB / 0.5889 GB, free: 15.57 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.553e-05/0.338, allocations: 104.9 kB / 0.589 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004239/0.3385, allocations: 244.8 kB / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.3385, allocations: 0 / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.3387, allocations: 64.19 kB / 0.5893 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002052/0.3389, allocations: 17.3 kB / 0.5894 GB, free: 15.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/0.3394, allocations: 262.9 kB / 0.5896 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.3396, allocations: 0.6979 MB / 0.5903 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.067e-05/0.3397, allocations: 6.859 kB / 0.5903 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.3397, allocations: 13.03 kB / 0.5903 GB, free: 14.42 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3397, allocations: 0 / 0.5903 GB, free: 14.42 MB / 446.1 MB Notification: Performance of Templates: time 0.003233/0.3429, allocations: 1.256 MB / 0.5915 GB, free: 14.31 MB / 446.1 MB 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)