Running command: translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT") Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.721e-05/2.733e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Rectifier6pulseFFT): time 0.009376/0.1177, allocations: 5.633 MB / 350.6 MB, free: 3.293 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006917/0.1246, allocations: 2.591 MB / 353.2 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.1261, allocations: 59.75 kB / 353.2 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.128, allocations: 413.9 kB / 353.6 MB, free: 236 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.1312, allocations: 1.096 MB / 354.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.1328, allocations: 319.3 kB / 355.1 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00395/0.1368, allocations: 1.505 MB / 356.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002695/0.1396, allocations: 1.293 MB / 357.9 MB, free: 12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.142, allocations: 1.186 MB / 359 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003382/0.1454, allocations: 1.536 MB / 360.6 MB, free: 9.273 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.1476, allocations: 343.6 kB / 360.9 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000689/0.1483, allocations: 104 kB / 361 MB, free: 8.836 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004646/0.153, allocations: 4.23 MB / 365.2 MB, free: 4.594 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003289/0.1564, allocations: 0.8203 MB / 366.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01377/0.1702, allocations: 9.308 MB / 375.4 MB, free: 10.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1702, allocations: 0 / 375.4 MB, free: 10.44 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1703, allocations: 0 / 375.4 MB, free: 10.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004432/0.1707, allocations: 0 / 375.4 MB, free: 10.44 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.02522/0.1959, allocations: 14.89 MB / 390.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.196, allocations: 12.03 kB / 390.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003751/0.1998, allocations: 1.475 MB / 391.8 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007368/0.2072, allocations: 2.966 MB / 394.7 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.2075, allocations: 160.4 kB / 394.9 MB, free: 6.719 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000791/0.2083, allocations: 220 kB / 395.1 MB, free: 6.504 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5994/0.8077, allocations: 26.93 MB / 422 MB, free: 29.77 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-05/0.8079, allocations: 1.125 kB / 422 MB, free: 29.77 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004081/0.8083, allocations: 90.88 kB / 422.1 MB, free: 29.7 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001935/0.8085, allocations: 109.6 kB / 422.2 MB, free: 29.69 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03156/0.8401, allocations: 24.42 MB / 446.6 MB, free: 6.32 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03207/0.8722, allocations: 14.7 MB / 461.3 MB, free: 7.68 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08888/0.9611, allocations: 82.4 MB / 0.531 GB, free: 5.309 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004376/0.9616, allocations: 127.5 kB / 0.5311 GB, free: 5.168 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04123/1.003, allocations: 29.88 MB / 0.5603 GB, free: 7.516 MB / 458.8 MB Notification: Performance of pre-optimization done (n=4937): time 7.554e-06/1.003, allocations: 0 / 0.5603 GB, free: 7.516 MB / 458.8 MB Notification: Performance of matching and sorting (n=4941): time 18.5/19.51, allocations: 2.9 GB / 3.46 GB, free: 9.875 MB / 1.839 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01248/19.52, allocations: 7.194 MB / 3.467 GB, free: 2.953 MB / 1.839 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004966/19.52, allocations: 1.344 MB / 3.469 GB, free: 1.598 MB / 1.839 GB Notification: Performance of collectPreVariables (initialization): time 0.01503/19.54, allocations: 3.931 MB / 3.473 GB, free: 13.65 MB / 1.854 GB Notification: Performance of collectInitialEqns (initialization): time 0.00217/19.54, allocations: 0.9919 MB / 3.474 GB, free: 12.65 MB / 1.854 GB Notification: Performance of collectInitialBindings (initialization): time 0.0426/19.58, allocations: 21.23 MB / 3.494 GB, free: 7.453 MB / 1.87 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006603/19.59, allocations: 1.488 MB / 3.496 GB, free: 5.965 MB / 1.87 GB Notification: Performance of setup shared object (initialization): time 0.007454/19.6, allocations: 3.463 MB / 3.499 GB, free: 2.488 MB / 1.87 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0778/19.67, allocations: 26.21 MB / 3.525 GB, free: 8.25 MB / 1.901 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1082/19.78, allocations: 57.62 MB / 3.581 GB, free: 15.92 MB / 1.979 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09607/19.88, allocations: 37.73 MB / 3.618 GB, free: 10.15 MB / 2.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002056/19.88, allocations: 304 kB / 3.618 GB, free: 9.855 MB / 2.011 GB Notification: Performance of matching and sorting (n=9772) (initialization): time 0.2479/20.13, allocations: 85.48 MB / 3.702 GB, free: 4.32 MB / 2.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.003132/20.13, allocations: 481.7 kB / 3.702 GB, free: 3.844 MB / 2.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004148/20.14, allocations: 1.031 MB / 3.703 GB, free: 2.812 MB / 2.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009619/20.15, allocations: 2.432 MB / 3.705 GB, free: 380 kB / 2.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06325/20.21, allocations: 10.54 MB / 3.716 GB, free: 5.809 MB / 2.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02291/20.23, allocations: 12.87 MB / 3.728 GB, free: 8.41 MB / 2.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04167/20.27, allocations: 2.426 MB / 3.731 GB, free: 5.984 MB / 2.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0102/20.28, allocations: 3.562 MB / 3.734 GB, free: 2.422 MB / 2.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4822 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realFFT.firstTrigger,realFFT.firstTrigger,$PRE.realFFT.info,realFFT.info,$PRE.realFFT.buf[4000],realFFT.buf[4000],$PRE.realFFT.iTick,realFFT.iTick,$whenCondition3,$whenCondition1,$whenCondition2,realFFT.sampleTrigger,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9717): * Single equations (assignments): 9712 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03457/20.32, allocations: 14.19 MB / 3.748 GB, free: 4.164 MB / 2.136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005959/20.33, allocations: 2.215 MB / 3.75 GB, free: 1.93 MB / 2.136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 21.46/41.79, allocations: 8.841 GB / 12.59 GB, free: 1.329 GB / 2.339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.156e-05/41.79, allocations: 12 kB / 12.59 GB, free: 1.329 GB / 2.339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/41.79, allocations: 4.625 kB / 12.59 GB, free: 1.329 GB / 2.339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/41.79, allocations: 11.75 kB / 12.59 GB, free: 1.329 GB / 2.339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.65/54.43, allocations: 8.861 GB / 21.45 GB, free: 437.8 MB / 2.339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.427e-05/54.43, allocations: 1.75 kB / 21.45 GB, free: 437.8 MB / 2.339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/54.43, allocations: 157.5 kB / 21.45 GB, free: 437.7 MB / 2.339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004145/54.44, allocations: 0.8046 MB / 21.45 GB, free: 436.9 MB / 2.339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002789/54.44, allocations: 0.6248 MB / 21.45 GB, free: 436.3 MB / 2.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/54.46, allocations: 10.61 MB / 21.46 GB, free: 425.3 MB / 2.339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/54.46, allocations: 0 / 21.46 GB, free: 425.3 MB / 2.339 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 13.01/67.47, allocations: 8.895 GB / 30.36 GB, free: 1.473 GB / 2.339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.015/67.48, allocations: 4.81 MB / 30.36 GB, free: 1.469 GB / 2.339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004318/67.48, allocations: 0.6211 MB / 30.36 GB, free: 1.468 GB / 2.339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009151/67.49, allocations: 0.6695 MB / 30.37 GB, free: 1.468 GB / 2.339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004035/67.5, allocations: 0.548 MB / 30.37 GB, free: 1.467 GB / 2.339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002829/67.5, allocations: 0.625 MB / 30.37 GB, free: 1.467 GB / 2.339 GB Notification: Performance of sorting global known variables: time 0.002235/67.5, allocations: 1.061 MB / 30.37 GB, free: 1.466 GB / 2.339 GB Notification: Performance of sort global known variables: time 8.31e-07/67.5, allocations: 2.406 kB / 30.37 GB, free: 1.466 GB / 2.339 GB Notification: Performance of remove unused functions: time 0.0476/67.55, allocations: 9.513 MB / 30.38 GB, free: 1.456 GB / 2.339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (realFFT.sampleTrigger,$whenCondition3,$whenCondition1,$whenCondition2,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,realFFT.firstTrigger,realFFT.info,realFFT.buf[4000],realFFT.iTick) * Number of discrete states: 5 (realFFT.info,$whenCondition2,realFFT.buf[4000],realFFT.iTick,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004469/67.56, allocations: 0.9682 MB / 30.38 GB, free: 1.456 GB / 2.339 GB Notification: Performance of simCode: created initialization part: time 0.1503/67.71, allocations: 81.77 MB / 30.46 GB, free: 1.376 GB / 2.339 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/67.71, allocations: 2.109 kB / 30.46 GB, free: 1.376 GB / 2.339 GB Notification: Performance of simCode: created simulation system equations: time 60.53/128.2, allocations: 28.59 GB / 59.05 GB, free: 148.9 MB / 2.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01038/128.2, allocations: 1.054 MB / 59.05 GB, free: 147.9 MB / 2.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.129/128.4, allocations: 66.24 MB / 59.11 GB, free: 81.81 MB / 2.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02455/128.4, allocations: 9.086 MB / 59.12 GB, free: 72.68 MB / 2.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01201/128.4, allocations: 1.277 MB / 59.12 GB, free: 71.4 MB / 2.573 GB Notification: Performance of SimCode: time 2.174e-06/128.4, allocations: 4 kB / 59.12 GB, free: 71.4 MB / 2.573 GB [CodegenCppCommon.tpl:1601:11-1601:11:writable] Error: Template error: ASUB_EASY_CASE 1:nfi.