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.001181/0.001181, allocations: 103.4 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.001141/0.001141, allocations: 194.1 kB / 16.25 MB, free: 6.617 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7555/0.7555, allocations: 132.2 MB / 422.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 67.62 kB / 0.5013 GB, free: 4.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4622/0.4637, allocations: 80.21 MB / 0.5796 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.MovingAverage): time 0.003308/0.467, allocations: 1.635 MB / 0.5812 GB, free: 3.406 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.4682, allocations: 0.5294 MB / 0.5817 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.705e-05/0.4683, allocations: 0.7188 kB / 0.5817 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 4.656e-05/0.4683, allocations: 5.297 kB / 0.5817 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.4685, allocations: 10.47 kB / 0.5817 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.4688, allocations: 52.58 kB / 0.5818 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.4691, allocations: 100.2 kB / 0.5819 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.4692, allocations: 11.36 kB / 0.5819 GB, free: 2.941 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.237e-05/0.4693, allocations: 40.98 kB / 0.5819 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.4694, allocations: 46.7 kB / 0.582 GB, free: 2.898 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.4694, allocations: 8.531 kB / 0.582 GB, free: 2.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.173e-05/0.4695, allocations: 8.75 kB / 0.582 GB, free: 2.898 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.68e-05/0.4695, allocations: 15.27 kB / 0.582 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.383e-05/0.4696, allocations: 38.94 kB / 0.582 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.4697, allocations: 79.25 kB / 0.5821 GB, free: 2.836 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.4697, allocations: 1.375 kB / 0.5821 GB, free: 2.836 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4698, allocations: 4 kB / 0.5821 GB, free: 2.832 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.4698, allocations: 0 / 0.5821 GB, free: 2.832 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.000791/0.4706, allocations: 460.6 kB / 0.5826 GB, free: 2.387 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.4706, allocations: 9.094 kB / 0.5826 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/0.4707, allocations: 11.69 kB / 0.5826 GB, free: 2.383 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.4709, allocations: 187.1 kB / 0.5828 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-05/0.471, allocations: 42.19 kB / 0.5828 GB, free: 2.137 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.471, allocations: 9.703 kB / 0.5828 GB, free: 2.133 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.4714, allocations: 98.47 kB / 0.5829 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.4714, allocations: 0 / 0.5829 GB, free: 2.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.4714, allocations: 5.438 kB / 0.5829 GB, free: 2.078 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.4714, allocations: 5.312 kB / 0.5829 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.4718, allocations: 75.98 kB / 0.583 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.4724, allocations: 338.7 kB / 0.5833 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/0.4729, allocations: 101 kB / 0.5834 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.473, allocations: 45.05 kB / 0.5835 GB, free: 1.695 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4731, allocations: 1.875 kB / 0.5835 GB, free: 1.695 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003977/0.4735, allocations: 116.4 kB / 0.5836 GB, free: 1.633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.4735, allocations: 4 kB / 0.5836 GB, free: 1.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006142/0.4741, allocations: 171.1 kB / 0.5837 GB, free: 1.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.4741, allocations: 61.47 kB / 0.5838 GB, free: 1.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.439e-05/0.4742, allocations: 132.7 kB / 0.5839 GB, free: 1.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.4743, allocations: 27.86 kB / 0.5839 GB, free: 1.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.4743, allocations: 96.94 kB / 0.584 GB, free: 1.262 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.011e-05/0.4744, allocations: 33.53 kB / 0.5841 GB, free: 1.234 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-05/0.4744, allocations: 31.3 kB / 0.5841 GB, free: 1.211 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.962e-05/0.4745, allocations: 325 kB / 0.5844 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.4747, allocations: 51.28 kB / 0.5845 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.4749, allocations: 70.34 kB / 0.5845 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.4752, allocations: 158.1 kB / 0.5847 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4752, allocations: 0 / 0.5847 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004688/0.4757, allocations: 227.6 kB / 0.5849 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.4758, allocations: 63.44 kB / 0.585 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4758, allocations: 0.6562 kB / 0.585 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4758, allocations: 1.219 kB / 0.585 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.4759, allocations: 23.38 kB / 0.585 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.476, allocations: 1.156 kB / 0.585 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.4761, allocations: 25.55 kB / 0.585 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.4761, allocations: 8.312 kB / 0.585 GB, free: 0.5273 MB / 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,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 9.034e-05/0.4762, allocations: 124.8 kB / 0.5851 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.4763, allocations: 4.734 kB / 0.5851 GB, free: 412 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.366e-05/0.4763, allocations: 14.5 kB / 0.5851 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.4763, allocations: 1.344 kB / 0.5852 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4763, allocations: 1.828 kB / 0.5852 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4763, allocations: 0.7031 kB / 0.5852 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.4765, allocations: 200.2 kB / 0.5853 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4765, allocations: 0 / 0.5853 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.4767, allocations: 23.53 kB / 0.5854 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4767, allocations: 1.219 kB / 0.5854 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.4767, allocations: 9.375 kB / 0.5854 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.4767, allocations: 0.6875 kB / 0.5854 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4767, allocations: 1.938 kB / 0.5854 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.4774, allocations: 219.9 kB / 0.5856 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.664e-05/0.4774, allocations: 92.53 kB / 0.5857 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.4775, allocations: 2.812 kB / 0.5857 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.4776, allocations: 16.17 kB / 0.5857 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.4777, allocations: 17.55 kB / 0.5857 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.4777, allocations: 4.531 kB / 0.5857 GB, free: 15.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.133e-05/0.4778, allocations: 106.3 kB / 0.5858 GB, free: 15.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4778, allocations: 4 kB / 0.5858 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000214/0.478, allocations: 22.75 kB / 0.5858 GB, free: 15.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.0001259/0.4782, allocations: 98.03 kB / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000499/0.4787, allocations: 226 kB / 0.5862 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4787, allocations: 0.9375 kB / 0.5862 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.4789, allocations: 68.67 kB / 0.5862 GB, free: 15.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.4792, allocations: 20.05 kB / 0.5862 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000728/0.4799, allocations: 262.9 kB / 0.5865 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.4802, allocations: 0.6978 MB / 0.5872 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.278e-05/0.4802, allocations: 7.078 kB / 0.5872 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.4803, allocations: 14.2 kB / 0.5872 GB, free: 14.67 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4803, allocations: 0 / 0.5872 GB, free: 14.67 MB / 446.1 MB Notification: Performance of Templates: time 0.004507/0.4848, allocations: 1.423 MB / 0.5886 GB, free: 14.55 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)