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.001413/0.001413, allocations: 104.5 kB / 16.35 MB, free: 6.289 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.001123/0.001123, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8116/0.8116, allocations: 132.2 MB / 423.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 71.89 kB / 0.5032 GB, free: 10.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.376, allocations: 80.18 MB / 0.5815 GB, free: 27.82 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.002897/0.3789, allocations: 1.582 MB / 0.583 GB, free: 26.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000859/0.3798, allocations: 0.5382 MB / 0.5836 GB, free: 26.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.677e-05/0.3799, allocations: 6.062 kB / 0.5836 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.3799, allocations: 3.938 kB / 0.5836 GB, free: 26.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.04e-05/0.38, allocations: 10 kB / 0.5836 GB, free: 26.15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.3803, allocations: 56.08 kB / 0.5836 GB, free: 26.11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.3805, allocations: 109.7 kB / 0.5837 GB, free: 26.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.3806, allocations: 11.92 kB / 0.5837 GB, free: 26.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.758e-05/0.3807, allocations: 38.28 kB / 0.5838 GB, free: 26.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.126e-05/0.3808, allocations: 46.52 kB / 0.5838 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.3808, allocations: 9.219 kB / 0.5838 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.425e-05/0.3809, allocations: 8.906 kB / 0.5838 GB, free: 25.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.844e-05/0.3809, allocations: 21.16 kB / 0.5839 GB, free: 25.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 6.215e-05/0.381, allocations: 36.48 kB / 0.5839 GB, free: 25.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.3811, allocations: 84.33 kB / 0.584 GB, free: 25.88 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3811, allocations: 0 / 0.584 GB, free: 25.88 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3812, allocations: 1.312 kB / 0.584 GB, free: 25.88 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3812, allocations: 0 / 0.584 GB, free: 25.88 MB / 446.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.0007462/0.3819, allocations: 465.1 kB / 0.5844 GB, free: 25.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.382, allocations: 8.281 kB / 0.5844 GB, free: 25.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.304e-05/0.382, allocations: 11.5 kB / 0.5844 GB, free: 25.4 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.3823, allocations: 188.6 kB / 0.5846 GB, free: 25.19 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.632e-05/0.3824, allocations: 37.58 kB / 0.5847 GB, free: 25.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.3824, allocations: 5.312 kB / 0.5847 GB, free: 25.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.3827, allocations: 99.09 kB / 0.5848 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.3827, allocations: 1.375 kB / 0.5848 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.3827, allocations: 0.9375 kB / 0.5848 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3827, allocations: 1.406 kB / 0.5848 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002896/0.383, allocations: 84.89 kB / 0.5848 GB, free: 25.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.3835, allocations: 340.5 kB / 0.5852 GB, free: 24.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.3839, allocations: 91.61 kB / 0.5852 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.3841, allocations: 50.69 kB / 0.5853 GB, free: 24.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.3841, allocations: 5.047 kB / 0.5853 GB, free: 24.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002681/0.3844, allocations: 122.6 kB / 0.5854 GB, free: 24.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.3844, allocations: 0 / 0.5854 GB, free: 24.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005796/0.385, allocations: 177.7 kB / 0.5856 GB, free: 24.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.385, allocations: 57.73 kB / 0.5856 GB, free: 24.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.105e-05/0.3851, allocations: 126.5 kB / 0.5858 GB, free: 24.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3851, allocations: 27.23 kB / 0.5858 GB, free: 24.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.425e-05/0.3852, allocations: 96 kB / 0.5859 GB, free: 24.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.3852, allocations: 28.75 kB / 0.5859 GB, free: 24.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/0.3853, allocations: 32.2 kB / 0.5859 GB, free: 24.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.708e-05/0.3853, allocations: 325.8 kB / 0.5863 GB, free: 23.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.3855, allocations: 57.48 kB / 0.5863 GB, free: 23.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.3857, allocations: 72.77 kB / 0.5864 GB, free: 23.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.386, allocations: 155.9 kB / 0.5865 GB, free: 23.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.386, allocations: 1.062 kB / 0.5865 GB, free: 23.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004192/0.3864, allocations: 227.2 kB / 0.5867 GB, free: 23.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.3865, allocations: 62.33 kB / 0.5868 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.3865, allocations: 0.5312 kB / 0.5868 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.3865, allocations: 2.344 kB / 0.5868 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.3866, allocations: 21.67 kB / 0.5868 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3867, allocations: 1.781 kB / 0.5868 GB, free: 23.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000125/0.3868, allocations: 23.52 kB / 0.5868 GB, free: 23.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.3868, allocations: 8 kB / 0.5869 GB, free: 23.31 MB / 446.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,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 7.809e-05/0.3869, allocations: 127.7 kB / 0.587 GB, free: 23.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/0.3869, allocations: 7.562 kB / 0.587 GB, free: 23.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.387, allocations: 14.47 kB / 0.587 GB, free: 23.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.387, allocations: 1.844 kB / 0.587 GB, free: 23.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.387, allocations: 5.094 kB / 0.587 GB, free: 23.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.387, allocations: 0 / 0.587 GB, free: 23.16 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.3871, allocations: 197.9 kB / 0.5872 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3871, allocations: 1.406 kB / 0.5872 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.3873, allocations: 21.75 kB / 0.5872 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3873, allocations: 1.531 kB / 0.5872 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.3873, allocations: 7.375 kB / 0.5872 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3873, allocations: 0 / 0.5872 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3873, allocations: 1.656 kB / 0.5872 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005337/0.3879, allocations: 223.2 kB / 0.5874 GB, free: 22.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.862e-05/0.3879, allocations: 88.64 kB / 0.5875 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.3879, allocations: 5.281 kB / 0.5875 GB, free: 22.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.3881, allocations: 12.67 kB / 0.5875 GB, free: 22.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.3881, allocations: 19.31 kB / 0.5876 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.3882, allocations: 5 kB / 0.5876 GB, free: 22.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.419e-05/0.3882, allocations: 103.5 kB / 0.5877 GB, free: 22.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3882, allocations: 1.219 kB / 0.5877 GB, free: 22.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002099/0.3884, allocations: 23.88 kB / 0.5877 GB, free: 22.56 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 (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.0001096/0.3885, allocations: 98.97 kB / 0.5878 GB, free: 22.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004302/0.389, allocations: 229.4 kB / 0.588 GB, free: 22.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.389, allocations: 1.219 kB / 0.588 GB, free: 22.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.3892, allocations: 56.7 kB / 0.5881 GB, free: 22.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002416/0.3894, allocations: 23.05 kB / 0.5881 GB, free: 22.26 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006056/0.39, allocations: 251.1 kB / 0.5883 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.3902, allocations: 0.694 MB / 0.589 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.078e-05/0.3902, allocations: 11.17 kB / 0.589 GB, free: 21.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.457e-05/0.3903, allocations: 14.72 kB / 0.589 GB, free: 21.35 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3903, allocations: 0 / 0.589 GB, free: 21.35 MB / 446.1 MB Notification: Performance of Templates: time 0.003902/0.3942, allocations: 1.507 MB / 0.5905 GB, free: 20.64 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)