Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 2.273/2.273, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.675e-05/2.673e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01062/0.122, allocations: 6.395 MB / 351.4 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005753/0.1278, allocations: 2.379 MB / 353.8 MB, free: 144 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.129, allocations: 35.94 kB / 353.8 MB, free: 108 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.1306, allocations: 393.7 kB / 354.2 MB, free: 15.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001994/0.1326, allocations: 450.6 kB / 354.6 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007445/0.1334, allocations: 155.8 kB / 354.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.1359, allocations: 0.8349 MB / 355.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007013/0.1366, allocations: 308.2 kB / 355.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007871/0.1374, allocations: 378.9 kB / 356.3 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007844/0.1382, allocations: 434.4 kB / 356.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004033/0.1387, allocations: 83.97 kB / 356.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001955/0.1389, allocations: 48 kB / 356.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1391, allocations: 167.1 kB / 357 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003229/0.1394, allocations: 112 kB / 357.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002042/0.1415, allocations: 1.324 MB / 358.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1415, allocations: 0 / 358.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1415, allocations: 0 / 358.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.994e-05/0.1416, allocations: 0 / 358.4 MB, free: 11.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002846/0.1444, allocations: 1.158 MB / 359.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.1445, allocations: 8.031 kB / 359.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009347/0.1454, allocations: 178.4 kB / 359.8 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.1473, allocations: 0.7114 MB / 360.5 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.639e-05/0.1474, allocations: 74 kB / 360.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/0.1476, allocations: 96 kB / 360.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.1503, allocations: 0.9385 MB / 361.6 MB, free: 8.176 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.196e-05/0.1504, allocations: 3.906 kB / 361.6 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.1505, allocations: 51.94 kB / 361.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.223e-05/0.1505, allocations: 24 kB / 361.7 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002386/0.1529, allocations: 0.6559 MB / 362.3 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008616/0.1616, allocations: 3.915 MB / 366.2 MB, free: 3.301 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.1629, allocations: 447.8 kB / 366.7 MB, free: 2.836 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.377e-05/0.163, allocations: 7.984 kB / 366.7 MB, free: 2.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.1631, allocations: 42.56 kB / 366.7 MB, free: 2.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.1631, allocations: 0 / 366.7 MB, free: 2.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004682/0.1678, allocations: 1.445 MB / 368.2 MB, free: 1.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.1679, allocations: 81.11 kB / 368.2 MB, free: 1.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.1694, allocations: 0.684 MB / 368.9 MB, free: 480 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.821e-05/0.1696, allocations: 33.7 kB / 369 MB, free: 440 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000576/0.1702, allocations: 0.5825 MB / 369.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.1704, allocations: 161.7 kB / 369.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.1705, allocations: 12 kB / 369.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.1706, allocations: 342.8 kB / 370 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006468/0.1713, allocations: 173.9 kB / 370.2 MB, free: 15.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008536/0.1722, allocations: 471.6 kB / 370.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008106/0.173, allocations: 247.6 kB / 370.9 MB, free: 14.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.173, allocations: 4 kB / 370.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002153/0.1752, allocations: 0.7249 MB / 371.6 MB, free: 13.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.1753, allocations: 12 kB / 371.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.1753, allocations: 8 kB / 371.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.1757, allocations: 73.88 kB / 371.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/0.1768, allocations: 163.7 kB / 371.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003149/0.18, allocations: 2.81 MB / 374.7 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.181, allocations: 35.98 kB / 374.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.1811, allocations: 36 kB / 374.8 MB, free: 10.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006296/0.1818, allocations: 257.6 kB / 375 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002354/0.182, allocations: 90.88 kB / 375.1 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.1837, allocations: 0.4954 MB / 375.6 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.1837, allocations: 4 kB / 375.6 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.1837, allocations: 0 / 375.6 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.1837, allocations: 4 kB / 375.6 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/0.1872, allocations: 1.422 MB / 377 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.1873, allocations: 4 kB / 377 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006523/0.188, allocations: 75.91 kB / 377.1 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002831/0.1883, allocations: 61.89 kB / 377.2 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.381e-05/0.1883, allocations: 12 kB / 377.2 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002897/0.1912, allocations: 2.794 MB / 380 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.1913, allocations: 8.094 kB / 380 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/0.1936, allocations: 0.8794 MB / 380.9 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004637/0.1941, allocations: 188.1 kB / 381.1 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.1943, allocations: 15.95 kB / 381.1 MB, free: 3.387 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007126/0.195, allocations: 31.98 kB / 381.1 MB, free: 3.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.1952, allocations: 31.95 kB / 381.1 MB, free: 3.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.1952, allocations: 19.98 kB / 381.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.1964, allocations: 0.5186 MB / 381.7 MB, free: 2.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1964, allocations: 3.938 kB / 381.7 MB, free: 2.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001299/0.1977, allocations: 208 kB / 381.9 MB, free: 2.586 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003401/0.1981, allocations: 135.1 kB / 382 MB, free: 2.441 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.2001, allocations: 0.6942 MB / 382.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.2002, allocations: 128 / 382.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001144/0.2014, allocations: 448.9 kB / 383.1 MB, free: 1.258 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.2032, allocations: 214.5 kB / 383.3 MB, free: 1.051 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.2084, allocations: 2.156 MB / 385.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008637/0.2093, allocations: 1.032 MB / 386.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003274/0.2097, allocations: 59.44 kB / 386.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.2097, allocations: 0 / 386.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of Templates: time 0.313/0.5227, allocations: 19.97 MB / 406.6 MB, free: 49.24 MB / 330.7 MB