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.415/2.415, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.093e-05/4.11e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09773, allocations: 44.51 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4375/0.5353, allocations: 79.46 MB / 379.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003438/0.5357, allocations: 88.95 kB / 379.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05774/0.5934, allocations: 11.71 MB / 391.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.5935, allocations: 0 / 391.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.401e-05/0.5936, allocations: 19.22 kB / 391.2 MB, free: 11.56 MB / 314.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.00354/0.5972, allocations: 0.9618 MB / 392.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.103e-05/0.5972, allocations: 11.78 kB / 392.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004609/0.5977, allocations: 106.1 kB / 392.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003631/0.5981, allocations: 92.94 kB / 392.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.5996, allocations: 0.5012 MB / 392.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.977e-05/0.5998, allocations: 56.94 kB / 393 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002525/0.6, allocations: 67.34 kB / 393 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.6022, allocations: 0.6763 MB / 393.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.752e-05/0.6023, allocations: 4 kB / 393.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.6025, allocations: 28.38 kB / 393.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.6025, allocations: 19.47 kB / 393.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.6043, allocations: 484.3 kB / 394.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007437/0.6118, allocations: 2.612 MB / 396.8 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.6136, allocations: 0.5109 MB / 397.3 MB, free: 9.391 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008003/0.6144, allocations: 268 kB / 397.6 MB, free: 9.379 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.172e-05/0.6146, allocations: 15.34 kB / 397.6 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.6157, allocations: 404.8 kB / 398 MB, free: 9.297 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 4.508e-06/0.6157, allocations: 0 / 398 MB, free: 9.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.001905/0.6177, allocations: 0.6038 MB / 398.6 MB, free: 9.211 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/0.6178, allocations: 118.5 kB / 398.7 MB, free: 9.082 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009389/0.6188, allocations: 463.8 kB / 399.2 MB, free: 8.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002842/0.6191, allocations: 40.48 kB / 399.2 MB, free: 8.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.6194, allocations: 353.3 kB / 399.6 MB, free: 8.715 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003455/0.6198, allocations: 199.7 kB / 399.8 MB, free: 8.594 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.6198, allocations: 14.78 kB / 399.8 MB, free: 8.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.587e-05/0.62, allocations: 342.9 kB / 400.1 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000617/0.6206, allocations: 186.9 kB / 400.3 MB, free: 8.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007032/0.6213, allocations: 369.7 kB / 400.7 MB, free: 8.078 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/0.6221, allocations: 244.7 kB / 400.9 MB, free: 8.035 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.639e-06/0.6221, allocations: 3.875 kB / 400.9 MB, free: 8.035 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001945/0.6241, allocations: 0.7112 MB / 401.6 MB, free: 7.898 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004525/0.6246, allocations: 1.869 MB / 403.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/0.6246, allocations: 7.719 kB / 403.5 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008898/0.6255, allocations: 147.2 kB / 403.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.6266, allocations: 117.2 kB / 403.7 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/0.6312, allocations: 2.308 MB / 406.1 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.6323, allocations: 91 kB / 406.1 MB, free: 20.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.6325, allocations: 28.12 kB / 406.2 MB, free: 20.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.6326, allocations: 3.875 kB / 406.2 MB, free: 20.49 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001937/0.6345, allocations: 0.6692 MB / 406.8 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.6346, allocations: 3.938 kB / 406.8 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006458/0.6353, allocations: 148 kB / 407 MB, free: 20.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009277/0.6362, allocations: 122 kB / 407.1 MB, free: 20.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.6403, allocations: 2.287 MB / 409.4 MB, free: 18.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009151/0.6413, allocations: 71.83 kB / 409.5 MB, free: 18.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.404e-05/0.6414, allocations: 37.55 kB / 409.5 MB, free: 18.96 MB / 330.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.0004029/0.6418, allocations: 162.2 kB / 409.7 MB, free: 18.83 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/0.6421, allocations: 73.7 kB / 409.7 MB, free: 18.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.6441, allocations: 0.6531 MB / 410.4 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.6442, allocations: 7.594 kB / 410.4 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.6442, allocations: 0 / 410.4 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.6443, allocations: 3.844 kB / 410.4 MB, free: 18.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.648, allocations: 1.456 MB / 411.9 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.648, allocations: 0 / 411.9 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008558/0.6489, allocations: 92.77 kB / 411.9 MB, free: 18.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007539/0.6497, allocations: 145.6 kB / 412.1 MB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001783/0.6499, allocations: 14.39 kB / 412.1 MB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004196/0.6541, allocations: 2.308 MB / 414.4 MB, free: 16.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6542, allocations: 0 / 414.4 MB, free: 16.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.6569, allocations: 1.01 MB / 415.4 MB, free: 16.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006521/0.6577, allocations: 214.8 kB / 415.6 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.6579, allocations: 14.31 kB / 415.6 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009774/0.6589, allocations: 57.7 kB / 415.7 MB, free: 16.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003315/0.6593, allocations: 68.61 kB / 415.8 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.6594, allocations: 22.48 kB / 415.8 MB, free: 16.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007074/0.6601, allocations: 352.6 kB / 416.1 MB, free: 16.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.6601, allocations: 3.906 kB / 416.1 MB, free: 16.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00199/0.6621, allocations: 341.1 kB / 416.5 MB, free: 16.21 MB / 330.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.003255/0.6654, allocations: 1.604 MB / 418.1 MB, free: 15.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003744/0.6692, allocations: 1.347 MB / 419.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.6693, allocations: 0 / 419.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.6707, allocations: 481.1 kB / 419.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.6719, allocations: 97.39 kB / 420 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.6767, allocations: 1.136 MB / 421.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000684/0.6774, allocations: 0.9576 MB / 422.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006367/0.6781, allocations: 251.3 kB / 422.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.924e-06/0.6781, allocations: 0 / 422.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.094/3.772, allocations: 14.57 MB / 436.9 MB, free: 6.074 MB / 330.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