Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.04e-05, allocations: 0 / 292.7 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09193/0.092, allocations: 50.42 MB / 343.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4278/0.5198, allocations: 96.14 MB / 439.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.5201, allocations: 82.45 kB / 439.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1776/0.6977, allocations: 44.67 MB / 484 MB, free: 5.625 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.859e-06/0.6978, allocations: 0 / 484 MB, free: 5.625 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001287/0.6979, allocations: 44 kB / 484 MB, free: 5.582 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003782/0.7017, allocations: 1.596 MB / 485.6 MB, free: 3.934 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.7018, allocations: 8.031 kB / 485.6 MB, free: 3.926 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001386/0.7032, allocations: 281.5 kB / 485.9 MB, free: 3.648 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003575/0.7068, allocations: 1.212 MB / 487.1 MB, free: 2.379 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/0.707, allocations: 115.1 kB / 487.2 MB, free: 2.266 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.7073, allocations: 159.8 kB / 487.4 MB, free: 2.109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003557/0.7109, allocations: 1.412 MB / 488.8 MB, free: 0.6367 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.998e-05/0.711, allocations: 7.938 kB / 488.8 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.7112, allocations: 67.98 kB / 488.9 MB, free: 0.5625 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/0.7113, allocations: 36 kB / 488.9 MB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002664/0.7139, allocations: 0.9466 MB / 489.9 MB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/0.7265, allocations: 6.404 MB / 496.3 MB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.7283, allocations: 0.5595 MB / 496.8 MB, free: 8.289 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.7293, allocations: 419 kB / 497.2 MB, free: 7.879 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.566e-05/0.7294, allocations: 12.55 kB / 497.2 MB, free: 7.867 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.7295, allocations: 43.12 kB / 497.3 MB, free: 7.816 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.938e-06/0.7295, allocations: 3.938 kB / 497.3 MB, free: 7.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.004797/0.7343, allocations: 1.795 MB / 499.1 MB, free: 5.957 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/0.7344, allocations: 115.5 kB / 499.2 MB, free: 5.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/0.7368, allocations: 1.09 MB / 0.4886 GB, free: 4.719 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.7369, allocations: 37.7 kB / 0.4886 GB, free: 4.676 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008923/0.7378, allocations: 0.8569 MB / 0.4894 GB, free: 3.809 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.7381, allocations: 260.4 kB / 0.4897 GB, free: 3.551 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.262e-05/0.7382, allocations: 20 kB / 0.4897 GB, free: 3.531 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.7385, allocations: 349.9 kB / 0.49 GB, free: 3.184 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.7391, allocations: 250.6 kB / 0.4903 GB, free: 2.938 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.7402, allocations: 0.6968 MB / 0.4909 GB, free: 2.027 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008929/0.7411, allocations: 373.8 kB / 0.4913 GB, free: 1.664 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.7411, allocations: 4 kB / 0.4913 GB, free: 1.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003116/0.7443, allocations: 1.177 MB / 0.4925 GB, free: 476 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.7443, allocations: 12.59 kB / 0.4925 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.7444, allocations: 16 kB / 0.4925 GB, free: 448 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005432/0.7449, allocations: 122.5 kB / 0.4926 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.7461, allocations: 259.6 kB / 0.4929 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004968/0.7511, allocations: 4.216 MB / 0.497 GB, free: 11.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.7526, allocations: 59.84 kB / 0.497 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.7527, allocations: 56.11 kB / 0.4971 GB, free: 11.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002816/0.753, allocations: 184.5 kB / 0.4973 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002934/0.7533, allocations: 146.3 kB / 0.4974 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.7555, allocations: 0.778 MB / 0.4982 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.7555, allocations: 8 kB / 0.4982 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.682e-06/0.7556, allocations: 0 / 0.4982 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.7556, allocations: 7.938 kB / 0.4982 GB, free: 10.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005432/0.761, allocations: 2.252 MB / 0.5004 GB, free: 7.801 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.7611, allocations: 4.469 kB / 0.5004 GB, free: 7.797 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008165/0.7619, allocations: 135.8 kB / 0.5005 GB, free: 7.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005196/0.7624, allocations: 106.5 kB / 0.5006 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.806e-05/0.7625, allocations: 24 kB / 0.5006 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005161/0.7677, allocations: 4.325 MB / 0.5049 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.7677, allocations: 7.938 kB / 0.5049 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003051/0.7708, allocations: 1.428 MB / 0.5063 GB, free: 1.176 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008003/0.7716, allocations: 283.4 kB / 0.5065 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000228/0.7719, allocations: 19.94 kB / 0.5065 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/0.7728, allocations: 51.92 kB / 0.5066 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.7729, allocations: 60.42 kB / 0.5066 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.837e-05/0.773, allocations: 24 kB / 0.5067 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001781/0.7748, allocations: 0.8141 MB / 0.5075 GB, free: 15.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.63e-07/0.7748, allocations: 0 / 0.5075 GB, free: 15.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00188/0.7767, allocations: 383.9 kB / 0.5078 GB, free: 15.53 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007066/0.7774, allocations: 393.9 kB / 0.5082 GB, free: 15.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.7797, allocations: 1.004 MB / 0.5092 GB, free: 14.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.942e-06/0.7797, allocations: 4 kB / 0.5092 GB, free: 14.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.781, allocations: 0.6453 MB / 0.5098 GB, free: 13.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.7831, allocations: 329 kB / 0.5101 GB, free: 13.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006122/0.7892, allocations: 2.313 MB / 0.5124 GB, free: 10.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.7906, allocations: 1.253 MB / 0.5136 GB, free: 9.445 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001156/0.7917, allocations: 179.7 kB / 0.5138 GB, free: 9.266 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003275/0.7921, allocations: 91.42 kB / 0.5139 GB, free: 9.176 MB / 442.7 MB Notification: Performance of SimCode: time 1.671e-06/0.7921, allocations: 0 / 0.5139 GB, free: 9.176 MB / 442.7 MB Notification: Performance of Templates: time 0.2919/1.084, allocations: 19.51 MB / 0.5329 GB, free: 117.3 MB / 442.7 MB