Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 194.9 MB / 208 MB, free: 3.191 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.003e-05/3.022e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09671, allocations: 44.5 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4102/0.507, allocations: 79.48 MB / 379.5 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003321/0.5074, allocations: 83.5 kB / 379.6 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0493/0.5567, allocations: 11.71 MB / 391.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5567, allocations: 0 / 391.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.005e-05/0.5568, allocations: 23.38 kB / 391.3 MB, free: 11.5 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.002548/0.5594, allocations: 0.9651 MB / 392.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.5594, allocations: 7.812 kB / 392.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/0.5596, allocations: 102.2 kB / 392.4 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002384/0.5599, allocations: 105.2 kB / 392.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.5609, allocations: 0.4988 MB / 393 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.084e-05/0.561, allocations: 50.25 kB / 393 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.5611, allocations: 68.06 kB / 393.1 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.5627, allocations: 0.6714 MB / 393.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.5628, allocations: 0 / 393.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.5629, allocations: 32.2 kB / 393.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.5629, allocations: 19.19 kB / 393.8 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5642, allocations: 471.8 kB / 394.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.5698, allocations: 2.606 MB / 396.9 MB, free: 9.383 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.5711, allocations: 0.5085 MB / 397.4 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006059/0.5718, allocations: 266.5 kB / 397.6 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.797e-05/0.5719, allocations: 15.73 kB / 397.7 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008732/0.5727, allocations: 401.5 kB / 398 MB, free: 9.254 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 3.396e-06/0.5728, allocations: 0 / 398 MB, free: 9.254 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.001621/0.5744, allocations: 0.6049 MB / 398.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.5745, allocations: 122.6 kB / 398.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007457/0.5752, allocations: 459.9 kB / 399.2 MB, free: 8.926 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.587e-05/0.5753, allocations: 41.08 kB / 399.3 MB, free: 8.895 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.5756, allocations: 326.3 kB / 399.6 MB, free: 8.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.5758, allocations: 200.6 kB / 399.8 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.5759, allocations: 11.56 kB / 399.8 MB, free: 8.625 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.576, allocations: 377.9 kB / 400.2 MB, free: 8.309 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005113/0.5765, allocations: 193.1 kB / 400.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006159/0.5772, allocations: 362.6 kB / 400.7 MB, free: 8.109 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005787/0.5778, allocations: 239.3 kB / 400.9 MB, free: 8.066 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.5778, allocations: 3.875 kB / 400.9 MB, free: 8.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001755/0.5795, allocations: 0.7309 MB / 401.7 MB, free: 7.922 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004219/0.58, allocations: 1.863 MB / 403.5 MB, free: 5.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.58, allocations: 7.75 kB / 403.5 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007707/0.5808, allocations: 158.9 kB / 403.7 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000914/0.5817, allocations: 119.2 kB / 403.8 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003781/0.5855, allocations: 2.306 MB / 406.1 MB, free: 20.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.5866, allocations: 92.42 kB / 406.2 MB, free: 20.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/0.5867, allocations: 33.3 kB / 406.2 MB, free: 20.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.5867, allocations: 3.969 kB / 406.2 MB, free: 20.5 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001671/0.5884, allocations: 0.6559 MB / 406.9 MB, free: 20.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.5884, allocations: 3.938 kB / 406.9 MB, free: 20.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006187/0.589, allocations: 154.4 kB / 407.1 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008181/0.5899, allocations: 118.6 kB / 407.2 MB, free: 20.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00407/0.594, allocations: 2.317 MB / 409.5 MB, free: 18.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.5951, allocations: 78.58 kB / 409.6 MB, free: 18.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.5952, allocations: 34.05 kB / 409.6 MB, free: 18.95 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.0003531/0.5956, allocations: 162 kB / 409.8 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.5958, allocations: 73.59 kB / 409.8 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.5976, allocations: 0.6516 MB / 410.5 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/0.5976, allocations: 3.75 kB / 410.5 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5976, allocations: 0 / 410.5 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.5976, allocations: 8.953 kB / 410.5 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.6012, allocations: 1.453 MB / 411.9 MB, free: 18.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.6012, allocations: 0 / 411.9 MB, free: 18.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009714/0.6022, allocations: 88.72 kB / 412 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008212/0.6031, allocations: 148 kB / 412.2 MB, free: 18.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-05/0.6032, allocations: 15.39 kB / 412.2 MB, free: 18.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004957/0.6081, allocations: 2.314 MB / 414.5 MB, free: 16.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.6082, allocations: 0 / 414.5 MB, free: 16.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/0.6117, allocations: 1.007 MB / 415.5 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005761/0.6123, allocations: 212.1 kB / 415.7 MB, free: 16.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.6125, allocations: 13.81 kB / 415.7 MB, free: 16.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.6138, allocations: 54.64 kB / 415.8 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003133/0.6141, allocations: 69.7 kB / 415.9 MB, free: 16.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.6142, allocations: 23.02 kB / 415.9 MB, free: 16.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009107/0.6152, allocations: 353.8 kB / 416.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.793e-06/0.6152, allocations: 0 / 416.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002527/0.6177, allocations: 350.6 kB / 416.6 MB, free: 16.04 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.003805/0.6216, allocations: 1.594 MB / 418.2 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004066/0.6257, allocations: 1.328 MB / 419.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.6257, allocations: 3.875 kB / 419.5 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.6272, allocations: 465.9 kB / 419.9 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.6284, allocations: 103.5 kB / 420 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004841/0.6333, allocations: 1.105 MB / 421.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008458/0.6342, allocations: 0.953 MB / 422.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001121/0.6353, allocations: 119.3 kB / 422.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000601/0.6359, allocations: 247.1 kB / 422.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.636, allocations: 0 / 422.5 MB, free: 13.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07148/0.7075, allocations: 17.04 MB / 439.5 MB, free: 4.582 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004408/0.708, allocations: 230 kB / 439.7 MB, free: 4.352 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.267/3.975, allocations: 0 / 439.7 MB, free: 4.352 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat