Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.532e-05/3.547e-05, allocations: 7.984 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09633, allocations: 44.5 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.483/0.5794, allocations: 82.25 MB / 382.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.5797, allocations: 79.14 kB / 382.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09294/0.6727, allocations: 22.16 MB / 404.5 MB, free: 7.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6727, allocations: 0 / 404.5 MB, free: 7.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.851e-05/0.6728, allocations: 22.66 kB / 404.5 MB, free: 7.855 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003992/0.6768, allocations: 1.152 MB / 405.6 MB, free: 7.066 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.6769, allocations: 7.75 kB / 405.7 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004982/0.6774, allocations: 155.8 kB / 405.8 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003346/0.6808, allocations: 372.5 kB / 406.2 MB, free: 6.867 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.6821, allocations: 0.5238 MB / 406.7 MB, free: 6.512 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.482e-05/0.6822, allocations: 79.09 kB / 406.8 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.6824, allocations: 100 kB / 406.9 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.6851, allocations: 0.9946 MB / 407.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.224e-05/0.6852, allocations: 0 / 407.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001549/0.6854, allocations: 45.88 kB / 407.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.6854, allocations: 23.19 kB / 407.9 MB, free: 6.254 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002282/0.6877, allocations: 0.8273 MB / 408.8 MB, free: 6.203 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009241/0.697, allocations: 3.792 MB / 412.5 MB, free: 4.055 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/0.7005, allocations: 2.438 MB / 415 MB, free: 2.043 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.7019, allocations: 428.3 kB / 415.4 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000176/0.7021, allocations: 93.44 kB / 415.5 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/0.7032, allocations: 466.7 kB / 416 MB, free: 1.727 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 3.888e-06/0.7032, allocations: 0 / 416 MB, free: 1.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.002629/0.7059, allocations: 0.8368 MB / 416.8 MB, free: 1.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/0.706, allocations: 199.8 kB / 417 MB, free: 1.297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007115/0.7067, allocations: 399.9 kB / 417.4 MB, free: 1.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.7069, allocations: 47.72 kB / 417.4 MB, free: 1.117 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003352/0.7072, allocations: 427.7 kB / 417.8 MB, free: 0.832 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000307/0.7076, allocations: 286.4 kB / 418.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.227e-05/0.7077, allocations: 18.28 kB / 418.1 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.7079, allocations: 371.5 kB / 418.5 MB, free: 16.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006848/0.7086, allocations: 240.8 kB / 418.7 MB, free: 16.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007606/0.7094, allocations: 493.6 kB / 419.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.7101, allocations: 307.6 kB / 419.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.7102, allocations: 0 / 419.5 MB, free: 15.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00283/0.713, allocations: 0.9873 MB / 420.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.7131, allocations: 11.84 kB / 420.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.7131, allocations: 7.656 kB / 420.5 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.7145, allocations: 266.6 kB / 420.8 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.7158, allocations: 166.5 kB / 420.9 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007768/0.7236, allocations: 4.374 MB / 425.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.725, allocations: 114.7 kB / 425.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.912e-05/0.7251, allocations: 42.11 kB / 425.5 MB, free: 12.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,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 (90): * Single equations (assignments): 88 * 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.0002913/0.7254, allocations: 169.4 kB / 425.6 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.7256, allocations: 69.88 kB / 425.7 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/0.7284, allocations: 0.9262 MB / 426.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.7285, allocations: 7.656 kB / 426.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.7285, allocations: 0 / 426.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.7286, allocations: 3.984 kB / 426.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004815/0.7334, allocations: 1.897 MB / 428.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.7334, allocations: 0 / 428.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009338/0.7344, allocations: 108.4 kB / 428.6 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.7357, allocations: 261.4 kB / 428.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.7359, allocations: 14.28 kB / 428.9 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.7469, allocations: 4.351 MB / 433.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.7469, allocations: 7.938 kB / 433.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005272/0.7522, allocations: 1.302 MB / 434.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008561/0.7531, allocations: 214.5 kB / 434.8 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/0.7534, allocations: 19.41 kB / 434.8 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.7548, allocations: 52.28 kB / 434.9 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.7552, allocations: 74.81 kB / 434.9 MB, free: 6.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.7553, allocations: 26.72 kB / 435 MB, free: 6.898 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008772/0.7562, allocations: 308.8 kB / 435.3 MB, free: 6.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.7563, allocations: 0 / 435.3 MB, free: 6.727 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002838/0.7591, allocations: 320.2 kB / 435.6 MB, free: 6.645 MB / 330.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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * 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.006371/0.7655, allocations: 2.064 MB / 437.6 MB, free: 5.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003915/0.7695, allocations: 0.9882 MB / 438.6 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/0.7696, allocations: 0 / 438.6 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006712/0.7763, allocations: 0.681 MB / 439.3 MB, free: 4.176 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.778, allocations: 108 kB / 439.4 MB, free: 4.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.7938, allocations: 1.806 MB / 441.2 MB, free: 3.078 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.7951, allocations: 1.016 MB / 442.2 MB, free: 2.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009819/0.7962, allocations: 87.12 kB / 442.3 MB, free: 2.184 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008314/0.797, allocations: 317.7 kB / 442.6 MB, free: 1.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.533e-06/0.797, allocations: 0 / 442.6 MB, free: 1.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0812/0.8782, allocations: 17.59 MB / 460.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003113/0.8786, allocations: 195.8 kB / 460.4 MB, free: 0.918 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.27/4.148, allocations: 0 / 460.4 MB, free: 0.918 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat