Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.02/2.02, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.513e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3307, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.4766, allocations: 78.81 MB / 373 MB, free: 3.152 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/0.477, allocations: 91.94 kB / 373.1 MB, free: 3.062 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0504/0.5274, allocations: 11.58 MB / 384.7 MB, free: 7.414 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.5275, allocations: 7.938 kB / 384.7 MB, free: 7.406 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.749e-05/0.5275, allocations: 16 kB / 384.7 MB, free: 7.391 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.002895/0.5304, allocations: 0.9597 MB / 385.7 MB, free: 6.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.5305, allocations: 15.97 kB / 385.7 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003295/0.5308, allocations: 94.88 kB / 385.8 MB, free: 6.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.5321, allocations: 0.5 MB / 386.3 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.5321, allocations: 20 kB / 386.3 MB, free: 5.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/0.5323, allocations: 44 kB / 386.3 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001369/0.5337, allocations: 438.6 kB / 386.8 MB, free: 5.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.5353, allocations: 0.5941 MB / 387.4 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.418e-05/0.5353, allocations: 0 / 387.4 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.135e-05/0.5354, allocations: 7.922 kB / 387.4 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.5354, allocations: 16 kB / 387.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00624/0.5417, allocations: 2.463 MB / 389.9 MB, free: 2.035 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.5431, allocations: 0.4935 MB / 390.4 MB, free: 1.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006442/0.5438, allocations: 250.5 kB / 390.6 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.683e-05/0.5439, allocations: 12.55 kB / 390.6 MB, free: 1.262 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009818/0.5449, allocations: 381.8 kB / 391 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 3.316e-06/0.5449, allocations: 4 kB / 391 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.00169/0.5466, allocations: 0.5539 MB / 391.5 MB, free: 312 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.928e-05/0.5467, allocations: 119.4 kB / 391.7 MB, free: 168 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007272/0.5475, allocations: 385.2 kB / 392 MB, free: 15.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.211e-05/0.5476, allocations: 29.7 kB / 392.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003395/0.5479, allocations: 362.7 kB / 392.4 MB, free: 15.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/0.5482, allocations: 193.1 kB / 392.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.5483, allocations: 0 / 392.6 MB, free: 15.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.5484, allocations: 338.8 kB / 392.9 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.549, allocations: 177.5 kB / 393.1 MB, free: 14.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006596/0.5496, allocations: 346.4 kB / 393.4 MB, free: 14.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005712/0.5502, allocations: 205.9 kB / 393.6 MB, free: 14.08 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.5502, allocations: 0 / 393.6 MB, free: 14.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001682/0.5519, allocations: 0.6136 MB / 394.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007603/0.5527, allocations: 1.864 MB / 396.1 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.5527, allocations: 11.94 kB / 396.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/0.5536, allocations: 144.7 kB / 396.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000973/0.5545, allocations: 123.8 kB / 396.4 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003912/0.5585, allocations: 2.229 MB / 398.6 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/0.5595, allocations: 75.52 kB / 398.7 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.078e-05/0.5596, allocations: 27.98 kB / 398.7 MB, free: 8.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.5596, allocations: 4 kB / 398.7 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001585/0.5612, allocations: 0.5536 MB / 399.3 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.5612, allocations: 4 kB / 399.3 MB, free: 8.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/0.5619, allocations: 148.9 kB / 399.4 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008733/0.5628, allocations: 120.2 kB / 399.6 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003845/0.5666, allocations: 2.213 MB / 401.8 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000762/0.5674, allocations: 59.61 kB / 401.8 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.321e-05/0.5675, allocations: 24 kB / 401.8 MB, free: 5.477 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003128/0.5679, allocations: 152.5 kB / 402 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00161/0.5695, allocations: 0.5616 MB / 402.6 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.5697, allocations: 63.25 kB / 402.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.5714, allocations: 0.5843 MB / 403.2 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.5714, allocations: 8 kB / 403.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5715, allocations: 0 / 403.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.5715, allocations: 7.984 kB / 403.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.5746, allocations: 1.311 MB / 404.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5746, allocations: 0 / 404.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008067/0.5754, allocations: 87.97 kB / 404.6 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006713/0.5761, allocations: 144.7 kB / 404.8 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.778e-05/0.5762, allocations: 11.98 kB / 404.8 MB, free: 2.477 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003825/0.5801, allocations: 2.227 MB / 407 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5801, allocations: 4 kB / 407 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.5826, allocations: 0.9493 MB / 407.9 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/0.583, allocations: 204.2 kB / 408.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.5832, allocations: 0 / 408.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007951/0.584, allocations: 55.91 kB / 408.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.5843, allocations: 68.41 kB / 408.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.998e-05/0.5844, allocations: 23.92 kB / 408.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004975/0.5849, allocations: 287 kB / 408.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5849, allocations: 0 / 408.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001717/0.5866, allocations: 315 kB / 408.9 MB, free: 14.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002762/0.5894, allocations: 1.521 MB / 410.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.5925, allocations: 1.267 MB / 411.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.5926, allocations: 0 / 411.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.5938, allocations: 452.7 kB / 412.1 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008649/0.5947, allocations: 81.94 kB / 412.2 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.5987, allocations: 1.069 MB / 413.3 MB, free: 9.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006852/0.5994, allocations: 0.9468 MB / 414.2 MB, free: 8.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.6001, allocations: 255.3 kB / 414.5 MB, free: 8.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6001, allocations: 0 / 414.5 MB, free: 8.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.087/3.687, allocations: 14.13 MB / 428.6 MB, free: 105.6 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat