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.69/1.69, allocations: 171.2 MB / 185.7 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.545e-05/2.558e-05, allocations: 4 kB / 228.2 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08369/0.08374, allocations: 38.76 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01534/0.09914, allocations: 9.37 MB / 276.3 MB, free: 7.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0072/0.1064, allocations: 2.94 MB / 279.2 MB, free: 4.117 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.1078, allocations: 51.94 kB / 279.3 MB, free: 4.066 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.1093, allocations: 473.1 kB / 279.7 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.1119, allocations: 0.6893 MB / 280.4 MB, free: 2.91 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008784/0.1128, allocations: 235.7 kB / 280.7 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003503/0.1163, allocations: 1.35 MB / 282 MB, free: 1.328 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.1174, allocations: 494.7 kB / 282.5 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.1186, allocations: 0.5842 MB / 283.1 MB, free: 260 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.1198, allocations: 0.6773 MB / 283.8 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.1204, allocations: 111.8 kB / 283.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002868/0.1207, allocations: 68 kB / 283.9 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003/0.121, allocations: 270.7 kB / 284.2 MB, free: 15.13 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005056/0.1215, allocations: 180 kB / 284.4 MB, free: 14.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003441/0.125, allocations: 2.142 MB / 286.5 MB, free: 12.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.125, allocations: 0 / 286.5 MB, free: 12.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.125, allocations: 0 / 286.5 MB, free: 12.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.417e-05/0.1251, allocations: 0 / 286.5 MB, free: 12.81 MB / 250.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.004589/0.1297, allocations: 1.636 MB / 288.2 MB, free: 11.12 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.1298, allocations: 12.03 kB / 288.2 MB, free: 11.11 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.1309, allocations: 253.4 kB / 288.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.134, allocations: 1.075 MB / 289.5 MB, free: 9.723 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.1341, allocations: 111.1 kB / 289.6 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003652/0.1345, allocations: 171.8 kB / 289.8 MB, free: 9.445 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004021/0.1385, allocations: 1.453 MB / 291.2 MB, free: 7.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/0.1386, allocations: 11.89 kB / 291.2 MB, free: 7.918 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.1389, allocations: 64 kB / 291.3 MB, free: 7.855 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.114e-05/0.1389, allocations: 43.98 kB / 291.3 MB, free: 7.812 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003243/0.1422, allocations: 1.014 MB / 292.3 MB, free: 6.793 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.1545, allocations: 6.164 MB / 298.5 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2578/0.4124, allocations: 0.5448 MB / 299.1 MB, free: 28.79 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.241e-05/0.4126, allocations: 8.641 kB / 299.1 MB, free: 28.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.4126, allocations: 44.25 kB / 299.1 MB, free: 28.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=66): time 4.098e-06/0.4126, allocations: 3.094 kB / 299.1 MB, free: 28.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.00727/0.4199, allocations: 2.266 MB / 301.4 MB, free: 28.07 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.42, allocations: 111 kB / 301.5 MB, free: 27.95 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/0.4223, allocations: 1.034 MB / 302.5 MB, free: 27.51 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.4225, allocations: 37.3 kB / 302.6 MB, free: 27.47 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008853/0.4234, allocations: 0.8566 MB / 303.4 MB, free: 26.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.4237, allocations: 260 kB / 303.7 MB, free: 26.61 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.726e-05/0.4238, allocations: 25 kB / 303.7 MB, free: 26.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.4239, allocations: 348.4 kB / 304 MB, free: 26.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009343/0.4248, allocations: 271.4 kB / 304.3 MB, free: 26.17 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.426, allocations: 0.7179 MB / 305 MB, free: 25.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.4271, allocations: 390 kB / 305.4 MB, free: 25.3 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.4271, allocations: 4.344 kB / 305.4 MB, free: 25.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003498/0.4306, allocations: 1.211 MB / 306.6 MB, free: 24.76 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.4307, allocations: 15.62 kB / 306.6 MB, free: 24.76 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.4307, allocations: 14.91 kB / 306.6 MB, free: 24.76 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.4314, allocations: 114.9 kB / 306.7 MB, free: 24.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/0.433, allocations: 259.8 kB / 307 MB, free: 24.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.4371, allocations: 4.201 MB / 311.2 MB, free: 20.55 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.4387, allocations: 51.81 kB / 311.3 MB, free: 20.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.4389, allocations: 57.83 kB / 311.3 MB, free: 20.52 MB / 250.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 (138): * Single equations (assignments): 135 * 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.0008808/0.4398, allocations: 354.6 kB / 311.7 MB, free: 20.24 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.44, allocations: 142.5 kB / 311.8 MB, free: 20.17 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00256/0.4426, allocations: 0.7819 MB / 312.6 MB, free: 19.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.4427, allocations: 7.516 kB / 312.6 MB, free: 19.8 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.4427, allocations: 1.094 kB / 312.6 MB, free: 19.8 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.4427, allocations: 4.906 kB / 312.6 MB, free: 19.8 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005777/0.4485, allocations: 2.177 MB / 314.8 MB, free: 18.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.4486, allocations: 5.328 kB / 314.8 MB, free: 18.64 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4496, allocations: 132.4 kB / 314.9 MB, free: 18.63 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00058/0.4502, allocations: 106.5 kB / 315 MB, free: 18.59 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.421e-05/0.4503, allocations: 26.36 kB / 315 MB, free: 18.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004317/0.4547, allocations: 4.318 MB / 319.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.4547, allocations: 8.062 kB / 319.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.4582, allocations: 1.423 MB / 320.8 MB, free: 13.38 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006822/0.4589, allocations: 261 kB / 321 MB, free: 13.17 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/0.4592, allocations: 23.19 kB / 321.1 MB, free: 13.16 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001052/0.4603, allocations: 35.05 kB / 321.1 MB, free: 13.15 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.4605, allocations: 64.48 kB / 321.2 MB, free: 13.13 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.083e-05/0.4605, allocations: 21.41 kB / 321.2 MB, free: 13.12 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001528/0.4621, allocations: 0.7755 MB / 322 MB, free: 12.8 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4621, allocations: 0 / 322 MB, free: 12.8 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001775/0.4639, allocations: 324.9 kB / 322.3 MB, free: 12.77 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.0002842/0.4642, allocations: 139.2 kB / 322.4 MB, free: 12.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.4667, allocations: 1.09 MB / 323.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.4668, allocations: 0 / 323.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.4681, allocations: 0.6757 MB / 324.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.4706, allocations: 325.6 kB / 324.5 MB, free: 11.47 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.4784, allocations: 3.421 MB / 327.9 MB, free: 9.137 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009254/0.4794, allocations: 1.249 MB / 329.2 MB, free: 8.18 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.001265/0.4807, allocations: 171.9 kB / 329.3 MB, free: 8.078 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/0.4811, allocations: 90.05 kB / 329.4 MB, free: 7.992 MB / 250.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4811, allocations: 0 / 329.4 MB, free: 7.992 MB / 250.7 MB Notification: Performance of Templates: time 0.04352/0.5246, allocations: 14.59 MB / 344 MB, free: 9.469 MB / 266.7 MB