Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.679e-05/5.687e-05, allocations: 7.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2806, allocations: 38.77 MB / 263.9 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4144, allocations: 75.58 MB / 339.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.4148, allocations: 79.95 kB / 339.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08239/0.4972, allocations: 19.63 MB / 359.1 MB, free: 10.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4973, allocations: 3.938 kB / 359.1 MB, free: 10.17 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.784e-05/0.4974, allocations: 20 kB / 359.2 MB, free: 10.15 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.00386/0.5012, allocations: 1.091 MB / 360.3 MB, free: 9.008 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.5013, allocations: 8.031 kB / 360.3 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003684/0.5017, allocations: 139.6 kB / 360.4 MB, free: 8.855 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007765/0.5025, allocations: 146.7 kB / 360.5 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.5038, allocations: 0.4944 MB / 361 MB, free: 8.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.928e-05/0.5039, allocations: 66 kB / 361.1 MB, free: 8.109 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.5042, allocations: 92 kB / 361.2 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.5066, allocations: 0.8442 MB / 362 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.505e-05/0.5067, allocations: 3.938 kB / 362 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.5069, allocations: 36 kB / 362.1 MB, free: 7.113 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.08e-05/0.5069, allocations: 24 kB / 362.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.5089, allocations: 0.6092 MB / 362.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008421/0.5173, allocations: 3.248 MB / 366 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002205/0.5196, allocations: 0.8707 MB / 366.8 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.5208, allocations: 367.3 kB / 367.2 MB, free: 1.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.609e-05/0.5209, allocations: 8.562 kB / 367.2 MB, free: 1.762 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009945/0.5219, allocations: 404.6 kB / 367.6 MB, free: 1.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.857e-06/0.5219, allocations: 0 / 367.6 MB, free: 1.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.002619/0.5246, allocations: 0.7306 MB / 368.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.5247, allocations: 188.5 kB / 368.5 MB, free: 376 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007683/0.5255, allocations: 379.1 kB / 368.9 MB, free: 0 / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.2359/0.7614, allocations: 36.67 kB / 368.9 MB, free: 83.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005065/0.762, allocations: 432.9 kB / 369.3 MB, free: 83.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.7624, allocations: 222.4 kB / 369.5 MB, free: 83.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/0.7625, allocations: 15.59 kB / 369.6 MB, free: 83.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.7626, allocations: 340 kB / 369.9 MB, free: 83.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007254/0.7634, allocations: 191.8 kB / 370.1 MB, free: 83.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008624/0.7642, allocations: 394.4 kB / 370.5 MB, free: 82.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007875/0.765, allocations: 239.3 kB / 370.7 MB, free: 82.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.7651, allocations: 2.609 kB / 370.7 MB, free: 82.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002737/0.7678, allocations: 0.797 MB / 371.5 MB, free: 82.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.7679, allocations: 13.47 kB / 371.5 MB, free: 82.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.7679, allocations: 3.469 kB / 371.5 MB, free: 82.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/0.7693, allocations: 259 kB / 371.8 MB, free: 82.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000934/0.7703, allocations: 119.8 kB / 371.9 MB, free: 82.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007231/0.7776, allocations: 4.38 MB / 376.3 MB, free: 79.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.7787, allocations: 98.75 kB / 376.4 MB, free: 79.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.587e-05/0.7788, allocations: 26.22 kB / 376.4 MB, free: 79.93 MB / 314.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,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 (65): * Single equations (assignments): 63 * 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.0002509/0.7791, allocations: 165.4 kB / 376.6 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.7793, allocations: 59.66 kB / 376.6 MB, free: 79.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.7816, allocations: 0.7696 MB / 377.4 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.7816, allocations: 6.406 kB / 377.4 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.7817, allocations: 3.5 kB / 377.4 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.7817, allocations: 9.75 kB / 377.4 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.7855, allocations: 1.587 MB / 379 MB, free: 79.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.7856, allocations: 0 / 379 MB, free: 79.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.7863, allocations: 75.56 kB / 379.1 MB, free: 79.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.7876, allocations: 262 kB / 379.3 MB, free: 79.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.7877, allocations: 12.19 kB / 379.3 MB, free: 79.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006744/0.7945, allocations: 4.345 MB / 383.7 MB, free: 76.51 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.7945, allocations: 5.266 kB / 383.7 MB, free: 76.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002899/0.7975, allocations: 1.121 MB / 384.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/0.7979, allocations: 192.9 kB / 385 MB, free: 75.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.7981, allocations: 15.66 kB / 385 MB, free: 75.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007752/0.7989, allocations: 47.69 kB / 385 MB, free: 75.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.7991, allocations: 58.69 kB / 385.1 MB, free: 75.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.765e-05/0.7992, allocations: 22.22 kB / 385.1 MB, free: 75.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004582/0.7996, allocations: 296.5 kB / 385.4 MB, free: 75.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7996, allocations: 0 / 385.4 MB, free: 75.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001429/0.8011, allocations: 285.7 kB / 385.7 MB, free: 75.49 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.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 (40): * Single equations (assignments): 35 * 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.003206/0.8043, allocations: 1.849 MB / 387.5 MB, free: 74.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002209/0.8066, allocations: 0.855 MB / 388.4 MB, free: 73.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/0.8066, allocations: 4.594 kB / 388.4 MB, free: 73.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.808, allocations: 0.6097 MB / 389 MB, free: 73.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008462/0.8089, allocations: 99.95 kB / 389.1 MB, free: 73.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003869/0.8128, allocations: 1.242 MB / 390.4 MB, free: 72.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.8134, allocations: 0.9819 MB / 391.3 MB, free: 72.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005135/0.8139, allocations: 293.3 kB / 391.6 MB, free: 71.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8139, allocations: 0 / 391.6 MB, free: 71.82 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.216/4.03, allocations: 18.26 MB / 409.9 MB, free: 59.46 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat