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 2.002/2.002, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.207e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2619, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.136/0.398, allocations: 75.57 MB / 339.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.3984, allocations: 79.95 kB / 339.5 MB, free: 14.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08305/0.4815, allocations: 19.62 MB / 359.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4815, allocations: 0 / 359.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.049e-05/0.4816, allocations: 20 kB / 359.1 MB, free: 10.27 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.00363/0.4853, allocations: 1.095 MB / 360.2 MB, free: 9.129 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.4853, allocations: 8.031 kB / 360.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003332/0.4857, allocations: 143.5 kB / 360.4 MB, free: 8.973 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000716/0.4864, allocations: 138.7 kB / 360.5 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001157/0.4876, allocations: 0.4945 MB / 361 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.192e-05/0.4877, allocations: 73.98 kB / 361.1 MB, free: 8.227 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.4879, allocations: 91.94 kB / 361.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.4905, allocations: 0.8481 MB / 362 MB, free: 7.262 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.345e-05/0.4906, allocations: 4 kB / 362 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.4907, allocations: 40 kB / 362 MB, free: 7.219 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.4908, allocations: 24 kB / 362.1 MB, free: 7.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.4929, allocations: 0.6248 MB / 362.7 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008719/0.5016, allocations: 3.26 MB / 366 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.504, allocations: 0.8693 MB / 366.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.5053, allocations: 367.3 kB / 367.2 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.242e-05/0.5054, allocations: 16.53 kB / 367.2 MB, free: 1.836 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.5064, allocations: 397.8 kB / 367.6 MB, free: 1.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.158e-06/0.5064, allocations: 0 / 367.6 MB, free: 1.414 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.002627/0.5091, allocations: 0.7267 MB / 368.3 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.5092, allocations: 192.5 kB / 368.5 MB, free: 456 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007764/0.51, allocations: 379.1 kB / 368.9 MB, free: 80 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.5102, allocations: 41.7 kB / 368.9 MB, free: 32 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2326/0.7428, allocations: 427.3 kB / 369.3 MB, free: 83.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.7432, allocations: 227.7 kB / 369.6 MB, free: 83.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.151e-05/0.7433, allocations: 14.84 kB / 369.6 MB, free: 83.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.7434, allocations: 341.5 kB / 369.9 MB, free: 83.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/0.7442, allocations: 191.6 kB / 370.1 MB, free: 83.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008423/0.745, allocations: 396.4 kB / 370.5 MB, free: 82.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007492/0.7458, allocations: 244.3 kB / 370.7 MB, free: 82.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/0.7458, allocations: 1.75 kB / 370.7 MB, free: 82.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002601/0.7484, allocations: 0.8094 MB / 371.5 MB, free: 82.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.7485, allocations: 8.469 kB / 371.5 MB, free: 82.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.7485, allocations: 6.844 kB / 371.5 MB, free: 82.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.7499, allocations: 257.5 kB / 371.8 MB, free: 82.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009009/0.7508, allocations: 119.9 kB / 371.9 MB, free: 82.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/0.7578, allocations: 4.378 MB / 376.3 MB, free: 80 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.7589, allocations: 99.92 kB / 376.4 MB, free: 79.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.673e-05/0.759, allocations: 25.75 kB / 376.4 MB, free: 79.98 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.0002468/0.7593, allocations: 164.6 kB / 376.6 MB, free: 79.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.7594, allocations: 62.06 kB / 376.6 MB, free: 79.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.7617, allocations: 0.7677 MB / 377.4 MB, free: 79.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.7618, allocations: 10.81 kB / 377.4 MB, free: 79.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7618, allocations: 0 / 377.4 MB, free: 79.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.7618, allocations: 2.531 kB / 377.4 MB, free: 79.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.7654, allocations: 1.592 MB / 379 MB, free: 79.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.7655, allocations: 0 / 379 MB, free: 79.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006662/0.7662, allocations: 83.22 kB / 379.1 MB, free: 79.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.7675, allocations: 256.8 kB / 379.3 MB, free: 79.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.7676, allocations: 14.25 kB / 379.4 MB, free: 79.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006455/0.7741, allocations: 4.342 MB / 383.7 MB, free: 76.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7741, allocations: 3.125 kB / 383.7 MB, free: 76.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002815/0.777, allocations: 1.119 MB / 384.8 MB, free: 75.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003933/0.7774, allocations: 196 kB / 385 MB, free: 75.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.7775, allocations: 19.31 kB / 385 MB, free: 75.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007208/0.7783, allocations: 44.38 kB / 385.1 MB, free: 75.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.7785, allocations: 65 kB / 385.1 MB, free: 75.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.7786, allocations: 21.53 kB / 385.2 MB, free: 75.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004571/0.7791, allocations: 294.4 kB / 385.4 MB, free: 75.61 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7791, allocations: 0 / 385.4 MB, free: 75.61 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001324/0.7804, allocations: 281.7 kB / 385.7 MB, free: 75.53 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.003079/0.7835, allocations: 1.85 MB / 387.6 MB, free: 74.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.7857, allocations: 0.8954 MB / 388.5 MB, free: 73.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.7857, allocations: 0 / 388.5 MB, free: 73.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.7871, allocations: 0.6331 MB / 389.1 MB, free: 73.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008231/0.7879, allocations: 101 kB / 389.2 MB, free: 73.35 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003699/0.7916, allocations: 1.245 MB / 390.4 MB, free: 72.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.7922, allocations: 0.9838 MB / 391.4 MB, free: 72.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005058/0.7927, allocations: 289.3 kB / 391.7 MB, free: 71.8 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7927, allocations: 0 / 391.7 MB, free: 71.8 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.235/4.028, allocations: 18.29 MB / 410 MB, free: 59.34 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