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.886/1.886, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.356e-05/2.367e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2503, allocations: 38.77 MB / 258.3 MB, free: 12.15 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.3968, allocations: 74.91 MB / 333.2 MB, free: 2.98 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.3971, allocations: 75.95 kB / 333.3 MB, free: 2.906 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07734/0.4745, allocations: 19.39 MB / 352.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4745, allocations: 0 / 352.7 MB, free: 15.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.589e-05/0.4746, allocations: 16 kB / 352.7 MB, free: 15.32 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.003465/0.4781, allocations: 1.095 MB / 353.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.4781, allocations: 8.031 kB / 353.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006751/0.4788, allocations: 138.7 kB / 354 MB, free: 14.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.4799, allocations: 0.4888 MB / 354.5 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.48, allocations: 32 kB / 354.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.4802, allocations: 63.98 kB / 354.5 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001701/0.4819, allocations: 0.5663 MB / 355.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.4838, allocations: 0.7192 MB / 355.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.972e-05/0.4838, allocations: 3.984 kB / 355.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.936e-05/0.484, allocations: 0 / 355.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.468e-05/0.484, allocations: 24 kB / 355.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007034/0.491, allocations: 3.104 MB / 359 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/0.4929, allocations: 0.8486 MB / 359.8 MB, free: 7.898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007627/0.4937, allocations: 307.3 kB / 360.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-05/0.4938, allocations: 8.562 kB / 360.1 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008809/0.4947, allocations: 376.7 kB / 360.5 MB, free: 7.191 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 3.386e-06/0.4947, allocations: 3.938 kB / 360.5 MB, free: 7.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.002284/0.497, allocations: 0.6759 MB / 361.2 MB, free: 6.496 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4972, allocations: 188.5 kB / 361.4 MB, free: 6.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.4978, allocations: 349.1 kB / 361.7 MB, free: 5.922 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.439e-05/0.4979, allocations: 29.7 kB / 361.7 MB, free: 5.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.4984, allocations: 437.9 kB / 362.1 MB, free: 5.453 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.4986, allocations: 216.8 kB / 362.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.803e-05/0.4987, allocations: 0 / 362.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.4989, allocations: 342.8 kB / 362.7 MB, free: 4.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004961/0.4994, allocations: 177.5 kB / 362.9 MB, free: 4.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.5, allocations: 379.5 kB / 363.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006019/0.5007, allocations: 222 kB / 363.5 MB, free: 4.043 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.5007, allocations: 4 kB / 363.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002177/0.5029, allocations: 0.7193 MB / 364.2 MB, free: 3.305 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.5029, allocations: 12.48 kB / 364.2 MB, free: 3.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.503, allocations: 11.98 kB / 364.2 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00133/0.5043, allocations: 251.6 kB / 364.4 MB, free: 3.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008764/0.5052, allocations: 123.8 kB / 364.6 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.22/0.7252, allocations: 4.189 MB / 368.8 MB, free: 83.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009879/0.7263, allocations: 72.83 kB / 368.8 MB, free: 83.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/0.7264, allocations: 32.69 kB / 368.9 MB, free: 83.36 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) type: Real 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.000289/0.7267, allocations: 129 kB / 369 MB, free: 83.25 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00229/0.729, allocations: 0.6853 MB / 369.7 MB, free: 83.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.7292, allocations: 64.75 kB / 369.7 MB, free: 83.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002125/0.7313, allocations: 0.6957 MB / 370.4 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.7314, allocations: 7.156 kB / 370.4 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.7314, allocations: 0 / 370.4 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.7314, allocations: 4.75 kB / 370.4 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003361/0.7348, allocations: 1.414 MB / 371.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-06/0.7348, allocations: 1.062 kB / 371.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006709/0.7355, allocations: 82.23 kB / 371.9 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/0.7367, allocations: 252.5 kB / 372.2 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.7368, allocations: 2.5 kB / 372.2 MB, free: 82.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006116/0.7429, allocations: 4.172 MB / 376.4 MB, free: 80.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/0.743, allocations: 0 / 376.4 MB, free: 80.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.7454, allocations: 1.047 MB / 377.4 MB, free: 79.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003628/0.7458, allocations: 185.1 kB / 377.6 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.746, allocations: 12.22 kB / 377.6 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000692/0.7467, allocations: 35.67 kB / 377.6 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002184/0.7469, allocations: 61.05 kB / 377.7 MB, free: 79.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.467e-05/0.747, allocations: 13 kB / 377.7 MB, free: 79.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003547/0.7473, allocations: 266.5 kB / 378 MB, free: 79.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7473, allocations: 3.562 kB / 378 MB, free: 79.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001406/0.7488, allocations: 248.3 kB / 378.2 MB, free: 79.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.002743/0.7515, allocations: 1.696 MB / 379.9 MB, free: 78.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.7535, allocations: 0.8389 MB / 380.7 MB, free: 78.64 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.7535, allocations: 4.469 kB / 380.8 MB, free: 78.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.7547, allocations: 0.5923 MB / 381.3 MB, free: 78.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007383/0.7555, allocations: 70.25 kB / 381.4 MB, free: 78.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.7589, allocations: 1.17 MB / 382.6 MB, free: 77.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.7595, allocations: 0.9918 MB / 383.6 MB, free: 77.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004917/0.76, allocations: 285.5 kB / 383.9 MB, free: 77.08 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.76, allocations: 0 / 383.9 MB, free: 77.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.996/3.756, allocations: 18 MB / 401.9 MB, free: 68.99 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