Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.06e-05/4.089e-05, allocations: 4 kB / 269.5 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.49/0.6012, allocations: 109.6 MB / 426.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004953/0.6018, allocations: 90.5 kB / 426.7 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2199/0.8217, allocations: 34.65 MB / 461.4 MB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.8218, allocations: 0 / 461.4 MB, free: 13.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003454/0.8221, allocations: 51.94 kB / 461.4 MB, free: 13.38 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.01196/0.8341, allocations: 2.122 MB / 463.5 MB, free: 11.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.133e-05/0.8342, allocations: 8.031 kB / 463.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001437/0.8356, allocations: 241.2 kB / 463.8 MB, free: 11.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.837, allocations: 233.3 kB / 464 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006817/0.8439, allocations: 1.374 MB / 465.4 MB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001418/0.8454, allocations: 229.6 kB / 465.6 MB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/0.8465, allocations: 161.5 kB / 465.8 MB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.8571, allocations: 2.487 MB / 468.3 MB, free: 7.738 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.121e-05/0.8573, allocations: 4 kB / 468.3 MB, free: 7.734 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004937/0.8578, allocations: 62 kB / 468.3 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.858, allocations: 66.62 kB / 468.4 MB, free: 7.656 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.8689, allocations: 2.398 MB / 470.8 MB, free: 5.305 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0369/0.9058, allocations: 8.001 MB / 478.8 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007924/0.9138, allocations: 1.973 MB / 480.8 MB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005186/0.9191, allocations: 1.327 MB / 482.1 MB, free: 9.859 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002557/0.9194, allocations: 21.3 kB / 482.1 MB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004535/0.924, allocations: 1.129 MB / 483.2 MB, free: 8.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=141): time 1.037e-05/0.924, allocations: 0 / 483.2 MB, free: 8.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.009954/0.934, allocations: 2.463 MB / 485.7 MB, free: 6.203 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002508/0.9343, allocations: 290.3 kB / 486 MB, free: 5.859 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004843/0.9392, allocations: 1.342 MB / 487.3 MB, free: 4.508 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005564/0.9398, allocations: 61.7 kB / 487.4 MB, free: 4.441 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.9412, allocations: 0.6894 MB / 488.1 MB, free: 3.742 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001157/0.9424, allocations: 437.9 kB / 488.5 MB, free: 3.309 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.9427, allocations: 32 kB / 488.5 MB, free: 3.277 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003502/0.943, allocations: 373.9 kB / 488.9 MB, free: 2.906 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003589/0.9467, allocations: 0.8981 MB / 489.8 MB, free: 2.008 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004332/0.951, allocations: 1.214 MB / 491 MB, free: 0.6719 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.9549, allocations: 0.9747 MB / 492 MB, free: 15.69 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.017e-05/0.955, allocations: 4 kB / 492 MB, free: 15.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.01087/0.9659, allocations: 2.666 MB / 494.7 MB, free: 13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.726e-05/0.9661, allocations: 41.64 kB / 494.7 MB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.986e-05/0.9662, allocations: 12.72 kB / 494.7 MB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005248/0.9714, allocations: 0.7794 MB / 495.5 MB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003123/0.9746, allocations: 223.5 kB / 495.7 MB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02412/0.9988, allocations: 9.983 MB / 0.4938 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004472/1.003, allocations: 390.3 kB / 0.4942 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004847/1.004, allocations: 59.98 kB / 0.4943 GB, free: 1.105 MB / 410.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,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y,$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.0006796/1.005, allocations: 258.4 kB / 0.4945 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000626/1.005, allocations: 173.9 kB / 0.4947 GB, free: 0.6719 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00774/1.013, allocations: 2.666 MB / 0.4973 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/1.013, allocations: 12 kB / 0.4973 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/1.013, allocations: 4 kB / 0.4973 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-05/1.013, allocations: 7.938 kB / 0.4973 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01541/1.029, allocations: 5.197 MB / 0.5024 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/1.029, allocations: 0 / 0.5024 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/1.03, allocations: 139.7 kB / 0.5025 GB, free: 8.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/1.033, allocations: 0.754 MB / 0.5033 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003843/1.034, allocations: 35.98 kB / 0.5033 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3247/1.358, allocations: 9.718 MB / 0.5128 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.358, allocations: 2.125 kB / 0.5128 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.369, allocations: 4.086 MB / 0.5168 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.371, allocations: 0.497 MB / 0.5173 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005601/1.371, allocations: 39.81 kB / 0.5173 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004109/1.375, allocations: 298.7 kB / 0.5176 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/1.377, allocations: 376.5 kB / 0.5179 GB, free: 121.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002343/1.377, allocations: 38.55 kB / 0.518 GB, free: 121.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002636/1.38, allocations: 1.045 MB / 0.519 GB, free: 121.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.38, allocations: 0 / 0.519 GB, free: 121.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003256/1.383, allocations: 0.574 MB / 0.5196 GB, free: 121.2 MB / 426.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,harmonic.mean2.y) * 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.01097/1.394, allocations: 4.779 MB / 0.5242 GB, free: 120.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006792/1.401, allocations: 2.861 MB / 0.527 GB, free: 119.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/1.401, allocations: 2.469 kB / 0.527 GB, free: 119.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004183/1.405, allocations: 1.972 MB / 0.5289 GB, free: 119.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003315/1.409, allocations: 433.6 kB / 0.5294 GB, free: 119.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/1.423, allocations: 4.162 MB / 0.5334 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/1.425, allocations: 1.73 MB / 0.5351 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001919/1.427, allocations: 366.1 kB / 0.5355 GB, free: 117.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/1.428, allocations: 0.6179 MB / 0.5361 GB, free: 116.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.412e-06/1.428, allocations: 0 / 0.5361 GB, free: 116.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/1.545, allocations: 48.66 MB / 0.5836 GB, free: 91.25 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/1.545, allocations: 222 kB / 0.5838 GB, free: 91.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.477/6.022, allocations: 4 kB / 0.5838 GB, free: 91.03 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat does not exist to compare? outputFormat=mat