Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.984e-05/3.987e-05, allocations: 4 kB / 292.3 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 50.41 MB / 342.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4881/0.5961, allocations: 87.04 MB / 429.7 MB, free: 6.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003538/0.5965, allocations: 88.78 kB / 429.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05995/0.6565, allocations: 12.91 MB / 442.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6565, allocations: 0 / 442.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.193e-05/0.6566, allocations: 16 kB / 442.7 MB, free: 11.89 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003582/0.6602, allocations: 0.9947 MB / 443.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.6603, allocations: 11.97 kB / 443.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003575/0.6607, allocations: 120.4 kB / 443.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.661, allocations: 98.78 kB / 443.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001492/0.6625, allocations: 0.5381 MB / 444.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.157e-05/0.6626, allocations: 55.67 kB / 444.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002399/0.6629, allocations: 79.36 kB / 444.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.665, allocations: 0.7117 MB / 445.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.6651, allocations: 4 kB / 445.3 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.6652, allocations: 34.17 kB / 445.4 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.6652, allocations: 20 kB / 445.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.6669, allocations: 498.6 kB / 445.9 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007598/0.6746, allocations: 2.762 MB / 448.6 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.6763, allocations: 0.5031 MB / 449.1 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007864/0.6771, allocations: 271.8 kB / 449.4 MB, free: 6.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.761e-05/0.6772, allocations: 12.11 kB / 449.4 MB, free: 6.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.6783, allocations: 414.2 kB / 449.8 MB, free: 6.227 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 3.817e-06/0.6784, allocations: 0 / 449.8 MB, free: 6.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.00196/0.6803, allocations: 0.615 MB / 450.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.6805, allocations: 111.4 kB / 450.5 MB, free: 5.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009603/0.6814, allocations: 471.2 kB / 451 MB, free: 5.289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.6817, allocations: 51.27 kB / 451 MB, free: 5.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003669/0.682, allocations: 342.6 kB / 451.4 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.6824, allocations: 207 kB / 451.6 MB, free: 4.836 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/0.6824, allocations: 17.12 kB / 451.6 MB, free: 4.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000225/0.6827, allocations: 382.4 kB / 452 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006399/0.6833, allocations: 195 kB / 452.2 MB, free: 4.359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007602/0.6841, allocations: 375.8 kB / 452.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007084/0.6848, allocations: 249.3 kB / 452.8 MB, free: 3.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.6849, allocations: 4 kB / 452.8 MB, free: 3.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002123/0.687, allocations: 0.749 MB / 453.5 MB, free: 3.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008242/0.6879, allocations: 1.855 MB / 455.4 MB, free: 1.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.6879, allocations: 4 kB / 455.4 MB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008459/0.6888, allocations: 147.4 kB / 455.5 MB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.6899, allocations: 131.8 kB / 455.7 MB, free: 1.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004457/0.6944, allocations: 2.275 MB / 457.9 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.6956, allocations: 99.44 kB / 458 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.6958, allocations: 27.95 kB / 458.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.6958, allocations: 4 kB / 458.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002021/0.6978, allocations: 0.668 MB / 458.7 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.6979, allocations: 8 kB / 458.7 MB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006909/0.6986, allocations: 144.6 kB / 458.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.6996, allocations: 123.8 kB / 459 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.704, allocations: 2.299 MB / 461.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.7051, allocations: 87.41 kB / 461.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.7053, allocations: 31.95 kB / 461.4 MB, free: 11.01 MB / 378.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_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0003465/0.7056, allocations: 156.8 kB / 461.6 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.7059, allocations: 75.14 kB / 461.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.708, allocations: 0.6631 MB / 462.3 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.7081, allocations: 8 kB / 462.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.7081, allocations: 0 / 462.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.7081, allocations: 3.984 kB / 462.3 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003897/0.712, allocations: 1.483 MB / 463.8 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.7121, allocations: 0 / 463.8 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009518/0.713, allocations: 99.88 kB / 463.9 MB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/0.7138, allocations: 132.8 kB / 464 MB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.7139, allocations: 15.98 kB / 464 MB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/0.7181, allocations: 2.286 MB / 466.3 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7182, allocations: 0 / 466.3 MB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00293/0.7211, allocations: 1.035 MB / 467.4 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005997/0.7218, allocations: 208.1 kB / 467.6 MB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.722, allocations: 20 kB / 467.6 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009075/0.7229, allocations: 51.95 kB / 467.6 MB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.7232, allocations: 68.45 kB / 467.7 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.269e-05/0.7233, allocations: 23.98 kB / 467.7 MB, free: 4.461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007575/0.7241, allocations: 369.6 kB / 468.1 MB, free: 4.102 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7241, allocations: 0 / 468.1 MB, free: 4.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001955/0.7261, allocations: 363.1 kB / 468.4 MB, free: 3.746 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.003353/0.7295, allocations: 1.622 MB / 470.1 MB, free: 2.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003641/0.7332, allocations: 1.326 MB / 471.4 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.7332, allocations: 0 / 471.4 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.7346, allocations: 468.6 kB / 471.8 MB, free: 256 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.7357, allocations: 110.5 kB / 472 MB, free: 148 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004554/0.7403, allocations: 1.196 MB / 473.1 MB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007501/0.7411, allocations: 0.9716 MB / 474.1 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009984/0.7422, allocations: 121.1 kB / 474.2 MB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.7428, allocations: 267.3 kB / 474.5 MB, free: 13.53 MB / 394.7 MB Notification: Performance of SimCode: time 1.452e-06/0.7428, allocations: 4 kB / 474.5 MB, free: 13.52 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06619/0.809, allocations: 17.3 MB / 491.8 MB, free: 12.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002653/0.8093, allocations: 224.5 kB / 492 MB, free: 12.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.311/4.12, allocations: 0 / 492 MB, free: 12.21 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat