Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM") Notification: Performance of loadModel(Modelica): time 2.251/2.251, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.798e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM): time 0.009015/0.118, allocations: 4.951 MB / 349.9 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.1287, allocations: 4.027 MB / 354 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.1299, allocations: 51.81 kB / 354 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.131, allocations: 246.5 kB / 354.3 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002185/0.1332, allocations: 434.6 kB / 354.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004532/0.1378, allocations: 1.123 MB / 355.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00288/0.1407, allocations: 1.073 MB / 356.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.1425, allocations: 0.827 MB / 357.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.1439, allocations: 0.6039 MB / 358.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.1457, allocations: 0.7514 MB / 359.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008502/0.1466, allocations: 167.8 kB / 359.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004042/0.147, allocations: 72 kB / 359.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008249/0.1479, allocations: 0.5023 MB / 359.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006368/0.1485, allocations: 167.9 kB / 360 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004417/0.153, allocations: 2.739 MB / 362.7 MB, free: 7.152 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.153, allocations: 3.938 kB / 362.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.153, allocations: 0 / 362.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001103/0.1532, allocations: 0 / 362.7 MB, free: 7.148 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.009528/0.1627, allocations: 2.218 MB / 364.9 MB, free: 4.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.1628, allocations: 8.031 kB / 364.9 MB, free: 4.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001064/0.1638, allocations: 237.3 kB / 365.2 MB, free: 4.621 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00407/0.1679, allocations: 1.3 MB / 366.5 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003048/0.171, allocations: 412.4 kB / 366.9 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007486/0.1718, allocations: 160 kB / 367 MB, free: 2.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.1852, allocations: 2.983 MB / 370 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-05/0.1853, allocations: 0 / 370 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003429/0.1857, allocations: 67.98 kB / 370.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001295/0.1858, allocations: 66.97 kB / 370.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01928/0.2051, allocations: 3.337 MB / 373.5 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02812/0.2333, allocations: 8.125 MB / 381.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.245, allocations: 2.407 MB / 384 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002978/0.2453, allocations: 17.31 kB / 384 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009054/0.2544, allocations: 1.599 MB / 385.6 MB, free: 15.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=141): time 5.501e-06/0.2544, allocations: 0 / 385.6 MB, free: 15.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=141): time 0.04671/0.3012, allocations: 5.88 MB / 391.5 MB, free: 9.863 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002189/0.3014, allocations: 290.3 kB / 391.8 MB, free: 9.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.3051, allocations: 1.363 MB / 393.1 MB, free: 8.148 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004656/0.3056, allocations: 61.7 kB / 393.2 MB, free: 8.082 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009495/0.3065, allocations: 0.6515 MB / 393.9 MB, free: 7.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008569/0.3074, allocations: 445.8 kB / 394.3 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.3076, allocations: 28 kB / 394.3 MB, free: 6.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.3079, allocations: 370.8 kB / 394.7 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00804/0.3159, allocations: 1.327 MB / 396 MB, free: 5.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008557/0.3245, allocations: 1.663 MB / 397.7 MB, free: 3.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008245/0.3328, allocations: 1.382 MB / 399.1 MB, free: 2.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.597e-05/0.3329, allocations: 4 kB / 399.1 MB, free: 2.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.3061/0.639, allocations: 3.439 MB / 402.5 MB, free: 50.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-05/0.6391, allocations: 35 kB / 402.5 MB, free: 50.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-05/0.6391, allocations: 11.09 kB / 402.5 MB, free: 50.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003138/0.6423, allocations: 0.7644 MB / 403.3 MB, free: 50.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001983/0.6443, allocations: 243.5 kB / 403.5 MB, free: 50.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01786/0.6622, allocations: 9.764 MB / 413.3 MB, free: 44.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004544/0.6668, allocations: 432.5 kB / 413.7 MB, free: 44.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000414/0.6672, allocations: 134.5 kB / 413.9 MB, free: 44.1 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.pwm.svPWM.firstTrigger,pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiRef,pwm.svPWM.phiRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.uRef,$whenCondition3,$whenCondition2,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition4,$whenCondition1,pwm.svPWM.sampleTrigger,pwm.fire_n[1],pwm.fire_n[2],pwm.fire_n[3],$PRE.pwm.svPWM.ka,pwm.svPWM.ka,$PRE.pwm.svPWM.kb,pwm.svPWM.kb,$PRE.pwm.svPWM.ta,pwm.svPWM.ta,$PRE.pwm.svPWM.tb,pwm.svPWM.tb,$PRE.pwm.svPWM.t0,pwm.svPWM.t0,$PRE.pwm.svPWM.T0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 129 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.001767/0.669, allocations: 0.7466 MB / 414.6 MB, free: 43.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005075/0.6695, allocations: 167.7 kB / 414.8 MB, free: 43.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01712/0.6867, allocations: 3.538 MB / 418.3 MB, free: 42.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.323e-05/0.6868, allocations: 11.94 kB / 418.3 MB, free: 42.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.6868, allocations: 5.172 kB / 418.3 MB, free: 42.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.6868, allocations: 3.984 kB / 418.3 MB, free: 42.47 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02251/0.7093, allocations: 5.71 MB / 424 MB, free: 39.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.7094, allocations: 0.7656 kB / 424 MB, free: 39.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/0.7108, allocations: 163.8 kB / 424.2 MB, free: 39.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/0.7133, allocations: 0.7432 MB / 424.9 MB, free: 38.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003119/0.7136, allocations: 47.95 kB / 425 MB, free: 38.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01816/0.7318, allocations: 9.747 MB / 434.7 MB, free: 28.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.7319, allocations: 8 kB / 434.8 MB, free: 28.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03429/0.7662, allocations: 5.303 MB / 440.1 MB, free: 22.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/0.7682, allocations: 0.4987 MB / 440.6 MB, free: 22.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006623/0.7689, allocations: 43.48 kB / 440.6 MB, free: 22.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006626/0.7756, allocations: 322.3 kB / 440.9 MB, free: 21.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001201/0.7768, allocations: 264.9 kB / 441.2 MB, free: 21.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003471/0.7772, allocations: 116.1 kB / 441.3 MB, free: 21.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002641/0.7798, allocations: 1.055 MB / 442.3 MB, free: 20.49 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7799, allocations: 4 kB / 442.3 MB, free: 20.49 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00344/0.7833, allocations: 0.5727 MB / 442.9 MB, free: 19.92 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (harmonic.mean1.x,harmonic.mean2.x,integrator.y,filter[1].x[1],filter[1].x[2],filter[2].x[1],filter[2].x[2]) * Number of discrete variables: 39 (pwm.svPWM.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pwm.fire_n[1],pwm.fire_n[2],pwm.fire_n[3],pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 13 (harmonic.mean1.x,harmonic.mean2.x,pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 13,4 13,4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007094/0.784, allocations: 232.1 kB / 443.1 MB, free: 19.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.03482/0.8189, allocations: 3.747 MB / 446.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/0.819, allocations: 4.562 kB / 446.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01277/0.8317, allocations: 2.346 MB / 449.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004137/0.8359, allocations: 433.9 kB / 449.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02228/0.8583, allocations: 5.3 MB / 455 MB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/0.8599, allocations: 1.702 MB / 456.7 MB, free: 6.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.8611, allocations: 147.4 kB / 456.8 MB, free: 5.887 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.8611, allocations: 0 / 456.8 MB, free: 5.887 MB / 330.7 MB Notification: Performance of Templates: time 0.09666/0.9578, allocations: 51.67 MB / 0.4966 GB, free: 2.273 MB / 378.7 MB