Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|thd1.harmonic.mean1.x|thd1.harmonic.mean2.x|thd1.rootMeanSquare.mean.x|thdRMS.harmonic.mean1.x|thdRMS.harmonic.mean2.x|thdRMS.rootMeanSquare.mean.x",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.794e-05, allocations: 4 kB / 269.3 MB, free: 6.422 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08941/0.08946, allocations: 47.58 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3579/0.4474, allocations: 79.59 MB / 396.5 MB, free: 8.586 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.4477, allocations: 73.88 kB / 396.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04292/0.4906, allocations: 10.17 MB / 406.8 MB, free: 20 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.252e-06/0.4907, allocations: 4 kB / 406.8 MB, free: 16 kB / 314.7 MB Notification: Performance of Transformations before backend: time 8.054e-05/0.4908, allocations: 20.2 kB / 406.8 MB, free: 15.99 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002025/0.4928, allocations: 0.8365 MB / 407.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4929, allocations: 8.031 kB / 407.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.4931, allocations: 83.02 kB / 407.7 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001094/0.4943, allocations: 0.5237 MB / 408.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.061e-05/0.4943, allocations: 44.75 kB / 408.3 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.4945, allocations: 60.38 kB / 408.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.4958, allocations: 0.581 MB / 408.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.4959, allocations: 3.906 kB / 408.9 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.106e-05/0.496, allocations: 28.36 kB / 408.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.853e-05/0.496, allocations: 16 kB / 409 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.4971, allocations: 406.1 kB / 409.4 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004535/0.5016, allocations: 1.95 MB / 411.3 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009803/0.5027, allocations: 402 kB / 411.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004024/0.5031, allocations: 182.1 kB / 411.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.108e-05/0.5032, allocations: 15.78 kB / 411.9 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000755/0.5039, allocations: 343.8 kB / 412.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=53): time 4.683e-06/0.504, allocations: 0 / 412.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.001229/0.5052, allocations: 461.6 kB / 412.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.5053, allocations: 114.2 kB / 412.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/0.5061, allocations: 403.9 kB / 413.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.5062, allocations: 48.7 kB / 413.2 MB, free: 10.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.5065, allocations: 315.8 kB / 413.5 MB, free: 10.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.5067, allocations: 161.1 kB / 413.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.5067, allocations: 11.31 kB / 413.7 MB, free: 10.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.507, allocations: 363.9 kB / 414.1 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00041/0.5074, allocations: 160.8 kB / 414.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006085/0.508, allocations: 372.1 kB / 414.6 MB, free: 9.742 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004882/0.5085, allocations: 203.6 kB / 414.8 MB, free: 9.613 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.219e-06/0.5086, allocations: 0 / 414.8 MB, free: 9.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001432/0.51, allocations: 0.5788 MB / 415.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001429/0.5115, allocations: 2.52 MB / 417.9 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.5115, allocations: 11.95 kB / 417.9 MB, free: 6.488 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-05/0.5115, allocations: 12 kB / 417.9 MB, free: 6.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008469/0.5124, allocations: 154.5 kB / 418.1 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.376e-05/0.5124, allocations: 11.94 kB / 418.1 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006751/0.5131, allocations: 93.98 kB / 418.2 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.229e-05/0.5132, allocations: 27.5 kB / 418.2 MB, free: 6.215 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.5133, allocations: 4 kB / 418.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001193/0.5145, allocations: 0.4933 MB / 418.7 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.5145, allocations: 7.984 kB / 418.7 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5145, allocations: 12.81 kB / 418.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/0.5152, allocations: 138.3 kB / 418.8 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.946e-05/0.5152, allocations: 12 kB / 418.8 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.5158, allocations: 72.69 kB / 418.9 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-05/0.5159, allocations: 31.44 kB / 418.9 MB, free: 5.613 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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.0002774/0.5162, allocations: 159.6 kB / 419.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.5164, allocations: 59.3 kB / 419.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001297/0.5177, allocations: 0.4884 MB / 419.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5177, allocations: 8 kB / 419.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.624e-06/0.5178, allocations: 3.938 kB / 419.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.5178, allocations: 3.984 kB / 419.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.5188, allocations: 0.6355 MB / 420.3 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.5188, allocations: 0 / 420.3 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.52, allocations: 102.9 kB / 420.4 MB, free: 4.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.475e-05/0.52, allocations: 4 kB / 420.4 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.132e-05/0.5201, allocations: 14.73 kB / 420.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.63e-06/0.5202, allocations: 4 kB / 420.4 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.882e-06/0.5202, allocations: 0 / 420.4 MB, free: 4.434 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003127/0.5233, allocations: 0.7399 MB / 421.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.5237, allocations: 136 kB / 421.3 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.524, allocations: 17.39 kB / 421.3 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007504/0.5247, allocations: 58.08 kB / 421.4 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.5249, allocations: 45.75 kB / 421.4 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.925e-05/0.5251, allocations: 19.05 kB / 421.4 MB, free: 3.668 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008303/0.5259, allocations: 313.5 kB / 421.7 MB, free: 3.438 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.084e-06/0.5259, allocations: 0 / 421.7 MB, free: 3.438 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002062/0.528, allocations: 249.9 kB / 422 MB, free: 3.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.00034/0.5284, allocations: 131.4 kB / 422.1 MB, free: 3.094 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002839/0.5313, allocations: 0.7076 MB / 422.8 MB, free: 2.598 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.492e-06/0.5313, allocations: 3.938 kB / 422.8 MB, free: 2.594 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008895/0.5322, allocations: 216.9 kB / 423 MB, free: 2.453 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008471/0.5331, allocations: 66.48 kB / 423.1 MB, free: 2.414 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.5368, allocations: 0.8508 MB / 424 MB, free: 1.676 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.5379, allocations: 0.9088 MB / 424.9 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001501/0.5395, allocations: 130.6 kB / 425 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.5398, allocations: 46.48 kB / 425 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of SimCode: time 2.938e-06/0.5398, allocations: 0 / 425 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of Templates: time 0.03167/0.5715, allocations: 6.109 MB / 431.1 MB, free: 10.49 MB / 346.7 MB