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.038/2.038, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.975e-05/2.99e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3556, allocations: 44.5 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.5044, allocations: 81.59 MB / 375.8 MB, free: 392 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003069/0.5047, allocations: 79.94 kB / 375.9 MB, free: 312 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08994/0.5947, allocations: 21.88 MB / 397.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.649e-06/0.5947, allocations: 3.984 kB / 397.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.088e-05/0.5948, allocations: 24 kB / 397.8 MB, free: 10.21 MB / 346.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.003838/0.5987, allocations: 1.146 MB / 398.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.5987, allocations: 12.03 kB / 398.9 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003328/0.6021, allocations: 374.3 kB / 399.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.6035, allocations: 0.5239 MB / 399.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/0.6036, allocations: 32 kB / 399.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002267/0.6038, allocations: 71.91 kB / 399.9 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00244/0.6063, allocations: 0.7772 MB / 400.7 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.6086, allocations: 0.8325 MB / 401.5 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.379e-05/0.6087, allocations: 0 / 401.5 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.6088, allocations: 8 kB / 401.5 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.6089, allocations: 24 kB / 401.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009286/0.6182, allocations: 3.604 MB / 405.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003794/0.622, allocations: 2.403 MB / 407.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.6231, allocations: 372 kB / 407.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001817/0.6233, allocations: 89.89 kB / 408 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/0.6244, allocations: 444 kB / 408.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 3.667e-06/0.6244, allocations: 0 / 408.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.002954/0.6274, allocations: 0.8176 MB / 409.3 MB, free: 13.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.6275, allocations: 192.7 kB / 409.5 MB, free: 13.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000687/0.6282, allocations: 365 kB / 409.8 MB, free: 13.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.6284, allocations: 33.73 kB / 409.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004515/0.6289, allocations: 465.9 kB / 410.3 MB, free: 12.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004062/0.6293, allocations: 268 kB / 410.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.17e-05/0.6294, allocations: 0 / 410.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.6296, allocations: 350.8 kB / 410.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.6302, allocations: 222.6 kB / 411.1 MB, free: 12.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008454/0.6311, allocations: 473.2 kB / 411.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.6323, allocations: 340.3 kB / 411.9 MB, free: 11.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.6324, allocations: 0 / 411.9 MB, free: 11.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003108/0.6355, allocations: 0.9432 MB / 412.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.6356, allocations: 11.98 kB / 412.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/0.6356, allocations: 8 kB / 412.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.637, allocations: 259.7 kB / 413.1 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.6383, allocations: 167.7 kB / 413.3 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007819/0.6462, allocations: 4.199 MB / 417.5 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.6474, allocations: 95.14 kB / 417.6 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.6476, allocations: 32 kB / 417.6 MB, free: 5.184 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real 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.0003703/0.648, allocations: 148.4 kB / 417.8 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002933/0.6509, allocations: 0.821 MB / 418.6 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/0.6512, allocations: 63.25 kB / 418.6 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/0.6544, allocations: 0.8799 MB / 419.5 MB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.6545, allocations: 8 kB / 419.5 MB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.6545, allocations: 7.984 kB / 419.5 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.6546, allocations: 4.078 kB / 419.5 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005024/0.6596, allocations: 1.748 MB / 421.3 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.6597, allocations: 0 / 421.3 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000949/0.6606, allocations: 103.9 kB / 421.4 MB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.662, allocations: 253.6 kB / 421.6 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.42e-05/0.6621, allocations: 8 kB / 421.7 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2692/0.9313, allocations: 4.171 MB / 425.8 MB, free: 97.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.9314, allocations: 5.406 kB / 425.8 MB, free: 97.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003778/0.9352, allocations: 1.266 MB / 427.1 MB, free: 96.99 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/0.9358, allocations: 207.5 kB / 427.3 MB, free: 96.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.936, allocations: 2.25 kB / 427.3 MB, free: 96.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008527/0.9369, allocations: 41.41 kB / 427.3 MB, free: 96.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003114/0.9372, allocations: 70.83 kB / 427.4 MB, free: 96.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/0.9373, allocations: 26.33 kB / 427.4 MB, free: 96.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004905/0.9378, allocations: 273.2 kB / 427.7 MB, free: 96.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9378, allocations: 1.094 kB / 427.7 MB, free: 96.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00191/0.9397, allocations: 279.5 kB / 428 MB, free: 96.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.004379/0.9442, allocations: 1.927 MB / 429.9 MB, free: 95.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.9469, allocations: 0.9734 MB / 430.9 MB, free: 95.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.947, allocations: 1.156 kB / 430.9 MB, free: 95.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.9487, allocations: 0.6584 MB / 431.5 MB, free: 95.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009285/0.9497, allocations: 74.02 kB / 431.6 MB, free: 95.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007121/0.9568, allocations: 1.758 MB / 433.4 MB, free: 95.03 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.9576, allocations: 1.012 MB / 434.4 MB, free: 94.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006843/0.9583, allocations: 322.3 kB / 434.7 MB, free: 94.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/0.9583, allocations: 0 / 434.7 MB, free: 94.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.014/3.972, allocations: 20.1 MB / 454.8 MB, free: 89.67 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