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.00112/0.00112, allocations: 108.8 kB / 16.37 MB, free: 6.473 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.001154/0.001154, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8294/0.8294, allocations: 135.1 MB / 426.3 MB, free: 4.152 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002368/0.002368, allocations: 67.89 kB / 0.5068 GB, free: 7.688 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3575, allocations: 80.91 MB / 0.5858 GB, free: 25.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.00288/0.3605, allocations: 1.573 MB / 0.5873 GB, free: 24.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008679/0.3614, allocations: 0.5376 MB / 0.5878 GB, free: 23.99 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.79e-05/0.3615, allocations: 0.8125 kB / 0.5878 GB, free: 23.99 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.556e-05/0.3615, allocations: 5 kB / 0.5878 GB, free: 23.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.764e-05/0.3616, allocations: 14.05 kB / 0.5878 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.3619, allocations: 54.28 kB / 0.5879 GB, free: 23.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.3622, allocations: 106.9 kB / 0.588 GB, free: 23.87 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.3623, allocations: 11.05 kB / 0.588 GB, free: 23.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.3624, allocations: 43 kB / 0.5881 GB, free: 23.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.3626, allocations: 42.36 kB / 0.5881 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.3626, allocations: 11.59 kB / 0.5881 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.45e-05/0.3626, allocations: 7.906 kB / 0.5881 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 3.796e-05/0.3627, allocations: 23.47 kB / 0.5881 GB, free: 23.79 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.265e-05/0.3627, allocations: 35.47 kB / 0.5882 GB, free: 23.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.3629, allocations: 85.36 kB / 0.5882 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3629, allocations: 1.438 kB / 0.5882 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3629, allocations: 3.938 kB / 0.5883 GB, free: 23.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.3629, allocations: 1.062 kB / 0.5883 GB, free: 23.69 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.0006676/0.3636, allocations: 460.3 kB / 0.5887 GB, free: 23.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3636, allocations: 13.95 kB / 0.5887 GB, free: 23.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.3637, allocations: 12.75 kB / 0.5887 GB, free: 23.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.3638, allocations: 191.8 kB / 0.5889 GB, free: 23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.807e-05/0.3639, allocations: 40.31 kB / 0.5889 GB, free: 22.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.364, allocations: 5.469 kB / 0.5889 GB, free: 22.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002626/0.3642, allocations: 99.56 kB / 0.589 GB, free: 22.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3643, allocations: 5.312 kB / 0.589 GB, free: 22.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.3643, allocations: 1.062 kB / 0.589 GB, free: 22.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.3643, allocations: 1.312 kB / 0.589 GB, free: 22.89 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/0.3646, allocations: 75.67 kB / 0.5891 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.3651, allocations: 332.2 kB / 0.5894 GB, free: 22.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.3655, allocations: 101.5 kB / 0.5895 GB, free: 22.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3656, allocations: 43.55 kB / 0.5896 GB, free: 22.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.3657, allocations: 1.281 kB / 0.5896 GB, free: 22.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.3659, allocations: 124.7 kB / 0.5897 GB, free: 22.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.3659, allocations: 0 / 0.5897 GB, free: 22.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.000535/0.3665, allocations: 175.2 kB / 0.5899 GB, free: 22.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.3665, allocations: 53.03 kB / 0.5899 GB, free: 22.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.056e-05/0.3666, allocations: 133.9 kB / 0.59 GB, free: 21.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3666, allocations: 29.64 kB / 0.5901 GB, free: 21.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.811e-05/0.3667, allocations: 97.11 kB / 0.5902 GB, free: 21.83 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.3667, allocations: 31.55 kB / 0.5902 GB, free: 21.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.3668, allocations: 34.14 kB / 0.5902 GB, free: 21.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.555e-05/0.3668, allocations: 325.2 kB / 0.5905 GB, free: 21.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.367, allocations: 51.95 kB / 0.5906 GB, free: 21.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.3671, allocations: 66.77 kB / 0.5906 GB, free: 21.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.3674, allocations: 163 kB / 0.5908 GB, free: 21.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3675, allocations: 0 / 0.5908 GB, free: 21.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003936/0.3679, allocations: 226.5 kB / 0.591 GB, free: 20.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.3679, allocations: 61.03 kB / 0.5911 GB, free: 20.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3679, allocations: 0 / 0.5911 GB, free: 20.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3679, allocations: 0 / 0.5911 GB, free: 20.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3681, allocations: 27.97 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3681, allocations: 0.5 kB / 0.5911 GB, free: 20.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3682, allocations: 26.2 kB / 0.5911 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.3682, allocations: 7.938 kB / 0.5911 GB, free: 20.77 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 6.7e-05/0.3683, allocations: 118.7 kB / 0.5912 GB, free: 20.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.721e-05/0.3683, allocations: 14.19 kB / 0.5913 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.3684, allocations: 16.36 kB / 0.5913 GB, free: 20.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3684, allocations: 0 / 0.5913 GB, free: 20.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3684, allocations: 0 / 0.5913 GB, free: 20.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.3684, allocations: 8 kB / 0.5913 GB, free: 20.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.3685, allocations: 201.4 kB / 0.5915 GB, free: 20.37 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3685, allocations: 0 / 0.5915 GB, free: 20.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.3687, allocations: 16.98 kB / 0.5915 GB, free: 20.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3687, allocations: 0.5938 kB / 0.5915 GB, free: 20.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3687, allocations: 8 kB / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3687, allocations: 1.281 kB / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3687, allocations: 0 / 0.5915 GB, free: 20.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005115/0.3692, allocations: 220.1 kB / 0.5917 GB, free: 20.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.838e-05/0.3693, allocations: 88.95 kB / 0.5918 GB, free: 20.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.3693, allocations: 4 kB / 0.5918 GB, free: 20 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.3694, allocations: 17.23 kB / 0.5918 GB, free: 19.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.594e-05/0.3695, allocations: 15.98 kB / 0.5918 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.3695, allocations: 5.719 kB / 0.5918 GB, free: 19.97 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.3695, allocations: 105.3 kB / 0.5919 GB, free: 19.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3696, allocations: 96 / 0.5919 GB, free: 19.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.3698, allocations: 27.92 kB / 0.592 GB, free: 19.84 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.0001167/0.3699, allocations: 105 kB / 0.5921 GB, free: 19.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004027/0.3703, allocations: 228.2 kB / 0.5923 GB, free: 19.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3703, allocations: 0 / 0.5923 GB, free: 19.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.3705, allocations: 60.86 kB / 0.5923 GB, free: 19.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.3708, allocations: 22.88 kB / 0.5924 GB, free: 19.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005696/0.3713, allocations: 239.9 kB / 0.5926 GB, free: 19.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001269/0.3715, allocations: 0.6924 MB / 0.5933 GB, free: 18.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.016e-05/0.3715, allocations: 5.281 kB / 0.5933 GB, free: 18.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.3716, allocations: 17.69 kB / 0.5933 GB, free: 18.41 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3716, allocations: 0 / 0.5933 GB, free: 18.41 MB / 446.1 MB Notification: Performance of Templates: time 0.00363/0.3752, allocations: 1.507 MB / 0.5948 GB, free: 16.96 MB / 446.1 MB 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 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.MovingAverage.pipe 2>&1)