Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.634e-05, allocations: 3.938 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2135, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.3393, allocations: 85.06 MB / 348.8 MB, free: 4.672 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.3396, allocations: 75.95 kB / 348.9 MB, free: 4.598 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3439/0.6835, allocations: 42.84 MB / 391.7 MB, free: 80.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.6835, allocations: 0 / 391.7 MB, free: 80.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001072/0.6837, allocations: 41.69 kB / 391.8 MB, free: 80.45 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002946/0.6866, allocations: 1.593 MB / 393.4 MB, free: 78.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.6867, allocations: 12.03 kB / 393.4 MB, free: 78.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.6881, allocations: 289.4 kB / 393.7 MB, free: 78.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003069/0.6912, allocations: 1.197 MB / 394.9 MB, free: 77.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.763e-05/0.6913, allocations: 119 kB / 395 MB, free: 77.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000314/0.6917, allocations: 159.9 kB / 395.1 MB, free: 77.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002924/0.6946, allocations: 1.412 MB / 396.5 MB, free: 75.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.666e-05/0.6947, allocations: 15.89 kB / 396.6 MB, free: 75.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.6949, allocations: 64 kB / 396.6 MB, free: 75.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.6949, allocations: 36 kB / 396.7 MB, free: 75.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/0.6972, allocations: 0.9543 MB / 397.6 MB, free: 74.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009744/0.707, allocations: 6.424 MB / 404 MB, free: 67.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.7084, allocations: 0.5592 MB / 404.6 MB, free: 67.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008601/0.7093, allocations: 423 kB / 405 MB, free: 66.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.957e-05/0.7094, allocations: 8.547 kB / 405 MB, free: 66.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.7094, allocations: 43.06 kB / 405.1 MB, free: 66.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.918e-06/0.7094, allocations: 0 / 405.1 MB, free: 66.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004005/0.7134, allocations: 1.803 MB / 406.9 MB, free: 64.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.7135, allocations: 119.6 kB / 407 MB, free: 64.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001912/0.7155, allocations: 1.086 MB / 408.1 MB, free: 63.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.24e-05/0.7156, allocations: 37.7 kB / 408.1 MB, free: 63.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004671/0.716, allocations: 0.8396 MB / 408.9 MB, free: 62.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.7162, allocations: 260.6 kB / 409.2 MB, free: 62.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.692e-05/0.7163, allocations: 20 kB / 409.2 MB, free: 62.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.7164, allocations: 358.8 kB / 409.6 MB, free: 62.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.717, allocations: 250.6 kB / 409.8 MB, free: 61.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007608/0.7178, allocations: 0.6968 MB / 410.5 MB, free: 61.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007459/0.7185, allocations: 385.8 kB / 410.9 MB, free: 60.67 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.7186, allocations: 4 kB / 410.9 MB, free: 60.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002409/0.721, allocations: 1.084 MB / 412 MB, free: 59.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.721, allocations: 16.55 kB / 412 MB, free: 59.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.7211, allocations: 15.94 kB / 412 MB, free: 59.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005004/0.7216, allocations: 118.5 kB / 412.1 MB, free: 59.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.7227, allocations: 267.6 kB / 412.4 MB, free: 59.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003289/0.726, allocations: 4.214 MB / 416.6 MB, free: 54.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.7275, allocations: 59.89 kB / 416.7 MB, free: 54.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.7276, allocations: 55.95 kB / 416.7 MB, free: 54.41 MB / 314.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.0002093/0.7279, allocations: 184.6 kB / 416.9 MB, free: 54.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.7281, allocations: 138.3 kB / 417 MB, free: 54.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.73, allocations: 0.7897 MB / 417.8 MB, free: 53.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.73, allocations: 8 kB / 417.8 MB, free: 53.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.223e-06/0.73, allocations: 0 / 417.8 MB, free: 53.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.73, allocations: 3.984 kB / 417.8 MB, free: 53.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004495/0.7345, allocations: 2.269 MB / 420.1 MB, free: 50.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.7346, allocations: 8.156 kB / 420.1 MB, free: 50.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007625/0.7354, allocations: 139.7 kB / 420.2 MB, free: 50.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004788/0.7359, allocations: 116.6 kB / 420.4 MB, free: 50.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.7359, allocations: 19.98 kB / 420.4 MB, free: 50.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00348/0.7394, allocations: 4.312 MB / 424.7 MB, free: 45.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.069e-06/0.7395, allocations: 8.062 kB / 424.7 MB, free: 45.9 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002456/0.7419, allocations: 1.453 MB / 426.1 MB, free: 44.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006086/0.7426, allocations: 279.5 kB / 426.4 MB, free: 43.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.7428, allocations: 16 kB / 426.4 MB, free: 43.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008379/0.7437, allocations: 47.97 kB / 426.5 MB, free: 43.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.7438, allocations: 68.36 kB / 426.5 MB, free: 43.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.778e-05/0.7439, allocations: 20 kB / 426.6 MB, free: 43.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001455/0.7454, allocations: 0.8179 MB / 427.4 MB, free: 42.99 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.7454, allocations: 0 / 427.4 MB, free: 42.99 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001722/0.7471, allocations: 375.9 kB / 427.8 MB, free: 42.62 MB / 314.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.000556/0.7477, allocations: 398.3 kB / 428.1 MB, free: 42.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/0.7495, allocations: 1.014 MB / 429.2 MB, free: 41.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.915e-06/0.7495, allocations: 4 kB / 429.2 MB, free: 41.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.7505, allocations: 0.627 MB / 429.8 MB, free: 40.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.7525, allocations: 340.2 kB / 430.1 MB, free: 40.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005371/0.7579, allocations: 2.36 MB / 432.5 MB, free: 37.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008434/0.7587, allocations: 1.245 MB / 433.7 MB, free: 36.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.7592, allocations: 99.42 kB / 433.8 MB, free: 36.43 MB / 314.7 MB Notification: Performance of SimCode: time 2.503e-06/0.7592, allocations: 0 / 433.8 MB, free: 36.43 MB / 314.7 MB Notification: Performance of Templates: time 0.04725/0.8065, allocations: 39.77 MB / 473.6 MB, free: 12.64 MB / 330.7 MB