Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.742e-05, allocations: 7.984 kB / 292.3 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1142, allocations: 50.41 MB / 342.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5267/0.641, allocations: 86.71 MB / 429.4 MB, free: 7.199 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000476/0.6415, allocations: 83.62 kB / 429.5 MB, free: 7.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06499/0.7065, allocations: 12.58 MB / 442 MB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.7066, allocations: 0 / 442 MB, free: 12.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.56e-05/0.7066, allocations: 20 kB / 442.1 MB, free: 12.46 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.003039/0.7097, allocations: 0.981 MB / 443 MB, free: 11.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.7098, allocations: 8.031 kB / 443 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002623/0.71, allocations: 112.2 kB / 443.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.7103, allocations: 94.88 kB / 443.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.7116, allocations: 0.5298 MB / 443.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.218e-05/0.7117, allocations: 57.3 kB / 443.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001765/0.7119, allocations: 76.28 kB / 443.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/0.7139, allocations: 0.6963 MB / 444.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.265e-05/0.714, allocations: 0 / 444.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.7141, allocations: 33.81 kB / 444.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/0.7141, allocations: 16 kB / 444.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.7159, allocations: 485.6 kB / 445.1 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007173/0.7231, allocations: 2.667 MB / 447.8 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.7246, allocations: 0.5204 MB / 448.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006718/0.7253, allocations: 263.7 kB / 448.6 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.147e-05/0.7254, allocations: 15.98 kB / 448.6 MB, free: 7.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.7264, allocations: 404.8 kB / 449 MB, free: 6.941 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.397e-06/0.7265, allocations: 0 / 449 MB, free: 6.941 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001783/0.7283, allocations: 0.6018 MB / 449.6 MB, free: 6.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.7284, allocations: 122.7 kB / 449.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008762/0.7293, allocations: 470.5 kB / 450.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.945e-05/0.7294, allocations: 51.56 kB / 450.2 MB, free: 5.965 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003351/0.7297, allocations: 331 kB / 450.5 MB, free: 5.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.73, allocations: 203 kB / 450.7 MB, free: 5.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.621e-05/0.7301, allocations: 10.5 kB / 450.7 MB, free: 5.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.7303, allocations: 379.5 kB / 451.1 MB, free: 5.219 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005709/0.7309, allocations: 186.8 kB / 451.3 MB, free: 5.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007324/0.7316, allocations: 360.6 kB / 451.6 MB, free: 4.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006569/0.7323, allocations: 252.6 kB / 451.9 MB, free: 4.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.647e-06/0.7323, allocations: 7.938 kB / 451.9 MB, free: 4.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001979/0.7343, allocations: 0.7363 MB / 452.6 MB, free: 4.039 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008778/0.7352, allocations: 1.86 MB / 454.5 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.7352, allocations: 4 kB / 454.5 MB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007968/0.736, allocations: 152.9 kB / 454.7 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009788/0.737, allocations: 118.9 kB / 454.8 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004301/0.7414, allocations: 2.312 MB / 457.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.7424, allocations: 99.33 kB / 457.2 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.414e-05/0.7426, allocations: 31.98 kB / 457.2 MB, free: 15.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.7426, allocations: 4 kB / 457.2 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001861/0.7444, allocations: 0.6491 MB / 457.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.7445, allocations: 4 kB / 457.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006813/0.7452, allocations: 156.7 kB / 458 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008713/0.7461, allocations: 124 kB / 458.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004123/0.7502, allocations: 2.305 MB / 460.4 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009547/0.7512, allocations: 75.55 kB / 460.5 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.857e-05/0.7513, allocations: 31.98 kB / 460.6 MB, free: 11.86 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 (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.0003249/0.7516, allocations: 165 kB / 460.7 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001716/0.7518, allocations: 75.14 kB / 460.8 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.7538, allocations: 0.6588 MB / 461.4 MB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.7538, allocations: 4 kB / 461.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.7538, allocations: 0 / 461.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.7539, allocations: 3.984 kB / 461.5 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.7573, allocations: 1.471 MB / 462.9 MB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.7573, allocations: 0 / 462.9 MB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/0.7582, allocations: 87.88 kB / 463 MB, free: 9.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006833/0.7589, allocations: 148.6 kB / 463.2 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.7589, allocations: 12 kB / 463.2 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004184/0.7631, allocations: 2.306 MB / 465.5 MB, free: 6.715 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.7632, allocations: 4 kB / 465.5 MB, free: 6.711 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002767/0.766, allocations: 1.012 MB / 466.5 MB, free: 5.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000484/0.7665, allocations: 204.2 kB / 466.7 MB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.7667, allocations: 19.92 kB / 466.7 MB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008331/0.7675, allocations: 55.92 kB / 466.8 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.7678, allocations: 76.44 kB / 466.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.295e-05/0.7679, allocations: 23.98 kB / 466.9 MB, free: 5.293 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007126/0.7686, allocations: 357.6 kB / 467.2 MB, free: 4.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7686, allocations: 0 / 467.2 MB, free: 4.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001649/0.7703, allocations: 359.1 kB / 467.6 MB, free: 4.594 MB / 378.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_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 (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.003131/0.7734, allocations: 1.606 MB / 469.2 MB, free: 2.957 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.7769, allocations: 1.329 MB / 470.5 MB, free: 1.582 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7769, allocations: 0 / 470.5 MB, free: 1.582 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.7781, allocations: 471.3 kB / 471 MB, free: 1.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009754/0.7791, allocations: 123.5 kB / 471.1 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/0.7831, allocations: 1.128 MB / 472.2 MB, free: 15.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007412/0.7839, allocations: 0.9638 MB / 473.2 MB, free: 14.83 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009189/0.7849, allocations: 121.1 kB / 473.3 MB, free: 14.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.7855, allocations: 259.3 kB / 473.5 MB, free: 14.46 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7855, allocations: 0 / 473.5 MB, free: 14.46 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06915/0.8546, allocations: 17.33 MB / 490.9 MB, free: 13.37 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003588/0.8551, allocations: 219.4 kB / 491.1 MB, free: 13.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.417/4.272, allocations: 0 / 491.1 MB, free: 13.15 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_R_res.mat does not exist to compare? outputFormat=mat