Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.816/1.816, allocations: 171.1 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.134e-05, allocations: 2.188 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0942/0.09426, allocations: 38.78 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01307/0.1074, allocations: 5.546 MB / 272.4 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006421/0.1139, allocations: 2.07 MB / 274.5 MB, free: 9.457 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.115, allocations: 31.94 kB / 274.6 MB, free: 9.426 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.1167, allocations: 350 kB / 274.9 MB, free: 9.082 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001867/0.1186, allocations: 362.9 kB / 275.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007433/0.1194, allocations: 123.8 kB / 275.4 MB, free: 8.605 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002167/0.1216, allocations: 0.6713 MB / 276 MB, free: 7.934 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00066/0.1223, allocations: 254.2 kB / 276.3 MB, free: 7.684 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006526/0.1229, allocations: 295.1 kB / 276.6 MB, free: 7.395 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006412/0.1236, allocations: 338.7 kB / 276.9 MB, free: 7.062 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003731/0.124, allocations: 75.98 kB / 277 MB, free: 6.988 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001401/0.1241, allocations: 32 kB / 277 MB, free: 6.957 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1243, allocations: 131.4 kB / 277.1 MB, free: 6.828 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002804/0.1246, allocations: 92 kB / 277.2 MB, free: 6.738 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002001/0.1266, allocations: 1.079 MB / 278.3 MB, free: 5.656 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1267, allocations: 0 / 278.3 MB, free: 5.656 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.479e-06/0.1267, allocations: 0 / 278.3 MB, free: 5.656 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.361e-05/0.1268, allocations: 0 / 278.3 MB, free: 5.656 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.0027/0.1295, allocations: 0.9905 MB / 279.3 MB, free: 4.613 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1296, allocations: 12.03 kB / 279.3 MB, free: 4.602 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006954/0.1303, allocations: 126.7 kB / 279.4 MB, free: 4.477 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001624/0.1319, allocations: 0.6134 MB / 280 MB, free: 3.82 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.305e-05/0.132, allocations: 62 kB / 280.1 MB, free: 3.758 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001971/0.1322, allocations: 79.98 kB / 280.2 MB, free: 3.68 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.1345, allocations: 0.7676 MB / 281 MB, free: 2.883 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/0.1346, allocations: 11.91 kB / 281 MB, free: 2.871 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.1347, allocations: 32 kB / 281 MB, free: 2.84 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.1348, allocations: 23.98 kB / 281 MB, free: 2.816 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.1366, allocations: 0.5192 MB / 281.5 MB, free: 2.297 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006602/0.1433, allocations: 3.356 MB / 284.9 MB, free: 14.74 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008173/0.1441, allocations: 230.5 kB / 285.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.1442, allocations: 7.984 kB / 285.1 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.1443, allocations: 46.52 kB / 285.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 2.695e-06/0.1443, allocations: 0 / 285.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=28): time 0.003271/0.1476, allocations: 1.064 MB / 286.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.1477, allocations: 89.09 kB / 286.3 MB, free: 13.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.1489, allocations: 0.5934 MB / 286.9 MB, free: 12.6 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.1489, allocations: 33.7 kB / 287 MB, free: 12.56 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.1494, allocations: 0.5007 MB / 287.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1496, allocations: 114.5 kB / 287.6 MB, free: 11.94 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.1496, allocations: 8 kB / 287.6 MB, free: 11.93 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1498, allocations: 342.8 kB / 287.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004844/0.1503, allocations: 121.2 kB / 288 MB, free: 11.47 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007519/0.151, allocations: 422.2 kB / 288.4 MB, free: 10.92 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.1517, allocations: 200 kB / 288.6 MB, free: 10.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.1517, allocations: 4 kB / 288.6 MB, free: 10.72 MB / 250.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001876/0.1536, allocations: 0.5764 MB / 289.2 MB, free: 10.14 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.1537, allocations: 8 kB / 289.2 MB, free: 10.13 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.1537, allocations: 12 kB / 289.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/0.1539, allocations: 32.84 kB / 289.3 MB, free: 10.08 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008703/0.1548, allocations: 139.8 kB / 289.4 MB, free: 9.945 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.1562, allocations: 1.299 MB / 290.7 MB, free: 8.516 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007606/0.157, allocations: 36.23 kB / 290.7 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-05/0.1571, allocations: 32 kB / 290.8 MB, free: 8.449 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005525/0.1576, allocations: 237.5 kB / 291 MB, free: 8.207 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.1578, allocations: 71.06 kB / 291.1 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.1589, allocations: 337.4 kB / 291.4 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.159, allocations: 0 / 291.4 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.159, allocations: 4 kB / 291.4 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.159, allocations: 3.984 kB / 291.4 MB, free: 7.777 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.1616, allocations: 1.084 MB / 292.5 MB, free: 6.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1616, allocations: 0 / 292.5 MB, free: 6.613 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.1622, allocations: 63.91 kB / 292.6 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.1623, allocations: 21.06 kB / 292.6 MB, free: 6.527 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.1624, allocations: 15.94 kB / 292.6 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.1639, allocations: 1.28 MB / 293.9 MB, free: 5.102 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1639, allocations: 4.031 kB / 293.9 MB, free: 5.098 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.1657, allocations: 0.654 MB / 294.5 MB, free: 4.359 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.1661, allocations: 164.2 kB / 294.7 MB, free: 4.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.1662, allocations: 15.92 kB / 294.7 MB, free: 4.164 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.1668, allocations: 23.98 kB / 294.7 MB, free: 4.141 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.1669, allocations: 31.86 kB / 294.8 MB, free: 4.109 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.1669, allocations: 4.094 kB / 294.8 MB, free: 4.105 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009665/0.1679, allocations: 471 kB / 295.2 MB, free: 3.652 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.1679, allocations: 0 / 295.2 MB, free: 3.652 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001049/0.169, allocations: 152 kB / 295.4 MB, free: 3.504 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002935/0.1693, allocations: 119.4 kB / 295.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.1709, allocations: 478.3 kB / 296 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.1709, allocations: 0 / 296 MB, free: 2.902 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.1716, allocations: 252.5 kB / 296.2 MB, free: 2.645 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.1731, allocations: 151 kB / 296.3 MB, free: 2.496 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.1772, allocations: 1.775 MB / 298.1 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2185/0.3957, allocations: 0.9558 MB / 299.1 MB, free: 28.94 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.396, allocations: 49.28 kB / 299.1 MB, free: 28.93 MB / 250.7 MB Notification: Performance of SimCode: time 9.72e-07/0.396, allocations: 0.8125 kB / 299.1 MB, free: 28.93 MB / 250.7 MB Notification: Performance of Templates: time 0.0287/0.4248, allocations: 12.6 MB / 311.7 MB, free: 24.55 MB / 250.7 MB