Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.114/2.114, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.975e-05, allocations: 0 / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09463, allocations: 44.52 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5365, allocations: 82.24 MB / 382.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.5368, allocations: 79.95 kB / 382.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08541/0.6222, allocations: 22.17 MB / 404.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6223, allocations: 0 / 404.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.315e-05/0.6223, allocations: 23.12 kB / 404.5 MB, free: 8.094 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.003662/0.626, allocations: 1.15 MB / 405.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.6261, allocations: 7.594 kB / 405.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004694/0.6266, allocations: 166.2 kB / 405.8 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003376/0.63, allocations: 369.2 kB / 406.1 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/0.6313, allocations: 0.5244 MB / 406.7 MB, free: 6.746 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.646e-05/0.6314, allocations: 77.88 kB / 406.7 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002309/0.6316, allocations: 104.3 kB / 406.9 MB, free: 6.742 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.6343, allocations: 0.9911 MB / 407.8 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.904e-05/0.6344, allocations: 0 / 407.8 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001526/0.6345, allocations: 43.73 kB / 407.9 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.6346, allocations: 27.12 kB / 407.9 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.637, allocations: 0.8264 MB / 408.7 MB, free: 6.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008571/0.6456, allocations: 3.786 MB / 412.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003365/0.649, allocations: 2.429 MB / 415 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.6503, allocations: 430.7 kB / 415.4 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001561/0.6505, allocations: 93.56 kB / 415.5 MB, free: 2.145 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.6515, allocations: 468 kB / 415.9 MB, free: 1.961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 3.617e-06/0.6515, allocations: 0 / 415.9 MB, free: 1.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.002539/0.6541, allocations: 0.8358 MB / 416.8 MB, free: 1.758 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.836e-05/0.6542, allocations: 199.8 kB / 417 MB, free: 1.535 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000686/0.6549, allocations: 403.7 kB / 417.3 MB, free: 1.387 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.6551, allocations: 39.77 kB / 417.4 MB, free: 1.355 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/0.6554, allocations: 468.5 kB / 417.8 MB, free: 1.012 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.6556, allocations: 288.8 kB / 418.1 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.6557, allocations: 17.69 kB / 418.1 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.6559, allocations: 344.6 kB / 418.5 MB, free: 16.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006203/0.6565, allocations: 237.5 kB / 418.7 MB, free: 16.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007927/0.6574, allocations: 497.2 kB / 419.2 MB, free: 16.17 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007379/0.6581, allocations: 306.3 kB / 419.5 MB, free: 16.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.6581, allocations: 7.75 kB / 419.5 MB, free: 16.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00253/0.6607, allocations: 0.9532 MB / 420.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.6607, allocations: 7.656 kB / 420.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.6608, allocations: 7.938 kB / 420.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.6622, allocations: 271.4 kB / 420.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.6634, allocations: 167.8 kB / 420.9 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007931/0.6713, allocations: 4.375 MB / 425.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/0.6726, allocations: 115.2 kB / 425.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-05/0.6727, allocations: 33.72 kB / 425.4 MB, free: 12.73 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.0003384/0.6731, allocations: 173.4 kB / 425.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.6733, allocations: 69.94 kB / 425.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002778/0.676, allocations: 0.927 MB / 426.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.6761, allocations: 7.594 kB / 426.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.6761, allocations: 3.844 kB / 426.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.6761, allocations: 3.984 kB / 426.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00471/0.6809, allocations: 1.892 MB / 428.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.681, allocations: 0 / 428.5 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009127/0.6819, allocations: 108.8 kB / 428.6 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.6832, allocations: 256.4 kB / 428.8 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.6834, allocations: 21.92 kB / 428.9 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007721/0.6911, allocations: 4.344 MB / 433.2 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/0.6911, allocations: 8.094 kB / 433.2 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003534/0.6947, allocations: 1.3 MB / 434.5 MB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005355/0.6953, allocations: 221.8 kB / 434.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.6954, allocations: 19.25 kB / 434.8 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.6963, allocations: 52.69 kB / 434.8 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.6966, allocations: 75.38 kB / 434.9 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.35e-05/0.6967, allocations: 23.16 kB / 434.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005894/0.6973, allocations: 307.6 kB / 435.2 MB, free: 6.977 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6973, allocations: 0 / 435.2 MB, free: 6.977 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001643/0.699, allocations: 326.9 kB / 435.5 MB, free: 6.887 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.004081/0.7031, allocations: 2.059 MB / 437.6 MB, free: 5.434 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.7058, allocations: 0.9941 MB / 438.6 MB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.7059, allocations: 0 / 438.6 MB, free: 4.867 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.7076, allocations: 0.687 MB / 439.3 MB, free: 4.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.7086, allocations: 107.3 kB / 439.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00831/0.717, allocations: 1.852 MB / 441.2 MB, free: 3.285 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008126/0.7178, allocations: 1.01 MB / 442.2 MB, free: 2.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007578/0.7186, allocations: 329.2 kB / 442.6 MB, free: 2.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7186, allocations: 0 / 442.6 MB, free: 2.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.07/3.788, allocations: 20.41 MB / 463 MB, free: 14.75 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat