Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.083/2.083, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.551e-05/2.541e-05, allocations: 3.266 kB / 249.8 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.09454, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4378/0.5324, allocations: 81.58 MB / 375.9 MB, free: 7.211 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.5327, allocations: 85.39 kB / 375.9 MB, free: 7.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09007/0.6228, allocations: 21.9 MB / 397.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6229, allocations: 0 / 397.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.162e-05/0.623, allocations: 27.41 kB / 397.9 MB, free: 15.07 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.003954/0.6269, allocations: 1.148 MB / 399 MB, free: 14.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.627, allocations: 7.875 kB / 399 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003623/0.6306, allocations: 368.3 kB / 399.4 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.632, allocations: 0.5183 MB / 399.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.589e-05/0.6321, allocations: 33.34 kB / 399.9 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.6324, allocations: 67.97 kB / 400 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002312/0.6347, allocations: 0.7815 MB / 400.8 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.637, allocations: 0.837 MB / 401.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.636e-05/0.6371, allocations: 3.938 kB / 401.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/0.6372, allocations: 0 / 401.6 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.744e-05/0.6373, allocations: 31.09 kB / 401.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009477/0.6467, allocations: 3.596 MB / 405.3 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/0.6507, allocations: 2.408 MB / 407.7 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.6519, allocations: 363.8 kB / 408 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001999/0.6521, allocations: 93.52 kB / 408.1 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.6532, allocations: 439.6 kB / 408.5 MB, free: 9.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 4.429e-06/0.6532, allocations: 4 kB / 408.5 MB, free: 9.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.003042/0.6562, allocations: 0.821 MB / 409.4 MB, free: 8.871 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.6564, allocations: 188.2 kB / 409.6 MB, free: 8.652 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/0.6571, allocations: 363.9 kB / 409.9 MB, free: 8.508 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.6572, allocations: 32.64 kB / 409.9 MB, free: 8.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004641/0.6577, allocations: 425 kB / 410.4 MB, free: 8.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.6581, allocations: 264.8 kB / 410.6 MB, free: 7.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.6582, allocations: 0 / 410.6 MB, free: 7.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.6584, allocations: 380.9 kB / 411 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006213/0.659, allocations: 227.2 kB / 411.2 MB, free: 7.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008777/0.6599, allocations: 470.6 kB / 411.7 MB, free: 7.336 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.6613, allocations: 340.9 kB / 412 MB, free: 7.234 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.6613, allocations: 4 kB / 412 MB, free: 7.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003611/0.6649, allocations: 0.9717 MB / 413 MB, free: 6.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.665, allocations: 8 kB / 413 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.665, allocations: 4 kB / 413 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001549/0.6666, allocations: 265.9 kB / 413.2 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.6681, allocations: 169.2 kB / 413.4 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008391/0.6765, allocations: 4.196 MB / 417.6 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.6779, allocations: 91.23 kB / 417.7 MB, free: 2.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.678, allocations: 36.81 kB / 417.7 MB, free: 2.297 MB / 314.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.0003743/0.6784, allocations: 146.4 kB / 417.9 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003249/0.6817, allocations: 0.8263 MB / 418.7 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.6819, allocations: 63.25 kB / 418.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/0.6853, allocations: 0.8799 MB / 419.6 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.6854, allocations: 12 kB / 419.7 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.6854, allocations: 0 / 419.7 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/0.6854, allocations: 8.062 kB / 419.7 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.6908, allocations: 1.738 MB / 421.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.6909, allocations: 3.938 kB / 421.4 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.692, allocations: 111.9 kB / 421.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.6935, allocations: 248.9 kB / 421.8 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.172e-05/0.6936, allocations: 8 kB / 421.8 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.7039, allocations: 4.19 MB / 426 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.704, allocations: 0 / 426 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005641/0.7097, allocations: 1.26 MB / 427.2 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000721/0.7104, allocations: 220 kB / 427.4 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.7107, allocations: 0 / 427.4 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.712, allocations: 43.97 kB / 427.5 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003675/0.7124, allocations: 64.64 kB / 427.5 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.7125, allocations: 31.98 kB / 427.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007205/0.7133, allocations: 267 kB / 427.8 MB, free: 8.031 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.7133, allocations: 0 / 427.8 MB, free: 8.031 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002595/0.7159, allocations: 283.1 kB / 428.1 MB, free: 7.754 MB / 330.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.006998/0.7229, allocations: 1.931 MB / 430 MB, free: 5.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004683/0.7277, allocations: 0.9633 MB / 431 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/0.7277, allocations: 3.359 kB / 431 MB, free: 4.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002557/0.7303, allocations: 0.6614 MB / 431.7 MB, free: 4.121 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.7316, allocations: 65.05 kB / 431.7 MB, free: 4.059 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.743, allocations: 1.724 MB / 433.4 MB, free: 2.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.7444, allocations: 1.007 MB / 434.5 MB, free: 1.262 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001071/0.7455, allocations: 81.33 kB / 434.5 MB, free: 1.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.7465, allocations: 315.3 kB / 434.8 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7466, allocations: 0 / 434.8 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1285/0.8751, allocations: 15.91 MB / 450.8 MB, free: 1.008 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.00027/0.8754, allocations: 174 kB / 450.9 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.597/4.472, allocations: 7.781 kB / 450.9 MB, free: 0.8008 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat