Running command: translateModel(Modelica.Blocks.Examples.TotalHarmonicDistortion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.TotalHarmonicDistortion") Notification: Performance of loadModel(Modelica): time 1.856/1.856, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.514e-05, allocations: 6.031 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09812, allocations: 50.42 MB / 342.5 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.4474, allocations: 81.19 MB / 423.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.4477, allocations: 65.34 kB / 423.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04152/0.4892, allocations: 10.42 MB / 434.2 MB, free: 4.184 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.861e-06/0.4892, allocations: 0 / 434.2 MB, free: 4.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.65e-05/0.4893, allocations: 12 kB / 434.2 MB, free: 4.172 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.001909/0.4912, allocations: 0.8506 MB / 435.1 MB, free: 3.312 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.4913, allocations: 8.031 kB / 435.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002023/0.4915, allocations: 79.06 kB / 435.2 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.4925, allocations: 0.5229 MB / 435.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.515e-05/0.4926, allocations: 50.94 kB / 435.7 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.4928, allocations: 69.41 kB / 435.8 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.4941, allocations: 0.6027 MB / 436.4 MB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/0.4942, allocations: 3.984 kB / 436.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.382e-05/0.4943, allocations: 21.62 kB / 436.4 MB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.4943, allocations: 19.94 kB / 436.5 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.4953, allocations: 417.2 kB / 436.9 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004065/0.4994, allocations: 1.984 MB / 438.8 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009312/0.5004, allocations: 412.2 kB / 439.3 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.5008, allocations: 170.6 kB / 439.4 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.5009, allocations: 12.36 kB / 439.4 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007647/0.5016, allocations: 349 kB / 439.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 4.154e-06/0.5017, allocations: 0 / 439.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001122/0.5028, allocations: 467.1 kB / 440.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.5029, allocations: 111.2 kB / 440.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.5035, allocations: 392.7 kB / 440.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.571e-05/0.5036, allocations: 43.33 kB / 440.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.5039, allocations: 356.2 kB / 441.1 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.5041, allocations: 169.7 kB / 441.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.5042, allocations: 10.81 kB / 441.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.5044, allocations: 340.8 kB / 441.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003936/0.5048, allocations: 157.3 kB / 441.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006/0.5054, allocations: 371.8 kB / 442.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/0.5059, allocations: 204.9 kB / 442.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.5059, allocations: 0 / 442.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001257/0.5072, allocations: 0.549 MB / 442.9 MB, free: 13.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00137/0.5086, allocations: 2.524 MB / 445.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.5086, allocations: 4 kB / 445.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.5086, allocations: 12 kB / 445.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007399/0.5094, allocations: 151 kB / 445.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.823e-05/0.5094, allocations: 15.89 kB / 445.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000617/0.5101, allocations: 89.42 kB / 445.7 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-05/0.5102, allocations: 30.12 kB / 445.7 MB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.5102, allocations: 4 kB / 445.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001157/0.5113, allocations: 0.4918 MB / 446.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.5114, allocations: 7.938 kB / 446.2 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.5114, allocations: 12.81 kB / 446.2 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006579/0.5121, allocations: 138.8 kB / 446.4 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.5121, allocations: 8 kB / 446.4 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.5126, allocations: 73.69 kB / 446.4 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.5126, allocations: 34.88 kB / 446.5 MB, free: 9.73 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.0002481/0.5129, allocations: 161.1 kB / 446.6 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.5131, allocations: 58.91 kB / 446.7 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001236/0.5143, allocations: 0.4895 MB / 447.2 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.566e-06/0.5144, allocations: 4 kB / 447.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.768e-06/0.5144, allocations: 4 kB / 447.2 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5144, allocations: 3.984 kB / 447.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000999/0.5154, allocations: 0.6402 MB / 447.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.5154, allocations: 0 / 447.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006342/0.5161, allocations: 98.8 kB / 447.9 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.337e-06/0.5161, allocations: 8 kB / 447.9 MB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.762e-05/0.5162, allocations: 16.05 kB / 447.9 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.5162, allocations: 7.953 kB / 448 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.196e-06/0.5162, allocations: 0 / 448 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.5179, allocations: 0.7348 MB / 448.7 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.5181, allocations: 131.6 kB / 448.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.5182, allocations: 14.31 kB / 448.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.5187, allocations: 55.33 kB / 448.9 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.5188, allocations: 51.58 kB / 448.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.095e-05/0.5189, allocations: 23.3 kB / 449 MB, free: 7.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005152/0.5194, allocations: 304.6 kB / 449.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.69e-07/0.5195, allocations: 0 / 449.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001107/0.5206, allocations: 254.5 kB / 449.5 MB, free: 7.344 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.0002405/0.5208, allocations: 135.1 kB / 449.6 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.5225, allocations: 0.6932 MB / 450.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.961e-06/0.5225, allocations: 0 / 450.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.5231, allocations: 229.5 kB / 450.6 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/0.5235, allocations: 58.06 kB / 450.6 MB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.5259, allocations: 0.8753 MB / 451.5 MB, free: 5.461 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007234/0.5266, allocations: 0.916 MB / 452.4 MB, free: 4.512 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.5269, allocations: 55.41 kB / 452.5 MB, free: 4.457 MB / 362.7 MB Notification: Performance of SimCode: time 1.805e-06/0.5269, allocations: 4 kB / 452.5 MB, free: 4.453 MB / 362.7 MB Notification: Performance of Templates: time 0.01457/0.5415, allocations: 7.428 MB / 459.9 MB, free: 13.05 MB / 378.7 MB