Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.151/2.151, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.219e-05, allocations: 4 kB / 292.3 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 50.4 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4964/0.6172, allocations: 110.3 MB / 453 MB, free: 240 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.6176, allocations: 88.94 kB / 453.1 MB, free: 188 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1764/0.794, allocations: 35.03 MB / 488.1 MB, free: 1.035 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.7941, allocations: 4 kB / 488.1 MB, free: 1.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000306/0.7944, allocations: 51.92 kB / 488.2 MB, free: 0.9805 MB / 394.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.009761/0.8042, allocations: 2.136 MB / 490.3 MB, free: 14.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.766e-05/0.8043, allocations: 8.031 kB / 490.3 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001074/0.8053, allocations: 244.1 kB / 490.5 MB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008461/0.8062, allocations: 237.3 kB / 490.8 MB, free: 14.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004847/0.8111, allocations: 1.378 MB / 492.2 MB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001061/0.8122, allocations: 232.6 kB / 492.4 MB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006526/0.8129, allocations: 156 kB / 492.5 MB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007862/0.8207, allocations: 2.488 MB / 495 MB, free: 9.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.772e-05/0.8209, allocations: 0 / 495 MB, free: 9.852 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/0.8212, allocations: 75.98 kB / 495.1 MB, free: 9.777 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.8213, allocations: 66.95 kB / 495.2 MB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007804/0.8291, allocations: 2.387 MB / 497.6 MB, free: 7.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02728/0.8565, allocations: 8.005 MB / 0.4937 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005789/0.8623, allocations: 1.95 MB / 0.4956 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003852/0.8662, allocations: 1.327 MB / 0.4969 GB, free: 11.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001949/0.8665, allocations: 21.3 kB / 0.4969 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003305/0.8698, allocations: 1.141 MB / 0.498 GB, free: 10.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 6.342e-06/0.8699, allocations: 0 / 0.498 GB, free: 10.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.006685/0.8766, allocations: 2.448 MB / 0.5004 GB, free: 8.246 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002016/0.8768, allocations: 294.3 kB / 0.5007 GB, free: 7.895 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/0.8801, allocations: 1.346 MB / 0.502 GB, free: 6.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000434/0.8806, allocations: 61.7 kB / 0.5021 GB, free: 6.473 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009442/0.8815, allocations: 0.6856 MB / 0.5028 GB, free: 5.777 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007902/0.8823, allocations: 441.8 kB / 0.5032 GB, free: 5.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.8825, allocations: 28 kB / 0.5032 GB, free: 5.312 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.8827, allocations: 365.9 kB / 0.5036 GB, free: 4.949 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.8851, allocations: 0.9019 MB / 0.5044 GB, free: 4.047 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002765/0.8879, allocations: 1.214 MB / 0.5056 GB, free: 2.711 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.8906, allocations: 0.9807 MB / 0.5066 GB, free: 1.727 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.43e-05/0.8906, allocations: 0 / 0.5066 GB, free: 1.727 MB / 426.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007779/0.8984, allocations: 2.667 MB / 0.5092 GB, free: 15.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.707e-05/0.8985, allocations: 37.69 kB / 0.5092 GB, free: 14.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-05/0.8986, allocations: 12 kB / 0.5092 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003162/0.9018, allocations: 0.7867 MB / 0.51 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001881/0.9037, allocations: 215.6 kB / 0.5102 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/0.9244, allocations: 9.975 MB / 0.5199 GB, free: 3.598 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/0.9288, allocations: 402.2 kB / 0.5203 GB, free: 3.203 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004575/0.9294, allocations: 56 kB / 0.5204 GB, free: 3.148 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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,$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.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],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 (130): * Single equations (assignments): 122 * 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 15,4 15,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.0006768/0.93, allocations: 254.4 kB / 0.5206 GB, free: 2.891 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006051/0.9307, allocations: 170 kB / 0.5208 GB, free: 2.723 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008048/0.9387, allocations: 2.666 MB / 0.5234 GB, free: 28 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.751e-05/0.9388, allocations: 16 kB / 0.5234 GB, free: 12 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.9388, allocations: 4 kB / 0.5234 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-05/0.9389, allocations: 3.984 kB / 0.5234 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3073/1.246, allocations: 5.188 MB / 0.5285 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.246, allocations: 0 / 0.5285 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/1.248, allocations: 133.1 kB / 0.5286 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003021/1.251, allocations: 0.7537 MB / 0.5293 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004112/1.251, allocations: 40.16 kB / 0.5294 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/1.269, allocations: 9.725 MB / 0.5389 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.269, allocations: 1.062 kB / 0.5389 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009654/1.279, allocations: 4.08 MB / 0.5429 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/1.28, allocations: 0.4939 MB / 0.5433 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005706/1.281, allocations: 41.77 kB / 0.5434 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004001/1.285, allocations: 301.5 kB / 0.5437 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001335/1.286, allocations: 378.2 kB / 0.544 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/1.287, allocations: 41.41 kB / 0.5441 GB, free: 118.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00247/1.289, allocations: 1.041 MB / 0.5451 GB, free: 117.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.289, allocations: 0 / 0.5451 GB, free: 117.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003251/1.292, allocations: 0.5889 MB / 0.5457 GB, free: 117.6 MB / 442.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.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.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],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 (81): * Single equations (assignments): 74 * 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 14,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.01151/1.304, allocations: 4.771 MB / 0.5503 GB, free: 115.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006765/1.311, allocations: 2.86 MB / 0.5531 GB, free: 114.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/1.311, allocations: 1.25 kB / 0.5531 GB, free: 114.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004465/1.315, allocations: 1.966 MB / 0.555 GB, free: 113 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003525/1.319, allocations: 432.2 kB / 0.5555 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/1.334, allocations: 4.182 MB / 0.5595 GB, free: 111.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001703/1.335, allocations: 1.729 MB / 0.5612 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001947/1.337, allocations: 368.3 kB / 0.5616 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/1.339, allocations: 0.6069 MB / 0.5622 GB, free: 110.1 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/1.339, allocations: 0 / 0.5622 GB, free: 110.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1307/1.469, allocations: 48.67 MB / 0.6097 GB, free: 80.87 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/1.47, allocations: 226.3 kB / 0.6099 GB, free: 80.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.427/5.897, allocations: 0 / 0.6099 GB, free: 80.64 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat does not exist to compare? outputFormat=mat