Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.067e-05, allocations: 4 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09342/0.09347, allocations: 50.41 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.4592, allocations: 89.54 MB / 432.1 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.4595, allocations: 83.33 kB / 432.2 MB, free: 4.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07992/0.5394, allocations: 22 MB / 454.2 MB, free: 2.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.5395, allocations: 4 kB / 454.2 MB, free: 2.328 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.5395, allocations: 20 kB / 454.2 MB, free: 2.309 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.00287/0.5424, allocations: 1.133 MB / 455.3 MB, free: 1.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.5425, allocations: 12.03 kB / 455.3 MB, free: 1.191 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002138/0.5446, allocations: 298.8 kB / 455.6 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.5457, allocations: 0.52 MB / 456.1 MB, free: 472 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.015e-05/0.5458, allocations: 87.12 kB / 456.2 MB, free: 420 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.546, allocations: 104.1 kB / 456.3 MB, free: 348 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002156/0.5482, allocations: 0.9443 MB / 457.3 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.89e-05/0.5482, allocations: 7.938 kB / 457.3 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.5484, allocations: 39.38 kB / 457.3 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.383e-05/0.5484, allocations: 27.98 kB / 457.3 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.5503, allocations: 0.7639 MB / 458.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007264/0.5576, allocations: 3.583 MB / 461.7 MB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002885/0.5605, allocations: 1.845 MB / 463.5 MB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.5616, allocations: 424 kB / 464 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.5617, allocations: 93.81 kB / 464 MB, free: 8.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009889/0.5627, allocations: 460 kB / 464.5 MB, free: 8.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.505e-06/0.5628, allocations: 0 / 464.5 MB, free: 8.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002364/0.5651, allocations: 0.8293 MB / 465.3 MB, free: 7.578 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.5653, allocations: 196.7 kB / 465.5 MB, free: 7.344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00068/0.566, allocations: 399.8 kB / 465.9 MB, free: 6.945 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.684e-05/0.5661, allocations: 41.7 kB / 465.9 MB, free: 6.898 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.5665, allocations: 450.1 kB / 466.4 MB, free: 6.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003171/0.5668, allocations: 272 kB / 466.7 MB, free: 6.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-05/0.5669, allocations: 20 kB / 466.7 MB, free: 6.164 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.5671, allocations: 346.8 kB / 467 MB, free: 5.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006084/0.5678, allocations: 234 kB / 467.2 MB, free: 5.586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008196/0.5686, allocations: 441.4 kB / 467.7 MB, free: 5.066 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007266/0.5693, allocations: 289.9 kB / 468 MB, free: 4.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.783e-06/0.5694, allocations: 4 kB / 468 MB, free: 4.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.00239/0.5718, allocations: 0.9121 MB / 468.9 MB, free: 3.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.5718, allocations: 8 kB / 468.9 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.5718, allocations: 8.062 kB / 468.9 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.5729, allocations: 267.8 kB / 469.1 MB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/0.5737, allocations: 147.7 kB / 469.3 MB, free: 3.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00716/0.5809, allocations: 4.376 MB / 473.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008694/0.5818, allocations: 103.2 kB / 473.8 MB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.594e-05/0.5819, allocations: 36.09 kB / 473.8 MB, free: 14.66 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.0002693/0.5822, allocations: 168.7 kB / 474 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.5824, allocations: 63.25 kB / 474 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002445/0.5848, allocations: 0.8992 MB / 474.9 MB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.5849, allocations: 16 kB / 474.9 MB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.658e-06/0.5849, allocations: 0 / 474.9 MB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.5849, allocations: 3.984 kB / 474.9 MB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.5891, allocations: 1.873 MB / 476.8 MB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.98e-06/0.5892, allocations: 3.984 kB / 476.8 MB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.5898, allocations: 99.89 kB / 476.9 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00104/0.5908, allocations: 257.6 kB / 477.2 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/0.5909, allocations: 15.98 kB / 477.2 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006872/0.5978, allocations: 4.341 MB / 481.5 MB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.999e-06/0.5979, allocations: 96 / 481.5 MB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003082/0.601, allocations: 1.29 MB / 482.8 MB, free: 5.227 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004205/0.6014, allocations: 224.1 kB / 483 MB, free: 4.988 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.6016, allocations: 16 kB / 483.1 MB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005896/0.6022, allocations: 55.95 kB / 483.1 MB, free: 4.918 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.6024, allocations: 68.67 kB / 483.2 MB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.637e-05/0.6025, allocations: 24 kB / 483.2 MB, free: 4.828 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000526/0.603, allocations: 301.6 kB / 483.5 MB, free: 4.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.56e-07/0.603, allocations: 4 kB / 483.5 MB, free: 4.535 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001362/0.6044, allocations: 319 kB / 483.8 MB, free: 4.223 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.0003825/0.6048, allocations: 197.6 kB / 484 MB, free: 4.027 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.607, allocations: 0.9709 MB / 485 MB, free: 3.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.607, allocations: 0 / 485 MB, free: 3.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.6084, allocations: 0.6845 MB / 485.7 MB, free: 2.332 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006676/0.6091, allocations: 98 kB / 485.8 MB, free: 2.234 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/0.6123, allocations: 1.229 MB / 487 MB, free: 0.9688 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008806/0.6132, allocations: 1.01 MB / 488 MB, free: 15.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002718/0.6135, allocations: 55.36 kB / 488 MB, free: 15.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.681e-06/0.6135, allocations: 3.938 kB / 488.1 MB, free: 15.87 MB / 410.7 MB Notification: Performance of Templates: time 0.02755/0.6411, allocations: 16.46 MB / 0.4927 GB, free: 15.42 MB / 426.7 MB