Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 225.8 MB / 239.3 MB, free: 11.22 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.062e-05/4.071e-05, allocations: 4 kB / 292.8 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.41 MB / 343.2 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.552, allocations: 87.04 MB / 430.2 MB, free: 6.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/0.5524, allocations: 90.25 kB / 430.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06208/0.6145, allocations: 12.91 MB / 443.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.6146, allocations: 0 / 443.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.66e-05/0.6147, allocations: 16 kB / 443.2 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.003693/0.6184, allocations: 0.9964 MB / 444.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.6185, allocations: 8.031 kB / 444.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003812/0.6189, allocations: 123 kB / 444.3 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000363/0.6193, allocations: 102.8 kB / 444.4 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.6209, allocations: 0.5315 MB / 445 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.621, allocations: 51.31 kB / 445 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.6213, allocations: 80.69 kB / 445.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.6234, allocations: 0.7213 MB / 445.8 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.929e-05/0.6235, allocations: 0 / 445.8 MB, free: 9.613 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.6236, allocations: 32.06 kB / 445.9 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.6237, allocations: 19.94 kB / 445.9 MB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.6254, allocations: 0.4944 MB / 446.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007474/0.633, allocations: 2.756 MB / 449.1 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.6346, allocations: 0.5087 MB / 449.6 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007673/0.6354, allocations: 271.8 kB / 449.9 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.377e-05/0.6355, allocations: 16.53 kB / 449.9 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.6366, allocations: 408 kB / 450.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 4.819e-06/0.6366, allocations: 0 / 450.3 MB, free: 6.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001942/0.6386, allocations: 0.617 MB / 450.9 MB, free: 5.781 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.6387, allocations: 114.6 kB / 451 MB, free: 5.645 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009602/0.6397, allocations: 472.7 kB / 451.5 MB, free: 5.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001807/0.6399, allocations: 42.64 kB / 451.5 MB, free: 5.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003682/0.6403, allocations: 344.6 kB / 451.9 MB, free: 5.012 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00031/0.6406, allocations: 214.7 kB / 452.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-05/0.6407, allocations: 10.56 kB / 452.1 MB, free: 4.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.6409, allocations: 386.7 kB / 452.5 MB, free: 4.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006363/0.6415, allocations: 189.2 kB / 452.7 MB, free: 4.359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007709/0.6423, allocations: 373.8 kB / 453 MB, free: 4.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007164/0.6431, allocations: 258.5 kB / 453.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.6431, allocations: 0 / 453.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002122/0.6452, allocations: 0.7466 MB / 454 MB, free: 3.273 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007872/0.6461, allocations: 1.855 MB / 455.9 MB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.6462, allocations: 8 kB / 455.9 MB, free: 1.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008196/0.647, allocations: 139.7 kB / 456 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.6481, allocations: 131.2 kB / 456.2 MB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00455/0.6527, allocations: 2.28 MB / 458.4 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.654, allocations: 95.45 kB / 458.5 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/0.6542, allocations: 31.94 kB / 458.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.6543, allocations: 8 kB / 458.6 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002082/0.6563, allocations: 0.6636 MB / 459.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/0.6564, allocations: 8.516 kB / 459.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006858/0.6571, allocations: 148.7 kB / 459.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6582, allocations: 123.8 kB / 459.5 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/0.6625, allocations: 2.285 MB / 461.8 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.6637, allocations: 83.45 kB / 461.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.6639, allocations: 31.95 kB / 461.9 MB, free: 11.04 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.0003619/0.6643, allocations: 165.1 kB / 462.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002547/0.6646, allocations: 71.16 kB / 462.1 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002119/0.6667, allocations: 0.6593 MB / 462.8 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.6668, allocations: 11.94 kB / 462.8 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.6668, allocations: 7.938 kB / 462.8 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.6668, allocations: 3.984 kB / 462.8 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004001/0.6708, allocations: 1.487 MB / 464.3 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.6709, allocations: 0 / 464.3 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009782/0.6719, allocations: 99.88 kB / 464.4 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007204/0.6726, allocations: 132.8 kB / 464.5 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.6728, allocations: 12 kB / 464.5 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004202/0.677, allocations: 2.286 MB / 466.8 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.6771, allocations: 0 / 466.8 MB, free: 5.914 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/0.6799, allocations: 1.031 MB / 467.9 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004485/0.6804, allocations: 208.1 kB / 468.1 MB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.6806, allocations: 20 kB / 468.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008689/0.6815, allocations: 51.95 kB / 468.1 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002515/0.6817, allocations: 64.47 kB / 468.2 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.782e-05/0.6818, allocations: 23.98 kB / 468.2 MB, free: 4.488 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007167/0.6826, allocations: 365.6 kB / 468.6 MB, free: 4.133 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6826, allocations: 0 / 468.6 MB, free: 4.133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001781/0.6844, allocations: 371 kB / 468.9 MB, free: 3.77 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.003203/0.6876, allocations: 1.622 MB / 470.6 MB, free: 2.113 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003528/0.6912, allocations: 1.326 MB / 471.9 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.6912, allocations: 4 kB / 471.9 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.6925, allocations: 464.6 kB / 472.3 MB, free: 280 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.6937, allocations: 110.5 kB / 472.5 MB, free: 176 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.6978, allocations: 1.195 MB / 473.7 MB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007282/0.6986, allocations: 0.9716 MB / 474.6 MB, free: 13.94 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009242/0.6995, allocations: 121.1 kB / 474.7 MB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000539/0.7001, allocations: 271.3 kB / 475 MB, free: 13.55 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7001, allocations: 0 / 475 MB, free: 13.55 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06508/0.7652, allocations: 17.31 MB / 492.3 MB, free: 12.48 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002566/0.7655, allocations: 224.6 kB / 492.5 MB, free: 12.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.375/4.14, allocations: 0 / 492.5 MB, free: 12.23 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat