Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.485e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.251, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.3851, allocations: 87.94 MB / 382.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.3855, allocations: 83.94 kB / 382.1 MB, free: 9.945 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0918/0.4773, allocations: 22.62 MB / 404.8 MB, free: 3.168 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.078e-06/0.4773, allocations: 0 / 404.8 MB, free: 3.168 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.776e-05/0.4774, allocations: 20 kB / 404.8 MB, free: 3.148 MB / 346.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.001957/0.4794, allocations: 0.9652 MB / 405.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4794, allocations: 8.031 kB / 405.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006643/0.4801, allocations: 154.6 kB / 405.9 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.4818, allocations: 0.6803 MB / 406.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.421e-05/0.4819, allocations: 24 kB / 406.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.4821, allocations: 52 kB / 406.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001185/0.4833, allocations: 427.9 kB / 407.1 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.4848, allocations: 0.6311 MB / 407.7 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.4849, allocations: 7.844 kB / 407.7 MB, free: 96 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-05/0.485, allocations: 4 kB / 407.7 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.485, allocations: 16 kB / 407.7 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006278/0.4913, allocations: 3.307 MB / 411 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.4918, allocations: 190.6 kB / 411.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.4921, allocations: 88.8 kB / 411.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.4921, allocations: 8 kB / 411.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4922, allocations: 38.56 kB / 411.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 3.581e-06/0.4922, allocations: 0 / 411.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001876/0.4941, allocations: 0.7466 MB / 412.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.4942, allocations: 85.33 kB / 412.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009784/0.4951, allocations: 0.5191 MB / 412.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.4952, allocations: 29.7 kB / 412.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/0.4957, allocations: 0.5237 MB / 413.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4958, allocations: 98.56 kB / 413.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.4958, allocations: 0 / 413.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.496, allocations: 338.8 kB / 413.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.4963, allocations: 97.56 kB / 413.8 MB, free: 9.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005067/0.4968, allocations: 381.9 kB / 414.1 MB, free: 9.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.4972, allocations: 167.8 kB / 414.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.029e-06/0.4972, allocations: 0 / 414.3 MB, free: 9.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001105/0.4983, allocations: 466.5 kB / 414.8 MB, free: 8.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.4984, allocations: 16.17 kB / 414.8 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.4984, allocations: 12 kB / 414.8 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001847/0.4986, allocations: 32.86 kB / 414.8 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006043/0.4992, allocations: 143.7 kB / 415 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.5005, allocations: 1.24 MB / 416.2 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006673/0.5012, allocations: 31.84 kB / 416.2 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.5013, allocations: 36.06 kB / 416.3 MB, free: 6.938 MB / 362.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 (74): * Single equations (assignments): 73 * 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.0001734/0.5015, allocations: 140.5 kB / 416.4 MB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.5016, allocations: 59.25 kB / 416.5 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006767/0.5023, allocations: 265 kB / 416.7 MB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.481e-06/0.5023, allocations: 4 kB / 416.7 MB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.504e-06/0.5024, allocations: 3.953 kB / 416.7 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.116e-06/0.5024, allocations: 0 / 416.7 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.5043, allocations: 0.9149 MB / 417.6 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.5043, allocations: 4.219 kB / 417.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.5047, allocations: 63.91 kB / 417.7 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000129/0.5049, allocations: 24.84 kB / 417.7 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.5049, allocations: 7.938 kB / 417.7 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.5062, allocations: 1.221 MB / 419 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.087e-06/0.5062, allocations: 3.938 kB / 419 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.5071, allocations: 0.5601 MB / 419.5 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003178/0.5075, allocations: 160.3 kB / 419.7 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.51e-05/0.5076, allocations: 0 / 419.7 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.508, allocations: 19.98 kB / 419.7 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.704e-05/0.5081, allocations: 27.92 kB / 419.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.5082, allocations: 8 kB / 419.7 MB, free: 3.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007318/0.5089, allocations: 399.2 kB / 420.1 MB, free: 2.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.59e-07/0.5089, allocations: 4 kB / 420.1 MB, free: 2.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009361/0.5099, allocations: 144 kB / 420.3 MB, free: 2.629 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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.0004618/0.5103, allocations: 258.2 kB / 420.5 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008705/0.5112, allocations: 391 kB / 420.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.921e-06/0.5112, allocations: 0 / 420.9 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003864/0.5116, allocations: 210.9 kB / 421.1 MB, free: 1.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009574/0.5126, allocations: 144.2 kB / 421.3 MB, free: 1.621 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.5151, allocations: 1.045 MB / 422.3 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2014/0.7166, allocations: 0.9538 MB / 423.3 MB, free: 99.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.7168, allocations: 48.34 kB / 423.3 MB, free: 99.1 MB / 362.7 MB Notification: Performance of SimCode: time 2.242e-06/0.7168, allocations: 0.5 kB / 423.3 MB, free: 99.1 MB / 362.7 MB Notification: Performance of Templates: time 0.02086/0.7377, allocations: 13.19 MB / 436.5 MB, free: 98.59 MB / 362.7 MB