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.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.973e-05, allocations: 6.25 kB / 269.4 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.082, allocations: 47.57 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4273, allocations: 94.75 MB / 411.7 MB, free: 9.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.4276, allocations: 83.39 kB / 411.8 MB, free: 9.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1746/0.6022, allocations: 44.68 MB / 456.4 MB, free: 3.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.493e-06/0.6023, allocations: 0 / 456.4 MB, free: 3.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001305/0.6024, allocations: 32 kB / 456.5 MB, free: 3.816 MB / 362.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.003837/0.6063, allocations: 1.604 MB / 458.1 MB, free: 2.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.6063, allocations: 8.031 kB / 458.1 MB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/0.6076, allocations: 281.8 kB / 458.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/0.6108, allocations: 1.208 MB / 459.6 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.611, allocations: 119.1 kB / 459.7 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003038/0.6113, allocations: 159.8 kB / 459.8 MB, free: 344 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.6147, allocations: 1.409 MB / 461.3 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.949e-05/0.6148, allocations: 7.906 kB / 461.3 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001897/0.615, allocations: 67.98 kB / 461.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-05/0.6151, allocations: 44 kB / 461.4 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.6176, allocations: 0.9427 MB / 462.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/0.6301, allocations: 6.404 MB / 468.7 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.6318, allocations: 0.5595 MB / 469.3 MB, free: 6.516 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.6328, allocations: 419 kB / 469.7 MB, free: 6.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.188e-05/0.6329, allocations: 8.562 kB / 469.7 MB, free: 6.098 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.633, allocations: 47.06 kB / 469.7 MB, free: 6.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 4.542e-06/0.633, allocations: 0 / 469.7 MB, free: 6.043 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004566/0.6376, allocations: 1.784 MB / 471.5 MB, free: 4.199 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/0.6377, allocations: 111.6 kB / 471.6 MB, free: 4.066 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.64, allocations: 1.098 MB / 472.7 MB, free: 2.957 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.144e-05/0.6401, allocations: 37.7 kB / 472.8 MB, free: 2.914 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008651/0.641, allocations: 0.8608 MB / 473.6 MB, free: 2.043 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/0.6413, allocations: 260.3 kB / 473.9 MB, free: 1.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.832e-05/0.6413, allocations: 28 kB / 473.9 MB, free: 1.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.6416, allocations: 353.9 kB / 474.3 MB, free: 1.406 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006425/0.6422, allocations: 250.6 kB / 474.5 MB, free: 1.164 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.6433, allocations: 0.6851 MB / 475.2 MB, free: 272 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008917/0.6442, allocations: 377.8 kB / 475.6 MB, free: 15.9 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.6442, allocations: 4 kB / 475.6 MB, free: 15.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002971/0.6472, allocations: 1.174 MB / 476.7 MB, free: 14.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.6472, allocations: 12 kB / 476.7 MB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/0.6473, allocations: 12 kB / 476.8 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005346/0.6478, allocations: 118.5 kB / 476.9 MB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.6491, allocations: 275.6 kB / 477.1 MB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.6539, allocations: 4.208 MB / 481.3 MB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.6553, allocations: 63.89 kB / 481.4 MB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.6554, allocations: 60.05 kB / 481.5 MB, free: 9.547 MB / 394.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.0002696/0.6557, allocations: 176.5 kB / 481.6 MB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/0.656, allocations: 138.3 kB / 481.8 MB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002122/0.6581, allocations: 0.7935 MB / 482.6 MB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.6581, allocations: 8 kB / 482.6 MB, free: 8.402 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.559e-06/0.6582, allocations: 7.938 kB / 482.6 MB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.6582, allocations: 3.984 kB / 482.6 MB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00533/0.6635, allocations: 2.245 MB / 484.8 MB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.6636, allocations: 4 kB / 484.8 MB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008347/0.6644, allocations: 131.8 kB / 485 MB, free: 5.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004957/0.6649, allocations: 122.6 kB / 485.1 MB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.665, allocations: 19.95 kB / 485.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005047/0.6701, allocations: 4.313 MB / 489.4 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.163e-06/0.6701, allocations: 7.938 kB / 489.4 MB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002957/0.6731, allocations: 1.43 MB / 490.9 MB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007173/0.6738, allocations: 287.3 kB / 491.1 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002252/0.6741, allocations: 20 kB / 491.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008477/0.6749, allocations: 39.97 kB / 491.2 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.6751, allocations: 68.38 kB / 491.3 MB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.497e-05/0.6752, allocations: 20 kB / 491.3 MB, free: 14.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001757/0.6769, allocations: 0.8179 MB / 492.1 MB, free: 14.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.95e-07/0.677, allocations: 0 / 492.1 MB, free: 14.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001764/0.6787, allocations: 383.9 kB / 492.5 MB, free: 13.77 MB / 410.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.0006754/0.6794, allocations: 396 kB / 492.9 MB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002139/0.6816, allocations: 1.016 MB / 493.9 MB, free: 12.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.473e-06/0.6816, allocations: 0 / 493.9 MB, free: 12.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.6828, allocations: 0.6449 MB / 494.5 MB, free: 11.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.6848, allocations: 340.9 kB / 494.9 MB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005936/0.6907, allocations: 2.298 MB / 497.2 MB, free: 8.949 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.692, allocations: 1.253 MB / 498.4 MB, free: 7.664 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00112/0.6932, allocations: 175.9 kB / 498.6 MB, free: 7.488 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.6935, allocations: 95.36 kB / 498.7 MB, free: 7.395 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/0.6935, allocations: 0 / 498.7 MB, free: 7.395 MB / 410.7 MB Notification: Performance of Templates: time 0.05228/0.7458, allocations: 19.53 MB / 0.5061 GB, free: 3.914 MB / 426.7 MB