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 2.169/2.169, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.732e-05/2.742e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.TotalHarmonicDistortion): time 0.005326/0.1148, allocations: 2.948 MB / 347.9 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003072/0.1179, allocations: 1.048 MB / 349 MB, free: 4.934 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000501/0.1185, allocations: 27.94 kB / 349 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.1187, allocations: 55.48 kB / 349.1 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004695/0.1192, allocations: 107.5 kB / 349.2 MB, free: 4.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009162/0.1201, allocations: 239.6 kB / 349.4 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008522/0.121, allocations: 423.2 kB / 349.8 MB, free: 4.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004772/0.1215, allocations: 203 kB / 350 MB, free: 3.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003853/0.1219, allocations: 195.4 kB / 350.2 MB, free: 3.707 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004316/0.1223, allocations: 231 kB / 350.4 MB, free: 3.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1225, allocations: 20 kB / 350.4 MB, free: 3.461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.829e-05/0.1226, allocations: 24 kB / 350.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.1227, allocations: 111.5 kB / 350.6 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1229, allocations: 40 kB / 350.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1239, allocations: 0.7289 MB / 351.3 MB, free: 2.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.124, allocations: 4 kB / 351.3 MB, free: 2.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.124, allocations: 0 / 351.3 MB, free: 2.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.124, allocations: 0 / 351.3 MB, free: 2.555 MB / 282.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.002348/0.1264, allocations: 0.8352 MB / 352.2 MB, free: 1.668 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1264, allocations: 8.031 kB / 352.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.1267, allocations: 86.95 kB / 352.3 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001885/0.1286, allocations: 0.5799 MB / 352.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.1287, allocations: 45.31 kB / 352.9 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.129, allocations: 64 kB / 353 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002917/0.1319, allocations: 0.6761 MB / 353.6 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/0.132, allocations: 7.906 kB / 353.6 MB, free: 148 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/0.1321, allocations: 23.98 kB / 353.7 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.1322, allocations: 15.95 kB / 353.7 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003282/0.1355, allocations: 0.536 MB / 354.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007907/0.1434, allocations: 1.933 MB / 356.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002939/0.1464, allocations: 0.5236 MB / 356.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.586e-05/0.1466, allocations: 16.42 kB / 356.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002062/0.1487, allocations: 405.1 kB / 357.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=53): time 4.819e-06/0.1487, allocations: 0 / 357.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.003865/0.1526, allocations: 0.7834 MB / 357.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.661e-05/0.1527, allocations: 115.2 kB / 358 MB, free: 11.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009857/0.1537, allocations: 397 kB / 358.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.1539, allocations: 41.7 kB / 358.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004793/0.1544, allocations: 358.8 kB / 358.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/0.1547, allocations: 157.8 kB / 358.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.1548, allocations: 12 kB / 358.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.1551, allocations: 338.8 kB / 359.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.1565, allocations: 217.2 kB / 359.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.1581, allocations: 437 kB / 359.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.1595, allocations: 266.5 kB / 360.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.1595, allocations: 0 / 360.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003424/0.1629, allocations: 0.6755 MB / 360.8 MB, free: 8.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001425/0.1644, allocations: 2.532 MB / 363.4 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/0.1645, allocations: 4 kB / 363.4 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.261e-05/0.1645, allocations: 12 kB / 363.4 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.1662, allocations: 139.8 kB / 363.5 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.024e-05/0.1662, allocations: 23.92 kB / 363.5 MB, free: 5.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.1674, allocations: 91.41 kB / 363.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.1675, allocations: 27.98 kB / 363.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1676, allocations: 8 kB / 363.7 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00287/0.1705, allocations: 0.5798 MB / 364.2 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.1705, allocations: 4 kB / 364.2 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.1706, allocations: 12 kB / 364.3 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.172, allocations: 131.8 kB / 364.4 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-05/0.1721, allocations: 15.94 kB / 364.4 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009375/0.173, allocations: 67.91 kB / 364.5 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.1732, allocations: 31.94 kB / 364.5 MB, free: 4.855 MB / 298.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.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid,$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.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid) * 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.0008577/0.1741, allocations: 244.1 kB / 364.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.1744, allocations: 67.23 kB / 364.8 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01858/0.193, allocations: 0.618 MB / 365.4 MB, free: 3.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.061e-05/0.193, allocations: 7.984 kB / 365.4 MB, free: 3.906 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.1931, allocations: 4 kB / 365.4 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.1931, allocations: 3.984 kB / 365.4 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.1948, allocations: 0.6341 MB / 366.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.1949, allocations: 0 / 366.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.1962, allocations: 99.86 kB / 366.2 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.437e-05/0.1962, allocations: 4 kB / 366.2 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.796e-05/0.1963, allocations: 15.98 kB / 366.2 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-05/0.1964, allocations: 3.938 kB / 366.2 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1964, allocations: 0 / 366.2 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00789/0.2147, allocations: 0.9293 MB / 367.1 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.2149, allocations: 132.4 kB / 367.2 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.2151, allocations: 27.98 kB / 367.3 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009014/0.2161, allocations: 43.97 kB / 367.3 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.2163, allocations: 44.48 kB / 367.4 MB, free: 1.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.009498/0.2258, allocations: 23.98 kB / 367.4 MB, free: 1.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008635/0.2267, allocations: 299.1 kB / 367.7 MB, free: 1.578 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.2268, allocations: 4 kB / 367.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.007161/0.2339, allocations: 243.1 kB / 367.9 MB, free: 1.336 MB / 298.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: 20 ($cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.greaterThreshold.y,thd1.valid,thd1.pythagoras.valid,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.greaterThreshold.y,thdRMS.valid,thdRMS.pythagoras.valid) * 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 (55): * Single equations (assignments): 49 * 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.0003323/0.2343, allocations: 131.4 kB / 368 MB, free: 1.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007617/0.2419, allocations: 0.8794 MB / 368.9 MB, free: 332 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.242, allocations: 0 / 368.9 MB, free: 332 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.2434, allocations: 295.9 kB / 369.2 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000831/0.2443, allocations: 72.05 kB / 369.3 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.2481, allocations: 1.404 MB / 370.7 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007208/0.2489, allocations: 0.9194 MB / 371.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.2492, allocations: 55.42 kB / 371.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2492, allocations: 0 / 371.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of Templates: time 0.01782/0.2671, allocations: 7.566 MB / 379.2 MB, free: 5.973 MB / 314.7 MB