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.768/1.768, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.088e-05, allocations: 3.125 kB / 255.4 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07687/0.07692, allocations: 44.51 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3564/0.4334, allocations: 90.18 MB / 390.1 MB, free: 19.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4337, allocations: 83.31 kB / 390.1 MB, free: 19.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1639/0.5976, allocations: 44.51 MB / 434.6 MB, free: 3.836 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.942e-06/0.5976, allocations: 4 kB / 434.6 MB, free: 3.832 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001354/0.5978, allocations: 43.92 kB / 434.7 MB, free: 3.789 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.003595/0.6014, allocations: 1.594 MB / 436.3 MB, free: 2.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.6014, allocations: 12.03 kB / 436.3 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.6026, allocations: 277.5 kB / 436.6 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002866/0.6055, allocations: 1.203 MB / 437.8 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.741e-05/0.6057, allocations: 113.7 kB / 437.9 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002969/0.606, allocations: 165.9 kB / 438 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003409/0.6094, allocations: 1.427 MB / 439.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.122e-05/0.6095, allocations: 8.031 kB / 439.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.6097, allocations: 68.7 kB / 439.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.677e-05/0.6097, allocations: 36 kB / 439.6 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002571/0.6123, allocations: 0.9469 MB / 440.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.6253, allocations: 6.404 MB / 446.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.6272, allocations: 0.5633 MB / 447.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.6284, allocations: 419.2 kB / 447.9 MB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.475e-05/0.6285, allocations: 12.5 kB / 447.9 MB, free: 8.305 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.68e-05/0.6285, allocations: 39.12 kB / 448 MB, free: 8.254 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 4.14e-06/0.6285, allocations: 0 / 448 MB, free: 8.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.00487/0.6334, allocations: 1.803 MB / 449.8 MB, free: 6.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/0.6336, allocations: 111.6 kB / 449.9 MB, free: 6.266 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/0.636, allocations: 1.082 MB / 450.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.6362, allocations: 41.7 kB / 451 MB, free: 5.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008145/0.637, allocations: 0.8428 MB / 451.8 MB, free: 4.273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.6373, allocations: 256.4 kB / 452.1 MB, free: 4.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.071e-05/0.6374, allocations: 20 kB / 452.1 MB, free: 4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.6376, allocations: 354.8 kB / 452.4 MB, free: 3.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.6383, allocations: 250.6 kB / 452.7 MB, free: 3.398 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.6394, allocations: 0.6929 MB / 453.4 MB, free: 2.484 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009098/0.6404, allocations: 381.8 kB / 453.8 MB, free: 2.109 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.6404, allocations: 4 kB / 453.8 MB, free: 2.105 MB / 330.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002861/0.6433, allocations: 1.077 MB / 454.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.6433, allocations: 16.05 kB / 454.9 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.78e-05/0.6434, allocations: 20 kB / 454.9 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000551/0.6439, allocations: 114.5 kB / 455 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.6452, allocations: 263.6 kB / 455.2 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004921/0.6501, allocations: 4.211 MB / 459.5 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.6516, allocations: 56.11 kB / 459.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.6518, allocations: 56 kB / 459.6 MB, free: 11.88 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.0002795/0.6521, allocations: 184.6 kB / 459.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.6524, allocations: 146.2 kB / 459.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002284/0.6547, allocations: 0.7819 MB / 460.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.6547, allocations: 8 kB / 460.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6548, allocations: 0 / 460.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.6548, allocations: 3.984 kB / 460.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005722/0.6605, allocations: 2.26 MB / 462.9 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/0.6606, allocations: 8.062 kB / 463 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008515/0.6614, allocations: 135.7 kB / 463.1 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005259/0.662, allocations: 110.5 kB / 463.2 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.78e-05/0.6621, allocations: 20.06 kB / 463.2 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005112/0.6672, allocations: 4.325 MB / 467.5 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.6672, allocations: 7.953 kB / 467.5 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003097/0.6704, allocations: 1.438 MB / 469 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007929/0.6712, allocations: 275.4 kB / 469.3 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.6714, allocations: 19.98 kB / 469.3 MB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008578/0.6723, allocations: 48.16 kB / 469.3 MB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.6725, allocations: 64.52 kB / 469.4 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.887e-05/0.6726, allocations: 28 kB / 469.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001883/0.6745, allocations: 0.814 MB / 470.2 MB, free: 456 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.097e-06/0.6745, allocations: 0 / 470.2 MB, free: 456 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.002068/0.6766, allocations: 375.9 kB / 470.6 MB, free: 80 kB / 346.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.0007372/0.6773, allocations: 391.6 kB / 471 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002235/0.6796, allocations: 1.003 MB / 472 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.833e-06/0.6796, allocations: 4 kB / 472 MB, free: 14.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.6809, allocations: 0.6423 MB / 472.6 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/0.6832, allocations: 340.8 kB / 473 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00662/0.6899, allocations: 2.359 MB / 475.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.6912, allocations: 1.245 MB / 476.6 MB, free: 9.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004481/0.6916, allocations: 103.4 kB / 476.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of SimCode: time 1.985e-06/0.6916, allocations: 4 kB / 476.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of Templates: time 0.06101/0.7527, allocations: 39.72 MB / 0.5043 GB, free: 2.113 MB / 394.7 MB