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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.68/1.68, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.927e-05/4.969e-05, allocations: 0 / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2854, allocations: 38.76 MB / 263.8 MB, free: 9.836 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.4109, allocations: 85.06 MB / 348.8 MB, free: 4.645 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.4112, allocations: 79.95 kB / 348.9 MB, free: 4.566 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3425/0.7537, allocations: 42.84 MB / 391.8 MB, free: 80.44 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.7538, allocations: 0 / 391.8 MB, free: 80.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001068/0.7539, allocations: 45.95 kB / 391.8 MB, free: 80.43 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.002868/0.7568, allocations: 1.595 MB / 393.4 MB, free: 78.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.7568, allocations: 8.031 kB / 393.4 MB, free: 78.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.7579, allocations: 289.4 kB / 393.7 MB, free: 78.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002675/0.7606, allocations: 1.2 MB / 394.9 MB, free: 77.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.444e-05/0.7608, allocations: 115 kB / 395 MB, free: 77.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.761, allocations: 159.9 kB / 395.2 MB, free: 77.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002953/0.764, allocations: 1.42 MB / 396.6 MB, free: 75.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-05/0.7641, allocations: 15.89 kB / 396.6 MB, free: 75.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001674/0.7643, allocations: 60 kB / 396.7 MB, free: 75.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.7643, allocations: 40 kB / 396.7 MB, free: 75.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.7666, allocations: 0.9504 MB / 397.6 MB, free: 74.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009466/0.7761, allocations: 6.426 MB / 404.1 MB, free: 67.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.7775, allocations: 0.5581 MB / 404.6 MB, free: 67.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008776/0.7784, allocations: 415 kB / 405 MB, free: 66.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.387e-05/0.7785, allocations: 16.55 kB / 405 MB, free: 66.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.7785, allocations: 47.06 kB / 405.1 MB, free: 66.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 4.363e-06/0.7785, allocations: 0 / 405.1 MB, free: 66.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.003929/0.7825, allocations: 1.806 MB / 406.9 MB, free: 64.94 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.7826, allocations: 115.6 kB / 407 MB, free: 64.8 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001898/0.7845, allocations: 1.086 MB / 408.1 MB, free: 63.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.3e-05/0.7846, allocations: 33.7 kB / 408.1 MB, free: 63.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005461/0.7851, allocations: 0.8669 MB / 409 MB, free: 62.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.7853, allocations: 259.8 kB / 409.3 MB, free: 62.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.7854, allocations: 24 kB / 409.3 MB, free: 62.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.7855, allocations: 353.9 kB / 409.6 MB, free: 62.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005866/0.7861, allocations: 254.6 kB / 409.9 MB, free: 61.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007702/0.7869, allocations: 0.689 MB / 410.6 MB, free: 61.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007613/0.7877, allocations: 381.8 kB / 410.9 MB, free: 60.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1e-05/0.7877, allocations: 4 kB / 410.9 MB, free: 60.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.00267/0.7904, allocations: 1.183 MB / 412.1 MB, free: 59.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.7904, allocations: 11.95 kB / 412.1 MB, free: 59.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.7905, allocations: 16 kB / 412.1 MB, free: 59.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000477/0.791, allocations: 127 kB / 412.3 MB, free: 59.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.7921, allocations: 263.6 kB / 412.5 MB, free: 59.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/0.7954, allocations: 4.204 MB / 416.7 MB, free: 54.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.7967, allocations: 67.95 kB / 416.8 MB, free: 54.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.7968, allocations: 63.94 kB / 416.9 MB, free: 54.28 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.0002024/0.7971, allocations: 180.5 kB / 417 MB, free: 54.1 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002168/0.7973, allocations: 138.3 kB / 417.2 MB, free: 53.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001854/0.7992, allocations: 0.7896 MB / 418 MB, free: 53.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.011e-06/0.7992, allocations: 8 kB / 418 MB, free: 53.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.7992, allocations: 0 / 418 MB, free: 53.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.7992, allocations: 3.984 kB / 418 MB, free: 53.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.8035, allocations: 2.271 MB / 420.2 MB, free: 50.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.8035, allocations: 4 kB / 420.2 MB, free: 50.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007762/0.8043, allocations: 135.7 kB / 420.4 MB, free: 50.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004482/0.8048, allocations: 111 kB / 420.5 MB, free: 50.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.8049, allocations: 20 kB / 420.5 MB, free: 50.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003484/0.8084, allocations: 4.332 MB / 424.8 MB, free: 45.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/0.8084, allocations: 7.938 kB / 424.8 MB, free: 45.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002441/0.8109, allocations: 1.438 MB / 426.3 MB, free: 44.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000604/0.8115, allocations: 283.3 kB / 426.6 MB, free: 43.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.8117, allocations: 20 kB / 426.6 MB, free: 43.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008375/0.8126, allocations: 47.97 kB / 426.6 MB, free: 43.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.8127, allocations: 60.38 kB / 426.7 MB, free: 43.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.797e-05/0.8128, allocations: 24 kB / 426.7 MB, free: 43.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001472/0.8143, allocations: 0.8218 MB / 427.5 MB, free: 42.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.53e-07/0.8143, allocations: 0 / 427.5 MB, free: 42.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002003/0.8163, allocations: 375.9 kB / 427.9 MB, free: 42.5 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.0006041/0.8169, allocations: 389.2 kB / 428.3 MB, free: 42.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/0.8188, allocations: 1.012 MB / 429.3 MB, free: 41.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.759e-06/0.8188, allocations: 4.562 kB / 429.3 MB, free: 41.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009503/0.8198, allocations: 0.6359 MB / 429.9 MB, free: 40.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.8218, allocations: 341.6 kB / 430.3 MB, free: 40.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/0.827, allocations: 2.31 MB / 432.6 MB, free: 37.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008019/0.8278, allocations: 1.245 MB / 433.8 MB, free: 36.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00101/0.8288, allocations: 179.7 kB / 434 MB, free: 36.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.8291, allocations: 83.44 kB / 434.1 MB, free: 36.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.611e-06/0.8292, allocations: 0 / 434.1 MB, free: 36.19 MB / 314.7 MB Notification: Performance of Templates: time 0.04456/0.8737, allocations: 19.69 MB / 453.8 MB, free: 16.55 MB / 314.7 MB