Running command: translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Capacitor1.v|Capacitor2.v|Inductor2.i|Inductor3.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadModel(Modelica): time 2.279/2.279, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.876e-05/2.885e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005327/0.1171, allocations: 3.339 MB / 348.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1191, allocations: 0.8221 MB / 349.1 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.1194, allocations: 12 kB / 349.1 MB, free: 4.746 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1196, allocations: 75.44 kB / 349.2 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006236/0.1202, allocations: 199.4 kB / 349.4 MB, free: 4.477 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.1206, allocations: 111.9 kB / 349.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006463/0.1213, allocations: 384.1 kB / 349.9 MB, free: 3.992 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002858/0.1216, allocations: 108.8 kB / 350 MB, free: 3.887 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003381/0.1219, allocations: 215.4 kB / 350.2 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004673/0.1224, allocations: 251.1 kB / 350.5 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.1225, allocations: 28 kB / 350.5 MB, free: 3.402 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.39e-05/0.1226, allocations: 28 kB / 350.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1228, allocations: 111.6 kB / 350.6 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.123, allocations: 56 kB / 350.7 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006998/0.1237, allocations: 0.5063 MB / 351.2 MB, free: 2.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1237, allocations: 0 / 351.2 MB, free: 2.703 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1237, allocations: 3.938 kB / 351.2 MB, free: 2.699 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.1238, allocations: 0 / 351.2 MB, free: 2.699 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001831/0.1256, allocations: 0.7644 MB / 352 MB, free: 1.887 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.1257, allocations: 12.03 kB / 352 MB, free: 1.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.1258, allocations: 71.2 kB / 352 MB, free: 1.805 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006375/0.1265, allocations: 364.9 kB / 352.4 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.957e-05/0.1265, allocations: 37.31 kB / 352.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.1267, allocations: 56 kB / 352.5 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1281, allocations: 0.5375 MB / 353 MB, free: 0.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.1281, allocations: 3.984 kB / 353 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.571e-05/0.1282, allocations: 28 kB / 353.1 MB, free: 0.7188 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.1283, allocations: 12 kB / 353.1 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.1297, allocations: 463.6 kB / 353.5 MB, free: 260 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004319/0.134, allocations: 2.05 MB / 355.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.1356, allocations: 0.6453 MB / 356.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-05/0.1357, allocations: 8.562 kB / 356.2 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.1357, allocations: 43.12 kB / 356.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=60): time 3.787e-06/0.1358, allocations: 0 / 356.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.007325/0.1431, allocations: 2.057 MB / 358.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.1432, allocations: 67.91 kB / 358.4 MB, free: 11.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005188/0.1437, allocations: 316.8 kB / 358.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.1438, allocations: 37.7 kB / 358.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.144, allocations: 275.5 kB / 359 MB, free: 10.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00022/0.1442, allocations: 205.1 kB / 359.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.1443, allocations: 8 kB / 359.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1444, allocations: 330.8 kB / 359.5 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/0.145, allocations: 169 kB / 359.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.1457, allocations: 219.8 kB / 359.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006154/0.1463, allocations: 182.2 kB / 360.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1463, allocations: 0 / 360.1 MB, free: 9.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002071/0.1484, allocations: 0.6503 MB / 360.7 MB, free: 8.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.1485, allocations: 4 kB / 360.7 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1485, allocations: 4 kB / 360.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.1497, allocations: 255.2 kB / 361 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/0.1503, allocations: 67.89 kB / 361.1 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009703/0.16, allocations: 6.832 MB / 367.9 MB, free: 1.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/0.1606, allocations: 27.98 kB / 367.9 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.1606, allocations: 16 kB / 367.9 MB, free: 0.9805 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003245/0.161, allocations: 173.8 kB / 368.1 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.1611, allocations: 47.44 kB / 368.2 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001599/0.1613, allocations: 68.94 kB / 368.2 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.669e-06/0.1613, allocations: 8 kB / 368.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.1613, allocations: 4 kB / 368.2 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.1613, allocations: 3.984 kB / 368.2 MB, free: 0.668 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003425/0.1648, allocations: 1.353 MB / 369.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.1648, allocations: 4 kB / 369.6 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.1654, allocations: 63.86 kB / 369.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.1665, allocations: 263.5 kB / 369.9 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.092e-05/0.1666, allocations: 15.98 kB / 369.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009274/0.1759, allocations: 6.816 MB / 376.7 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.433e-06/0.1759, allocations: 8.016 kB / 376.8 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.1789, allocations: 1.041 MB / 377.8 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002963/0.1792, allocations: 160.5 kB / 377.9 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.1793, allocations: 12 kB / 378 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000454/0.1798, allocations: 24.48 kB / 378 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.18, allocations: 52.48 kB / 378 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/0.1801, allocations: 12 kB / 378 MB, free: 6.191 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004085/0.1805, allocations: 263.1 kB / 378.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.1805, allocations: 0 / 378.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001177/0.1817, allocations: 176 kB / 378.5 MB, free: 5.762 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001916/0.1819, allocations: 111.2 kB / 378.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002498/0.1844, allocations: 1.041 MB / 379.6 MB, free: 4.551 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1844, allocations: 0 / 379.6 MB, free: 4.551 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.1862, allocations: 0.8492 MB / 380.5 MB, free: 3.648 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.1869, allocations: 72.7 kB / 380.5 MB, free: 3.582 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003685/0.1906, allocations: 1.538 MB / 382.1 MB, free: 2.016 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006057/0.1913, allocations: 0.8948 MB / 383 MB, free: 1.094 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.1914, allocations: 27.44 kB / 383 MB, free: 1.066 MB / 314.7 MB Notification: Performance of SimCode: time 1.493e-06/0.1914, allocations: 0 / 383 MB, free: 1.066 MB / 314.7 MB Notification: Performance of Templates: time 0.02366/0.2151, allocations: 13.25 MB / 396.3 MB, free: 3.82 MB / 330.7 MB