Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 2.581/2.581, allocations: 234.9 MB / 250.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.586e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.42/0.4201, allocations: 54.87 MB / 362.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003233/0.4234, allocations: 1.755 MB / 364.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.4253, allocations: 0.6819 MB / 365.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.4256, allocations: 17.84 kB / 365.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.4257, allocations: 19.78 kB / 365.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.426, allocations: 43.92 kB / 365.4 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.4263, allocations: 92.25 kB / 365.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003033/0.4266, allocations: 157.8 kB / 365.6 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.4269, allocations: 72.2 kB / 365.7 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.4271, allocations: 89.09 kB / 365.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.4274, allocations: 101.3 kB / 365.9 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.026e-05/0.4274, allocations: 10 kB / 365.9 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.338e-05/0.4275, allocations: 10.53 kB / 365.9 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.4276, allocations: 48.31 kB / 365.9 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.425e-05/0.4276, allocations: 21.19 kB / 366 MB, free: 9.617 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.428, allocations: 238.9 kB / 366.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.428, allocations: 1.219 kB / 366.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.428, allocations: 0 / 366.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.4281, allocations: 0 / 366.2 MB, free: 9.441 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001293/0.4294, allocations: 0.5249 MB / 366.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4294, allocations: 12.59 kB / 366.7 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.4296, allocations: 34.88 kB / 366.8 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007137/0.4303, allocations: 312.9 kB / 367.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.472e-05/0.4304, allocations: 24.16 kB / 367.1 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.36e-05/0.4305, allocations: 30.66 kB / 367.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008055/0.4313, allocations: 254.2 kB / 367.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.4313, allocations: 1.375 kB / 367.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.703e-05/0.4314, allocations: 14.33 kB / 367.4 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.4314, allocations: 10.33 kB / 367.4 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007106/0.4321, allocations: 190.5 kB / 367.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.4343, allocations: 0.7801 MB / 368.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000688/0.435, allocations: 210.1 kB / 368.6 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.4351, allocations: 3.156 kB / 368.6 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006931/0.4358, allocations: 231.6 kB / 368.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.377e-06/0.4358, allocations: 0 / 368.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.001399/0.4372, allocations: 385.1 kB / 369.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.4373, allocations: 56.69 kB / 369.2 MB, free: 7.207 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.4376, allocations: 206.6 kB / 369.4 MB, free: 7.059 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.337e-05/0.4377, allocations: 35.7 kB / 369.5 MB, free: 7.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.4379, allocations: 224.4 kB / 369.7 MB, free: 6.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.438, allocations: 94.66 kB / 369.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.438, allocations: 7.938 kB / 369.8 MB, free: 6.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.4382, allocations: 330.8 kB / 370.1 MB, free: 6.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003662/0.4386, allocations: 92.69 kB / 370.2 MB, free: 6.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.439, allocations: 226.5 kB / 370.4 MB, free: 5.992 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004324/0.4395, allocations: 123.9 kB / 370.5 MB, free: 5.871 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.4395, allocations: 4 kB / 370.5 MB, free: 5.867 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001086/0.4406, allocations: 364.9 kB / 370.9 MB, free: 5.504 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.4406, allocations: 8 kB / 370.9 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.4407, allocations: 4.562 kB / 370.9 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.4407, allocations: 15.88 kB / 370.9 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005546/0.4413, allocations: 79.89 kB / 371 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.797e-05/0.4413, allocations: 7.938 kB / 371 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.4417, allocations: 35.75 kB / 371 MB, free: 5.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.4417, allocations: 19.98 kB / 371.1 MB, free: 5.336 MB / 298.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,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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.0002706/0.442, allocations: 161.7 kB / 371.2 MB, free: 5.168 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/0.4421, allocations: 31.7 kB / 371.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.4432, allocations: 335.1 kB / 371.6 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.4432, allocations: 0 / 371.6 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4432, allocations: 4 kB / 371.6 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.4432, allocations: 3.984 kB / 371.6 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001511/0.4448, allocations: 0.7129 MB / 372.3 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4448, allocations: 0 / 372.3 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005016/0.4453, allocations: 51.91 kB / 372.4 MB, free: 3.973 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.4453, allocations: 4 kB / 372.4 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.38e-05/0.4454, allocations: 8 kB / 372.4 MB, free: 3.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/0.4454, allocations: 7.984 kB / 372.4 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4454, allocations: 0 / 372.4 MB, free: 3.953 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.4469, allocations: 0.5423 MB / 372.9 MB, free: 3.395 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.4471, allocations: 100.8 kB / 373 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.4472, allocations: 8.062 kB / 373 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003011/0.4475, allocations: 15.98 kB / 373 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.4476, allocations: 23.97 kB / 373.1 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.628e-05/0.4476, allocations: 15.98 kB / 373.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002401/0.4479, allocations: 160.5 kB / 373.2 MB, free: 3.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4479, allocations: 0 / 373.2 MB, free: 3.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005297/0.4485, allocations: 71.75 kB / 373.3 MB, free: 2.988 MB / 298.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.0001817/0.4486, allocations: 119.2 kB / 373.4 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009494/0.4496, allocations: 271.8 kB / 373.7 MB, free: 2.602 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4496, allocations: 0 / 373.7 MB, free: 2.602 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004685/0.4501, allocations: 136.8 kB / 373.8 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.4505, allocations: 28.55 kB / 373.8 MB, free: 2.438 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.4521, allocations: 0.7125 MB / 374.6 MB, free: 1.691 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.4526, allocations: 0.7843 MB / 375.3 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.4528, allocations: 31.42 kB / 375.4 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of SimCode: time 1.213e-06/0.4528, allocations: 3.938 kB / 375.4 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of Templates: time 0.008555/0.4614, allocations: 3.386 MB / 378.8 MB, free: 13.46 MB / 314.7 MB