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_4.0.0_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadModel(Modelica): time 1.985/1.985, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.61e-05, allocations: 4 kB / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.09172, allocations: 50.42 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3582/0.45, allocations: 81.12 MB / 423.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.4502, allocations: 66.59 kB / 423.7 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04238/0.4926, allocations: 10.43 MB / 434.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.143e-06/0.4926, allocations: 0 / 434.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.136e-05/0.4927, allocations: 12 kB / 434.2 MB, free: 4.281 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: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.001985/0.4947, allocations: 0.8421 MB / 435 MB, free: 3.43 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.4947, allocations: 8.031 kB / 435 MB, free: 3.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.4949, allocations: 87.05 kB / 435.1 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.4967, allocations: 0.518 MB / 435.6 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.4968, allocations: 50.7 kB / 435.7 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002284/0.4971, allocations: 69.64 kB / 435.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.4996, allocations: 0.5992 MB / 436.4 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-05/0.4997, allocations: 3.938 kB / 436.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.4999, allocations: 34.17 kB / 436.4 MB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/0.4999, allocations: 12 kB / 436.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.5017, allocations: 414.1 kB / 436.8 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007007/0.5087, allocations: 1.988 MB / 438.8 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.5103, allocations: 408.3 kB / 439.2 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.5107, allocations: 172.3 kB / 439.4 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.5108, allocations: 8.438 kB / 439.4 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007722/0.5116, allocations: 349.4 kB / 439.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 4.087e-06/0.5116, allocations: 0 / 439.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001216/0.5129, allocations: 468.2 kB / 440.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.685e-05/0.513, allocations: 118.7 kB / 440.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006717/0.5137, allocations: 391.7 kB / 440.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.271e-05/0.5138, allocations: 40.14 kB / 440.7 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.5141, allocations: 319.2 kB / 441 MB, free: 14.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.5143, allocations: 162 kB / 441.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.5143, allocations: 16.56 kB / 441.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.5146, allocations: 371.6 kB / 441.6 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004021/0.515, allocations: 157.2 kB / 441.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006138/0.5156, allocations: 375.7 kB / 442.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.5161, allocations: 211.2 kB / 442.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.5162, allocations: 0 / 442.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001395/0.5176, allocations: 0.5756 MB / 442.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001404/0.519, allocations: 2.523 MB / 445.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/0.519, allocations: 11.98 kB / 445.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.191e-05/0.5191, allocations: 8 kB / 445.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/0.5199, allocations: 147.7 kB / 445.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-05/0.5199, allocations: 19.89 kB / 445.6 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006684/0.5206, allocations: 91.11 kB / 445.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-05/0.5207, allocations: 23.06 kB / 445.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.5207, allocations: 4 kB / 445.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00117/0.5219, allocations: 0.5017 MB / 446.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.5219, allocations: 12 kB / 446.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.522, allocations: 12 kB / 446.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.5227, allocations: 135.7 kB / 446.3 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.189e-05/0.5227, allocations: 15.94 kB / 446.4 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/0.5233, allocations: 69.97 kB / 446.4 MB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.671e-05/0.5234, allocations: 23.75 kB / 446.4 MB, free: 9.848 MB / 362.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_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,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.0002554/0.5236, allocations: 166.7 kB / 446.6 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.5238, allocations: 59.25 kB / 446.7 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.5251, allocations: 499 kB / 447.2 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.5251, allocations: 8 kB / 447.2 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.876e-06/0.5251, allocations: 0 / 447.2 MB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.527e-06/0.5251, allocations: 4 kB / 447.2 MB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009846/0.5261, allocations: 0.6353 MB / 447.8 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.532e-06/0.5261, allocations: 0 / 447.8 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006459/0.5268, allocations: 97.88 kB / 447.9 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.368e-05/0.5268, allocations: 4 kB / 447.9 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.5269, allocations: 15.05 kB / 447.9 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.399e-06/0.5269, allocations: 7.953 kB / 447.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.623e-06/0.5269, allocations: 0 / 447.9 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.5287, allocations: 0.7465 MB / 448.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.5289, allocations: 128.4 kB / 448.8 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/0.529, allocations: 16 kB / 448.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.5295, allocations: 55.95 kB / 448.9 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.5296, allocations: 44.33 kB / 448.9 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.735e-05/0.5297, allocations: 19.98 kB / 448.9 MB, free: 7.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005336/0.5303, allocations: 305.2 kB / 449.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.64e-07/0.5303, allocations: 3.938 kB / 449.2 MB, free: 7.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001104/0.5314, allocations: 251.1 kB / 449.5 MB, free: 7.215 MB / 362.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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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.000241/0.5316, allocations: 144.8 kB / 449.6 MB, free: 7.062 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.5334, allocations: 0.7094 MB / 450.3 MB, free: 6.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5334, allocations: 4.125 kB / 450.3 MB, free: 6.352 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005248/0.534, allocations: 217.6 kB / 450.5 MB, free: 6.141 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004634/0.5344, allocations: 66.12 kB / 450.6 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.5367, allocations: 0.8464 MB / 451.5 MB, free: 5.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007029/0.5374, allocations: 0.9123 MB / 452.4 MB, free: 4.258 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007377/0.5381, allocations: 122.4 kB / 452.5 MB, free: 4.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.5383, allocations: 43.42 kB / 452.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of SimCode: time 1.569e-06/0.5383, allocations: 0 / 452.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of Templates: time 0.01873/0.5571, allocations: 6.092 MB / 458.6 MB, free: 14.04 MB / 378.7 MB