Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.111e-05, allocations: 4 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2126, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.3457, allocations: 89.24 MB / 353 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.346, allocations: 79.95 kB / 353.1 MB, free: 428 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3262/0.6723, allocations: 30.31 MB / 383.4 MB, free: 84.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.265e-06/0.6724, allocations: 0 / 383.4 MB, free: 84.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001423/0.6725, allocations: 30.78 kB / 383.4 MB, free: 84.2 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004527/0.6771, allocations: 1.353 MB / 384.8 MB, free: 83.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.6772, allocations: 9.938 kB / 384.8 MB, free: 83.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.6787, allocations: 203 kB / 385 MB, free: 83.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003654/0.6824, allocations: 0.8408 MB / 385.8 MB, free: 82.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.6827, allocations: 117.9 kB / 385.9 MB, free: 82.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000358/0.6831, allocations: 108.6 kB / 386 MB, free: 82.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004221/0.6873, allocations: 1.075 MB / 387.1 MB, free: 82 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-05/0.6875, allocations: 3.906 kB / 387.1 MB, free: 81.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002459/0.6877, allocations: 46.66 kB / 387.2 MB, free: 81.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.19e-05/0.6878, allocations: 28.16 kB / 387.2 MB, free: 81.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.6912, allocations: 0.6773 MB / 387.9 MB, free: 81.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009699/0.7009, allocations: 3.904 MB / 391.8 MB, free: 79.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.7026, allocations: 0.5365 MB / 392.3 MB, free: 78.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005052/0.7032, allocations: 250.7 kB / 392.6 MB, free: 78.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.526e-05/0.7033, allocations: 12.47 kB / 392.6 MB, free: 78.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005726/0.7038, allocations: 267.5 kB / 392.8 MB, free: 78.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.029e-06/0.7039, allocations: 0 / 392.8 MB, free: 78.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.00347/0.7073, allocations: 1.49 MB / 394.3 MB, free: 76.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.7075, allocations: 475.2 kB / 394.8 MB, free: 76.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/0.7091, allocations: 0.9084 MB / 395.7 MB, free: 75.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001065/0.7092, allocations: 41.7 kB / 395.7 MB, free: 75.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004062/0.7097, allocations: 0.6247 MB / 396.4 MB, free: 74.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001912/0.7099, allocations: 238.9 kB / 396.6 MB, free: 74.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.321e-05/0.7099, allocations: 20 kB / 396.6 MB, free: 74.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.598e-05/0.71, allocations: 356.4 kB / 397 MB, free: 74.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005183/0.7106, allocations: 214.6 kB / 397.2 MB, free: 74.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007534/0.7113, allocations: 0.6743 MB / 397.8 MB, free: 73.28 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006926/0.712, allocations: 381.5 kB / 398.2 MB, free: 72.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.819e-06/0.7121, allocations: 4 kB / 398.2 MB, free: 72.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002127/0.7142, allocations: 0.9778 MB / 399.2 MB, free: 71.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.7143, allocations: 74.39 kB / 399.3 MB, free: 71.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.7143, allocations: 15.81 kB / 399.3 MB, free: 71.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/0.715, allocations: 167.2 kB / 399.4 MB, free: 71.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009019/0.7159, allocations: 214.4 kB / 399.7 MB, free: 71.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/0.7201, allocations: 3.521 MB / 403.2 MB, free: 67.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.7215, allocations: 80.03 kB / 403.3 MB, free: 67.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.7216, allocations: 44.12 kB / 403.3 MB, free: 67.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {5 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002252/0.7218, allocations: 188.7 kB / 403.5 MB, free: 67.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.722, allocations: 122.5 kB / 403.6 MB, free: 67.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.7236, allocations: 0.6606 MB / 404.3 MB, free: 66.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.114e-06/0.7237, allocations: 4 kB / 404.3 MB, free: 66.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.29e-06/0.7237, allocations: 4 kB / 404.3 MB, free: 66.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/0.7249, allocations: 0.8905 MB / 405.2 MB, free: 65.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.7283, allocations: 1.719 MB / 406.9 MB, free: 63.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.613e-06/0.7284, allocations: 4 kB / 406.9 MB, free: 63.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007008/0.7291, allocations: 107.9 kB / 407 MB, free: 63.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005474/0.7296, allocations: 133.8 kB / 407.1 MB, free: 63.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.679e-05/0.7297, allocations: 19.94 kB / 407.1 MB, free: 63.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.733, allocations: 3.267 MB / 410.4 MB, free: 60.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.7331, allocations: 8.25 kB / 410.4 MB, free: 60.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.7351, allocations: 1.078 MB / 411.5 MB, free: 58.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/0.7357, allocations: 247.6 kB / 411.7 MB, free: 58.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001987/0.7359, allocations: 24 kB / 411.8 MB, free: 58.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007607/0.7367, allocations: 39.97 kB / 411.8 MB, free: 58.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.7368, allocations: 60.48 kB / 411.9 MB, free: 58.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.313e-05/0.7369, allocations: 23.92 kB / 411.9 MB, free: 58.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.7381, allocations: 0.6903 MB / 412.6 MB, free: 57.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.7381, allocations: 0 / 412.6 MB, free: 57.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001557/0.7397, allocations: 355.9 kB / 412.9 MB, free: 57.49 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005338/0.7402, allocations: 346.6 kB / 413.3 MB, free: 57.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.7422, allocations: 0.9992 MB / 414.3 MB, free: 56.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7423, allocations: 4 kB / 414.3 MB, free: 56.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009014/0.7432, allocations: 0.502 MB / 414.8 MB, free: 55.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.7449, allocations: 292.9 kB / 415 MB, free: 55.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003625/0.7485, allocations: 1.659 MB / 416.7 MB, free: 53.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/0.7492, allocations: 1.109 MB / 417.8 MB, free: 52.47 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.7495, allocations: 83.44 kB / 417.9 MB, free: 52.39 MB / 314.7 MB Notification: Performance of SimCode: time 1.869e-06/0.7495, allocations: 0 / 417.9 MB, free: 52.39 MB / 314.7 MB Notification: Performance of Templates: time 0.0321/0.7817, allocations: 25.53 MB / 443.4 MB, free: 26.86 MB / 314.7 MB