Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.31e-05, allocations: 0 / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 50.43 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5221/0.634, allocations: 89.55 MB / 432.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.6343, allocations: 79.95 kB / 432.3 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0992/0.7335, allocations: 22.01 MB / 454.3 MB, free: 2.004 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7336, allocations: 0 / 454.3 MB, free: 2.004 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.548e-05/0.7337, allocations: 24 kB / 454.3 MB, free: 1.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004465/0.7382, allocations: 1.139 MB / 455.4 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.7382, allocations: 12.03 kB / 455.5 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005626/0.7388, allocations: 156.8 kB / 455.6 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002794/0.7416, allocations: 297.8 kB / 455.9 MB, free: 500 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001417/0.7431, allocations: 0.5304 MB / 456.4 MB, free: 24 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.7432, allocations: 75.88 kB / 456.5 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002379/0.7435, allocations: 101.4 kB / 456.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002653/0.7462, allocations: 0.9589 MB / 457.6 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/0.7463, allocations: 3.906 kB / 457.6 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.7464, allocations: 43.88 kB / 457.6 MB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.157e-05/0.7465, allocations: 24 kB / 457.6 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002363/0.7488, allocations: 0.7638 MB / 458.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009353/0.7582, allocations: 3.588 MB / 462 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.7619, allocations: 1.845 MB / 463.8 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.7633, allocations: 424.4 kB / 464.2 MB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.7635, allocations: 93.88 kB / 464.3 MB, free: 8.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001223/0.7647, allocations: 463.9 kB / 464.8 MB, free: 8.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.717e-06/0.7648, allocations: 0 / 464.8 MB, free: 8.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002874/0.7676, allocations: 0.8293 MB / 465.6 MB, free: 7.219 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.7678, allocations: 192.7 kB / 465.8 MB, free: 6.988 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008357/0.7687, allocations: 395.8 kB / 466.2 MB, free: 6.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.7688, allocations: 45.69 kB / 466.2 MB, free: 6.543 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004356/0.7693, allocations: 450.1 kB / 466.7 MB, free: 6.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/0.7697, allocations: 279.9 kB / 466.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.7697, allocations: 16 kB / 467 MB, free: 5.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.7699, allocations: 350.8 kB / 467.3 MB, free: 5.453 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.7707, allocations: 230 kB / 467.5 MB, free: 5.227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009077/0.7716, allocations: 445.4 kB / 468 MB, free: 4.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008511/0.7724, allocations: 286 kB / 468.2 MB, free: 4.426 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/0.7725, allocations: 4 kB / 468.2 MB, free: 4.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002772/0.7753, allocations: 0.9083 MB / 469.2 MB, free: 3.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.7753, allocations: 8 kB / 469.2 MB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.7753, allocations: 4 kB / 469.2 MB, free: 3.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.7768, allocations: 275.7 kB / 469.4 MB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.778, allocations: 151.8 kB / 469.6 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008106/0.7861, allocations: 4.367 MB / 473.9 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001179/0.7874, allocations: 111.1 kB / 474.1 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.245e-05/0.7875, allocations: 32 kB / 474.1 MB, free: 14.3 MB / 394.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_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0002937/0.7878, allocations: 160.9 kB / 474.2 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.788, allocations: 67.2 kB / 474.3 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.791, allocations: 0.903 MB / 475.2 MB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/0.7911, allocations: 12 kB / 475.2 MB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.7911, allocations: 4 kB / 475.2 MB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/0.7911, allocations: 3.984 kB / 475.2 MB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005479/0.7966, allocations: 1.869 MB / 477.1 MB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.7967, allocations: 4 kB / 477.1 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009787/0.7977, allocations: 99.88 kB / 477.2 MB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001456/0.7991, allocations: 269.6 kB / 477.5 MB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001617/0.7993, allocations: 12 kB / 477.5 MB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.8096, allocations: 4.346 MB / 481.8 MB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8097, allocations: 0 / 481.8 MB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005244/0.8149, allocations: 1.294 MB / 483.1 MB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007162/0.8157, allocations: 212.1 kB / 483.3 MB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002545/0.816, allocations: 20 kB / 483.3 MB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.8173, allocations: 51.97 kB / 483.4 MB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/0.8177, allocations: 64.62 kB / 483.5 MB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.8178, allocations: 31.98 kB / 483.5 MB, free: 4.461 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000826/0.8187, allocations: 301.6 kB / 483.8 MB, free: 4.172 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.8187, allocations: 0 / 483.8 MB, free: 4.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002527/0.8212, allocations: 315.2 kB / 484.1 MB, free: 3.863 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * 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.005849/0.8271, allocations: 2.081 MB / 486.2 MB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.8309, allocations: 0.9671 MB / 487.1 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.8309, allocations: 0 / 487.1 MB, free: 0.7578 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.8334, allocations: 0.6807 MB / 487.8 MB, free: 60 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.8348, allocations: 102.2 kB / 487.9 MB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006406/0.8412, allocations: 1.39 MB / 489.3 MB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.8424, allocations: 1.014 MB / 490.3 MB, free: 13.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009934/0.8434, allocations: 319.3 kB / 490.6 MB, free: 13.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8434, allocations: 0 / 490.6 MB, free: 13.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.023/3.867, allocations: 20.23 MB / 0.4989 GB, free: 8.941 MB / 426.7 MB