Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.191/2.191, allocations: 195 MB / 202.9 MB, free: 6.707 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.347e-05/3.357e-05, allocations: 4.062 kB / 249.8 MB, free: 5.27 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09767/0.09774, allocations: 44.5 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4304/0.5282, allocations: 78.59 MB / 372.9 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5285, allocations: 90.39 kB / 373 MB, free: 6.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1033/0.6319, allocations: 20.15 MB / 393.1 MB, free: 16.15 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.632, allocations: 0 / 393.1 MB, free: 16.15 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001351/0.6321, allocations: 34.78 kB / 393.2 MB, free: 16.14 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004752/0.6369, allocations: 1.291 MB / 394.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.637, allocations: 7.719 kB / 394.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006599/0.6376, allocations: 140 kB / 394.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007805/0.6455, allocations: 1.664 MB / 396.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.729e-05/0.6456, allocations: 30.59 kB / 396.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003635/0.646, allocations: 55.66 kB / 396.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003593/0.6496, allocations: 1.127 MB / 397.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/0.6531, allocations: 1.241 MB / 398.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.135e-05/0.6533, allocations: 7.844 kB / 398.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001747/0.6534, allocations: 7.859 kB / 398.7 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.009e-05/0.6535, allocations: 36.91 kB / 398.8 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01165/0.6652, allocations: 4.149 MB / 402.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003036/0.6683, allocations: 1.912 MB / 404.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.6697, allocations: 0.6043 MB / 405.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.891e-05/0.6699, allocations: 12.38 kB / 405.4 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001348/0.6712, allocations: 0.5517 MB / 406 MB, free: 10.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=75): time 4.709e-06/0.6713, allocations: 0 / 406 MB, free: 10.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.003553/0.6748, allocations: 1.157 MB / 407.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.675, allocations: 115.4 kB / 407.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.6765, allocations: 0.6585 MB / 407.9 MB, free: 9.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/0.6767, allocations: 25.7 kB / 408 MB, free: 9.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000595/0.6773, allocations: 477 kB / 408.4 MB, free: 9.613 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003445/0.6776, allocations: 239.1 kB / 408.7 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.607e-05/0.6777, allocations: 0 / 408.7 MB, free: 9.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002528/0.678, allocations: 396.7 kB / 409 MB, free: 9.102 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008727/0.6789, allocations: 360.1 kB / 409.4 MB, free: 9.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.6799, allocations: 0.4988 MB / 409.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.681, allocations: 405.5 kB / 410.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.681, allocations: 0 / 410.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003404/0.6844, allocations: 1.163 MB / 411.5 MB, free: 8.188 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.6845, allocations: 16.33 kB / 411.5 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.6845, allocations: 8 kB / 411.5 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.6867, allocations: 450.8 kB / 411.9 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008844/0.6876, allocations: 94.27 kB / 412 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01241/0.7, allocations: 4.972 MB / 417 MB, free: 3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.7012, allocations: 67.39 kB / 417 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.641e-05/0.7013, allocations: 24.06 kB / 417.1 MB, free: 2.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002989/0.7016, allocations: 134.5 kB / 417.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003554/0.7052, allocations: 1.163 MB / 418.4 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.7055, allocations: 91.02 kB / 418.5 MB, free: 1.508 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004087/0.7059, allocations: 96.5 kB / 418.5 MB, free: 1.406 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.7059, allocations: 8 kB / 418.6 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.7059, allocations: 0 / 418.6 MB, free: 1.398 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.706, allocations: 3.984 kB / 418.6 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006966/0.713, allocations: 2.381 MB / 420.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.713, allocations: 4 kB / 420.9 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006805/0.7137, allocations: 63.89 kB / 421 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.7157, allocations: 456.8 kB / 421.5 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.043e-05/0.7158, allocations: 3.953 kB / 421.5 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.7277, allocations: 4.937 MB / 426.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.7278, allocations: 0 / 426.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00453/0.7323, allocations: 1.783 MB / 428.2 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007317/0.7331, allocations: 271.9 kB / 428.4 MB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.7333, allocations: 7.984 kB / 428.4 MB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008242/0.7341, allocations: 31.95 kB / 428.5 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/0.7345, allocations: 72.62 kB / 428.6 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-05/0.7346, allocations: 23.98 kB / 428.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001181/0.7358, allocations: 0.5186 MB / 429.1 MB, free: 6.668 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7358, allocations: 4 kB / 429.1 MB, free: 6.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001566/0.7374, allocations: 315 kB / 429.4 MB, free: 6.355 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.004805/0.7422, allocations: 2.351 MB / 431.8 MB, free: 3.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003367/0.7456, allocations: 1.171 MB / 432.9 MB, free: 2.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.7457, allocations: 4.062 kB / 432.9 MB, free: 2.785 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/0.7477, allocations: 0.7619 MB / 433.7 MB, free: 2.012 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.7497, allocations: 211.2 kB / 433.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006976/0.7567, allocations: 2.062 MB / 436 MB, free: 15.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.7583, allocations: 1.341 MB / 437.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007827/0.7591, allocations: 134.8 kB / 437.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008646/0.76, allocations: 371.3 kB / 437.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.76, allocations: 0 / 437.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0989/0.8589, allocations: 23.82 MB / 461.6 MB, free: 6.074 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003498/0.8594, allocations: 200 kB / 461.8 MB, free: 5.875 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.575/4.434, allocations: 0 / 461.8 MB, free: 5.875 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat