Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.298e-05/3.301e-05, allocations: 3.797 kB / 292.8 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 50.4 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4804/0.5935, allocations: 89.49 MB / 432.7 MB, free: 4.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5939, allocations: 76.89 kB / 432.7 MB, free: 4.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1009/0.6948, allocations: 22.01 MB / 454.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.6949, allocations: 0 / 454.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.096e-05/0.695, allocations: 24 kB / 454.8 MB, free: 2.094 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004563/0.6995, allocations: 1.137 MB / 455.9 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.6996, allocations: 11.97 kB / 455.9 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006057/0.7002, allocations: 158.2 kB / 456.1 MB, free: 0.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002855/0.7031, allocations: 302.7 kB / 456.4 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.7048, allocations: 0.5294 MB / 456.9 MB, free: 136 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.705, allocations: 84.33 kB / 457 MB, free: 84 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004246/0.7055, allocations: 96.31 kB / 457.1 MB, free: 20 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003518/0.709, allocations: 0.9505 MB / 458 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.982e-05/0.7091, allocations: 11.84 kB / 458 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001748/0.7093, allocations: 42.61 kB / 458.1 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.7094, allocations: 24 kB / 458.1 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003113/0.7125, allocations: 0.7718 MB / 458.9 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01097/0.7235, allocations: 3.581 MB / 462.4 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003847/0.7274, allocations: 1.853 MB / 464.3 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.729, allocations: 416 kB / 464.7 MB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002397/0.7293, allocations: 97.83 kB / 464.8 MB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001438/0.7308, allocations: 455.9 kB / 465.2 MB, free: 7.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 6.101e-06/0.7308, allocations: 4 kB / 465.2 MB, free: 7.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003264/0.7341, allocations: 0.8293 MB / 466.1 MB, free: 6.961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.7343, allocations: 196.7 kB / 466.3 MB, free: 6.727 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009121/0.7352, allocations: 399.8 kB / 466.7 MB, free: 6.328 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002207/0.7355, allocations: 41.7 kB / 466.7 MB, free: 6.281 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004847/0.736, allocations: 411.7 kB / 467.1 MB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004915/0.7365, allocations: 275.9 kB / 467.4 MB, free: 5.598 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.871e-05/0.7366, allocations: 20 kB / 467.4 MB, free: 5.578 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002481/0.7369, allocations: 370.8 kB / 467.8 MB, free: 5.207 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008271/0.7377, allocations: 234 kB / 468 MB, free: 4.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.7389, allocations: 445.4 kB / 468.4 MB, free: 4.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.74, allocations: 290 kB / 468.7 MB, free: 4.172 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.74, allocations: 0 / 468.7 MB, free: 4.172 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.003802/0.7438, allocations: 0.9392 MB / 469.6 MB, free: 3.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.7439, allocations: 9.406 kB / 469.6 MB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.744, allocations: 8.031 kB / 469.7 MB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/0.7456, allocations: 261.8 kB / 469.9 MB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/0.7473, allocations: 155.8 kB / 470.1 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/0.7604, allocations: 4.375 MB / 474.4 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.7624, allocations: 111.1 kB / 474.5 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002887/0.7628, allocations: 28 kB / 474.6 MB, free: 14.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0004818/0.7633, allocations: 156.9 kB / 474.7 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003756/0.7637, allocations: 67.2 kB / 474.8 MB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005506/0.7692, allocations: 0.907 MB / 475.7 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.271e-05/0.7693, allocations: 15.94 kB / 475.7 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.7694, allocations: 0 / 475.7 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.133e-05/0.7694, allocations: 3.984 kB / 475.7 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/0.777, allocations: 1.869 MB / 477.6 MB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.47e-05/0.7771, allocations: 4 kB / 477.6 MB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.7785, allocations: 99.88 kB / 477.7 MB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00221/0.7808, allocations: 257.5 kB / 477.9 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.7811, allocations: 16 kB / 478 MB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03215/0.8133, allocations: 4.352 MB / 482.3 MB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.8134, allocations: 64 / 482.3 MB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/0.8238, allocations: 1.298 MB / 483.6 MB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008113/0.8247, allocations: 212.1 kB / 483.8 MB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.825, allocations: 20 kB / 483.8 MB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.8264, allocations: 51.97 kB / 483.9 MB, free: 4.273 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007777/0.8342, allocations: 68.62 kB / 484 MB, free: 4.207 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002954/0.8346, allocations: 27.98 kB / 484 MB, free: 4.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001042/0.8356, allocations: 305.6 kB / 484.3 MB, free: 3.887 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.8357, allocations: 0 / 484.3 MB, free: 3.887 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00305/0.8388, allocations: 319.2 kB / 484.6 MB, free: 3.574 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.007177/0.846, allocations: 2.061 MB / 486.7 MB, free: 1.469 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004515/0.8506, allocations: 0.9671 MB / 487.6 MB, free: 496 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/0.8507, allocations: 0 / 487.6 MB, free: 496 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003033/0.8537, allocations: 0.6768 MB / 488.3 MB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.8554, allocations: 102.3 kB / 488.4 MB, free: 15.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008138/0.8637, allocations: 1.361 MB / 489.8 MB, free: 14.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.865, allocations: 1.01 MB / 490.8 MB, free: 13.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001075/0.8662, allocations: 81.33 kB / 490.8 MB, free: 13.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/0.8674, allocations: 311.3 kB / 491.2 MB, free: 12.86 MB / 410.7 MB Notification: Performance of SimCode: time 1.843e-06/0.8674, allocations: 0 / 491.2 MB, free: 12.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08183/0.9493, allocations: 17.49 MB / 0.4967 GB, free: 11.55 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002924/0.9496, allocations: 196.8 kB / 0.4969 GB, free: 11.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.364/4.314, allocations: 0 / 0.4969 GB, free: 11.33 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat