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_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.787/1.787, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.456e-05, allocations: 7.203 kB / 255.3 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07839/0.07844, allocations: 44.5 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.4146, allocations: 90.18 MB / 390 MB, free: 19.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4149, allocations: 84.72 kB / 390.1 MB, free: 19.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1543/0.5692, allocations: 44.52 MB / 434.6 MB, free: 3.773 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.117e-06/0.5692, allocations: 0 / 434.6 MB, free: 3.773 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.664e-05/0.5694, allocations: 39.94 kB / 434.7 MB, free: 3.734 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.002929/0.5723, allocations: 1.592 MB / 436.3 MB, free: 2.199 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.5724, allocations: 12.03 kB / 436.3 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.5735, allocations: 281.5 kB / 436.5 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.5763, allocations: 1.201 MB / 437.7 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-05/0.5764, allocations: 112.6 kB / 437.8 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002586/0.5767, allocations: 162.4 kB / 438 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.5797, allocations: 1.435 MB / 439.4 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.831e-05/0.5798, allocations: 8.328 kB / 439.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.58, allocations: 68.02 kB / 439.5 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.771e-05/0.58, allocations: 40 kB / 439.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002438/0.5825, allocations: 0.9679 MB / 440.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01164/0.5941, allocations: 6.411 MB / 446.9 MB, free: 9.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.5958, allocations: 0.5647 MB / 447.5 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/0.5969, allocations: 419 kB / 447.9 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-05/0.5969, allocations: 16.64 kB / 447.9 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.597, allocations: 39.12 kB / 448 MB, free: 8.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.76e-06/0.597, allocations: 0 / 448 MB, free: 8.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.00434/0.6013, allocations: 1.799 MB / 449.8 MB, free: 6.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/0.6014, allocations: 111.6 kB / 449.9 MB, free: 6.184 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/0.6036, allocations: 1.082 MB / 451 MB, free: 5.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.002e-05/0.6037, allocations: 41.7 kB / 451 MB, free: 5.043 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007515/0.6045, allocations: 0.835 MB / 451.8 MB, free: 4.199 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002657/0.6047, allocations: 260.4 kB / 452.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/0.6048, allocations: 24 kB / 452.1 MB, free: 3.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.605, allocations: 350.8 kB / 452.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000639/0.6057, allocations: 258.6 kB / 452.7 MB, free: 3.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.6068, allocations: 0.6993 MB / 453.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.6076, allocations: 381.8 kB / 453.8 MB, free: 2.023 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/0.6077, allocations: 4 kB / 453.8 MB, free: 2.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002763/0.6104, allocations: 1.12 MB / 454.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.6105, allocations: 16.12 kB / 454.9 MB, free: 0.8711 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/0.6105, allocations: 15.98 kB / 454.9 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005145/0.611, allocations: 126.5 kB / 455.1 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.6122, allocations: 267.6 kB / 455.3 MB, free: 472 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004722/0.617, allocations: 4.212 MB / 459.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.6183, allocations: 59.88 kB / 459.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.6184, allocations: 60.06 kB / 459.6 MB, free: 11.72 MB / 346.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.0002637/0.6187, allocations: 180.5 kB / 459.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.619, allocations: 138.3 kB / 460 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002098/0.6211, allocations: 0.7781 MB / 460.7 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.353e-06/0.6211, allocations: 4 kB / 460.7 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.6211, allocations: 4 kB / 460.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/0.6211, allocations: 11.92 kB / 460.8 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.6262, allocations: 2.272 MB / 463 MB, free: 8.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.6263, allocations: 4 kB / 463 MB, free: 8.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008236/0.6271, allocations: 131.8 kB / 463.2 MB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004826/0.6276, allocations: 110.5 kB / 463.3 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/0.6277, allocations: 23.98 kB / 463.3 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004947/0.6327, allocations: 4.325 MB / 467.6 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.168e-05/0.6327, allocations: 7.953 kB / 467.6 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/0.6355, allocations: 1.438 MB / 469.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006545/0.6362, allocations: 275.4 kB / 469.3 MB, free: 1.27 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/0.6364, allocations: 23.98 kB / 469.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008371/0.6373, allocations: 39.97 kB / 469.4 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.6375, allocations: 68.38 kB / 469.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.675e-05/0.6375, allocations: 20 kB / 469.5 MB, free: 1.121 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001677/0.6392, allocations: 0.8179 MB / 470.3 MB, free: 308 kB / 346.7 MB Notification: Performance of sort global known variables: time 8.93e-07/0.6393, allocations: 0 / 470.3 MB, free: 308 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.001759/0.641, allocations: 380 kB / 470.7 MB, free: 15.93 MB / 362.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.0006505/0.6417, allocations: 384.5 kB / 471 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.6438, allocations: 1.049 MB / 472.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6439, allocations: 4.125 kB / 472.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.6451, allocations: 0.6707 MB / 472.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.6469, allocations: 334.4 kB / 473.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005864/0.6528, allocations: 2.372 MB / 475.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001215/0.654, allocations: 1.249 MB / 476.7 MB, free: 9.699 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.6544, allocations: 95.42 kB / 476.8 MB, free: 9.605 MB / 362.7 MB Notification: Performance of SimCode: time 1.67e-06/0.6544, allocations: 4 kB / 476.8 MB, free: 9.602 MB / 362.7 MB Notification: Performance of Templates: time 0.05834/0.7128, allocations: 39.83 MB / 0.5045 GB, free: 1.762 MB / 394.7 MB