Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 2.431/2.431, allocations: 269 MB / 284.1 MB, free: 3.621 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.09e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003096/0.1327, allocations: 1.812 MB / 412.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1345, allocations: 0.6742 MB / 413.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.1347, allocations: 15.94 kB / 413.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.1349, allocations: 19.78 kB / 413.4 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002808/0.1351, allocations: 51.83 kB / 413.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.1355, allocations: 91.77 kB / 413.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003207/0.1358, allocations: 171.6 kB / 413.7 MB, free: 9.992 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.1361, allocations: 81.8 kB / 413.8 MB, free: 9.914 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.1363, allocations: 83.75 kB / 413.9 MB, free: 9.832 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.1366, allocations: 115.5 kB / 414 MB, free: 9.719 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.943e-05/0.1366, allocations: 8 kB / 414 MB, free: 9.711 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.1367, allocations: 12 kB / 414 MB, free: 9.699 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.264e-05/0.1368, allocations: 51.77 kB / 414.1 MB, free: 9.648 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.379e-05/0.1369, allocations: 20 kB / 414.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.1373, allocations: 263.7 kB / 414.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1373, allocations: 0 / 414.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1373, allocations: 0 / 414.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.1373, allocations: 4 kB / 414.4 MB, free: 9.367 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001278/0.1386, allocations: 0.5217 MB / 414.9 MB, free: 8.801 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.1387, allocations: 8.031 kB / 414.9 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.1388, allocations: 43.53 kB / 414.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007542/0.1396, allocations: 334 kB / 415.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.944e-05/0.1396, allocations: 24.56 kB / 415.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.45e-05/0.1397, allocations: 28 kB / 415.3 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008437/0.1406, allocations: 280.8 kB / 415.6 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.1406, allocations: 3.906 kB / 415.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.1407, allocations: 12 kB / 415.6 MB, free: 8.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1407, allocations: 4 kB / 415.6 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007499/0.1415, allocations: 202.1 kB / 415.8 MB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.1436, allocations: 0.8227 MB / 416.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006642/0.1443, allocations: 202.8 kB / 416.8 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.1444, allocations: 4 kB / 416.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000656/0.1451, allocations: 235.1 kB / 417.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 5.891e-06/0.1451, allocations: 0 / 417.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001329/0.1464, allocations: 393.1 kB / 417.5 MB, free: 6.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.1465, allocations: 55.41 kB / 417.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.1468, allocations: 208.1 kB / 417.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.1469, allocations: 37.7 kB / 417.7 MB, free: 5.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.1471, allocations: 230.9 kB / 418 MB, free: 5.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1472, allocations: 102.5 kB / 418.1 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/0.1473, allocations: 4 kB / 418.1 MB, free: 5.457 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1474, allocations: 330.8 kB / 418.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003826/0.1478, allocations: 92.69 kB / 418.5 MB, free: 5.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004581/0.1483, allocations: 222.6 kB / 418.7 MB, free: 4.754 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000424/0.1487, allocations: 127.8 kB / 418.8 MB, free: 4.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1488, allocations: 4 kB / 418.8 MB, free: 4.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001076/0.1499, allocations: 360.9 kB / 419.2 MB, free: 4.266 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.1499, allocations: 10.75 kB / 419.2 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1499, allocations: 8 kB / 419.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/0.15, allocations: 8.562 kB / 419.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005459/0.1505, allocations: 83.89 kB / 419.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1505, allocations: 7.938 kB / 419.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.1509, allocations: 39.72 kB / 419.3 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.1509, allocations: 24 kB / 419.4 MB, free: 4.09 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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.0002879/0.1512, allocations: 161.7 kB / 419.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.771e-05/0.1513, allocations: 23.72 kB / 419.5 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.1524, allocations: 336.2 kB / 419.9 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.1524, allocations: 7.953 kB / 419.9 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.1524, allocations: 3.984 kB / 419.9 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.1525, allocations: 0 / 419.9 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.154, allocations: 0.7188 MB / 420.6 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.154, allocations: 0 / 420.6 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004886/0.1545, allocations: 55.91 kB / 420.7 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1545, allocations: 0 / 420.7 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/0.1546, allocations: 15.94 kB / 420.7 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.1546, allocations: 0 / 420.7 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1546, allocations: 4 kB / 420.7 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.1561, allocations: 0.5345 MB / 421.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.623e-05/0.1562, allocations: 108.7 kB / 421.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/0.1563, allocations: 8.062 kB / 421.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.1566, allocations: 19.94 kB / 421.3 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.333e-05/0.1567, allocations: 19.97 kB / 421.4 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.451e-05/0.1567, allocations: 19.98 kB / 421.4 MB, free: 1.961 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002202/0.157, allocations: 160.5 kB / 421.5 MB, free: 1.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.157, allocations: 96 / 421.5 MB, free: 1.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004992/0.1575, allocations: 71.72 kB / 421.6 MB, free: 1.738 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001857/0.1577, allocations: 129.2 kB / 421.7 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009243/0.1586, allocations: 271.6 kB / 422 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.1587, allocations: 0 / 422 MB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004609/0.1591, allocations: 135.8 kB / 422.1 MB, free: 1.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.1595, allocations: 29.36 kB / 422.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.1611, allocations: 0.7343 MB / 422.9 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3135/0.4746, allocations: 0.784 MB / 423.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000209/0.4749, allocations: 34.97 kB / 423.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/0.4749, allocations: 0 / 423.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of Templates: time 0.01143/0.4863, allocations: 3.497 MB / 427.2 MB, free: 12.16 MB / 346.7 MB