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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.005761/0.005761, allocations: 169.3 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7431/0.7431, allocations: 135.2 MB / 151.1 MB, free: 13.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 223.2 MB / 406.9 MB, free: 3.207 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 88.62 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004627/0.0004628, allocations: 12 kB / 0.5691 GB, free: 14.17 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4884/0.4888, allocations: 82.31 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1926/0.6815, allocations: 112.6 MB / 0.7594 GB, free: 3.406 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/0.6819, allocations: 71.95 kB / 0.7595 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.009374/0.6913, allocations: 2.351 MB / 0.7618 GB, free: 0.9766 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.775e-06/0.6914, allocations: 4 kB / 0.7618 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.6914, allocations: 0 / 0.7618 GB, free: 0.9727 MB / 0.5261 GB 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.0009599/0.6924, allocations: 458.5 kB / 0.7622 GB, free: 476 kB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.311e-05/0.6925, allocations: 11.97 kB / 0.7622 GB, free: 464 kB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.6926, allocations: 15.91 kB / 0.7623 GB, free: 448 kB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.6929, allocations: 190.9 kB / 0.7624 GB, free: 216 kB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.6931, allocations: 37.69 kB / 0.7625 GB, free: 172 kB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.053e-05/0.6931, allocations: 11.91 kB / 0.7625 GB, free: 160 kB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.6935, allocations: 101.6 kB / 0.7626 GB, free: 52 kB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.6936, allocations: 4 kB / 0.7626 GB, free: 48 kB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.6936, allocations: 3.984 kB / 0.7626 GB, free: 44 kB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.6937, allocations: 4 kB / 0.7626 GB, free: 40 kB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.6941, allocations: 91.88 kB / 0.7627 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008512/0.6949, allocations: 344.7 kB / 0.763 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005831/0.6955, allocations: 106.6 kB / 0.7631 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.6956, allocations: 0 / 0.7631 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005264/0.6961, allocations: 131.3 kB / 0.7632 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 2.214e-06/0.6961, allocations: 0 / 0.7632 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0009136/0.6971, allocations: 205.4 kB / 0.7634 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.6971, allocations: 59.41 kB / 0.7635 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.6973, allocations: 115.2 kB / 0.7636 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.6973, allocations: 33.69 kB / 0.7636 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.6974, allocations: 99.98 kB / 0.7637 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.6975, allocations: 27.61 kB / 0.7637 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.264e-05/0.6975, allocations: 0 / 0.7637 GB, free: 14.74 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001753/0.6977, allocations: 318.8 kB / 0.7641 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.6979, allocations: 63.95 kB / 0.7641 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.6982, allocations: 83.92 kB / 0.7642 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003542/0.6986, allocations: 115.4 kB / 0.7643 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6986, allocations: 0 / 0.7643 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006755/0.6993, allocations: 238.2 kB / 0.7645 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.273e-05/0.6994, allocations: 67.33 kB / 0.7646 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.6994, allocations: 0 / 0.7646 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.6994, allocations: 0 / 0.7646 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.6996, allocations: 32.02 kB / 0.7646 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.6996, allocations: 0 / 0.7646 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.6998, allocations: 27.91 kB / 0.7647 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.6999, allocations: 7.953 kB / 0.7647 GB, free: 13.75 MB / 0.5417 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,$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 0.0001427/0.7, allocations: 126.4 kB / 0.7648 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.7001, allocations: 7.906 kB / 0.7648 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.67e-05/0.7001, allocations: 12.38 kB / 0.7648 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.7001, allocations: 4 kB / 0.7648 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.7001, allocations: 4 kB / 0.7648 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.7002, allocations: 3.984 kB / 0.7648 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.7004, allocations: 197.6 kB / 0.765 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7004, allocations: 0 / 0.765 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.7007, allocations: 23.97 kB / 0.765 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.7007, allocations: 0 / 0.765 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.7007, allocations: 8 kB / 0.765 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.7007, allocations: 4 kB / 0.765 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7007, allocations: 0 / 0.765 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008719/0.7016, allocations: 249.2 kB / 0.7653 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.7017, allocations: 85.02 kB / 0.7654 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.7018, allocations: 4 kB / 0.7654 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.7019, allocations: 19.98 kB / 0.7654 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.557e-05/0.7021, allocations: 19.97 kB / 0.7654 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.7021, allocations: 4 kB / 0.7654 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 8.179e-05/0.7022, allocations: 96.27 kB / 0.7655 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3e-07/0.7022, allocations: 0 / 0.7655 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003665/0.7026, allocations: 31.92 kB / 0.7655 GB, free: 12.78 MB / 0.5417 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 (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 0.000194/0.7028, allocations: 111.1 kB / 0.7656 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007225/0.7035, allocations: 246.7 kB / 0.7659 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7035, allocations: 0 / 0.7659 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.7038, allocations: 64.02 kB / 0.7659 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.7041, allocations: 19.94 kB / 0.7659 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008688/0.705, allocations: 269.3 kB / 0.7662 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.7054, allocations: 0.7004 MB / 0.7669 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.7055, allocations: 12.42 kB / 0.7669 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.246e-05/0.7056, allocations: 15.44 kB / 0.7669 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of SimCode: time 5.91e-07/0.7056, allocations: 0 / 0.7669 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of Templates: time 0.004864/0.7104, allocations: 1.256 MB / 0.7681 GB, free: 10.02 MB / 0.5417 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)