Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.203/2.203, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.742e-05/3.752e-05, allocations: 4 kB / 292.8 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 50.4 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4929/0.6062, allocations: 110.3 MB / 453.5 MB, free: 272 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003447/0.6066, allocations: 90.19 kB / 453.6 MB, free: 220 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1588/0.7654, allocations: 35.05 MB / 488.6 MB, free: 1.055 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.7655, allocations: 0 / 488.6 MB, free: 1.055 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003113/0.7658, allocations: 51.94 kB / 488.7 MB, free: 1.004 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.009715/0.7756, allocations: 2.128 MB / 490.8 MB, free: 14.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.7756, allocations: 12.03 kB / 490.8 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001114/0.7768, allocations: 240 kB / 491.1 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001194/0.778, allocations: 241.3 kB / 491.3 MB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005201/0.7832, allocations: 1.37 MB / 492.7 MB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/0.7844, allocations: 228.6 kB / 492.9 MB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008694/0.7853, allocations: 160 kB / 493 MB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008223/0.7936, allocations: 2.496 MB / 495.5 MB, free: 9.879 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.558e-05/0.7937, allocations: 4 kB / 495.5 MB, free: 9.875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004256/0.7941, allocations: 64 kB / 495.6 MB, free: 9.812 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.7943, allocations: 70.95 kB / 495.7 MB, free: 9.742 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007989/0.8023, allocations: 2.387 MB / 498.1 MB, free: 7.352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02884/0.8312, allocations: 7.997 MB / 0.4942 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00588/0.8371, allocations: 1.965 MB / 0.4961 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003874/0.8411, allocations: 1.327 MB / 0.4974 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/0.8413, allocations: 13.31 kB / 0.4974 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003474/0.8448, allocations: 1.141 MB / 0.4985 GB, free: 10.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 6.783e-06/0.8449, allocations: 0 / 0.4985 GB, free: 10.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.007626/0.8525, allocations: 2.448 MB / 0.5009 GB, free: 8.277 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002006/0.8528, allocations: 290.3 kB / 0.5012 GB, free: 7.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003575/0.8564, allocations: 1.342 MB / 0.5025 GB, free: 6.578 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004504/0.8569, allocations: 57.7 kB / 0.5026 GB, free: 6.516 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/0.858, allocations: 0.6895 MB / 0.5032 GB, free: 5.816 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009505/0.859, allocations: 445.7 kB / 0.5037 GB, free: 5.375 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.8591, allocations: 32 kB / 0.5037 GB, free: 5.344 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.8594, allocations: 365.9 kB / 0.5041 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002648/0.8621, allocations: 0.8981 MB / 0.5049 GB, free: 4.082 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/0.8653, allocations: 1.214 MB / 0.5061 GB, free: 2.746 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00281/0.8681, allocations: 0.9846 MB / 0.5071 GB, free: 1.758 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.877e-05/0.8682, allocations: 0 / 0.5071 GB, free: 1.758 MB / 426.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008165/0.8764, allocations: 2.658 MB / 0.5097 GB, free: 15.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.802e-05/0.8765, allocations: 39.98 kB / 0.5097 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.706e-05/0.8766, allocations: 11.98 kB / 0.5097 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003253/0.8799, allocations: 0.7826 MB / 0.5105 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.8818, allocations: 223.6 kB / 0.5107 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02014/0.902, allocations: 9.979 MB / 0.5204 GB, free: 3.625 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/0.9065, allocations: 398.2 kB / 0.5208 GB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004599/0.907, allocations: 55.94 kB / 0.5209 GB, free: 3.18 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.0006737/0.9077, allocations: 257.2 kB / 0.5211 GB, free: 2.922 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/0.9083, allocations: 170 kB / 0.5213 GB, free: 2.754 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00791/0.9162, allocations: 2.666 MB / 0.5239 GB, free: 60 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.9163, allocations: 12 kB / 0.5239 GB, free: 48 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.9163, allocations: 0 / 0.5239 GB, free: 48 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/0.9164, allocations: 7.969 kB / 0.5239 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3139/1.23, allocations: 5.185 MB / 0.529 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/1.23, allocations: 0 / 0.529 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/1.232, allocations: 137.7 kB / 0.5291 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004579/1.236, allocations: 0.7523 MB / 0.5298 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000769/1.237, allocations: 42.22 kB / 0.5299 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03359/1.271, allocations: 9.726 MB / 0.5394 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/1.271, allocations: 0 / 0.5394 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/1.285, allocations: 4.084 MB / 0.5434 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/1.287, allocations: 0.4906 MB / 0.5438 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008079/1.288, allocations: 40.17 kB / 0.5439 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004272/1.292, allocations: 298.3 kB / 0.5442 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001634/1.294, allocations: 377.3 kB / 0.5445 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004595/1.295, allocations: 37.73 kB / 0.5446 GB, free: 118.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005241/1.3, allocations: 1.041 MB / 0.5456 GB, free: 117.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.543e-06/1.3, allocations: 1.375 kB / 0.5456 GB, free: 117.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007287/1.307, allocations: 0.5853 MB / 0.5462 GB, free: 117.8 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.01719/1.325, allocations: 4.78 MB / 0.5508 GB, free: 115.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01114/1.336, allocations: 2.863 MB / 0.5536 GB, free: 114.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.336, allocations: 2.281 kB / 0.5536 GB, free: 114.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006546/1.342, allocations: 1.962 MB / 0.5555 GB, free: 113.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004338/1.347, allocations: 440.5 kB / 0.556 GB, free: 113.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/1.363, allocations: 4.172 MB / 0.56 GB, free: 111.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002444/1.366, allocations: 1.723 MB / 0.5617 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002042/1.368, allocations: 366.5 kB / 0.5621 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001636/1.369, allocations: 0.6168 MB / 0.5627 GB, free: 110.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.353e-06/1.37, allocations: 1.781 kB / 0.5627 GB, free: 110.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.168/1.537, allocations: 48.67 MB / 0.6102 GB, free: 80.88 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/1.538, allocations: 226.1 kB / 0.6104 GB, free: 80.65 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.551/6.089, allocations: 0 / 0.6104 GB, free: 80.65 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat does not exist to compare? outputFormat=mat