Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.624e-05, allocations: 7.906 kB / 258.8 MB, free: 8.039 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2981, allocations: 44.49 MB / 303.3 MB, free: 12.83 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01444/0.3126, allocations: 8.661 MB / 312 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008316/0.3209, allocations: 3.212 MB / 315.2 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.3228, allocations: 79.69 kB / 315.3 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.325, allocations: 0.5982 MB / 315.9 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003377/0.3285, allocations: 0.7047 MB / 316.6 MB, free: 200 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001453/0.3299, allocations: 299.6 kB / 316.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003904/0.3339, allocations: 1.432 MB / 318.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002731/0.3366, allocations: 1.438 MB / 319.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.3383, allocations: 0.7519 MB / 320.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.3406, allocations: 1.094 MB / 321.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009531/0.3416, allocations: 167.9 kB / 321.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004982/0.3421, allocations: 96 kB / 321.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001074/0.3432, allocations: 0.697 MB / 322.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008087/0.344, allocations: 232 kB / 322.8 MB, free: 9.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005835/0.3498, allocations: 3.868 MB / 326.6 MB, free: 6.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3499, allocations: 0 / 326.6 MB, free: 6.094 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3499, allocations: 0 / 326.6 MB, free: 6.094 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001375/0.35, allocations: 4 kB / 326.6 MB, free: 6.09 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.008057/0.3581, allocations: 2.571 MB / 329.2 MB, free: 3.461 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3582, allocations: 12.03 kB / 329.2 MB, free: 3.449 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001506/0.3597, allocations: 344.1 kB / 329.6 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00467/0.3644, allocations: 1.655 MB / 331.2 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.3647, allocations: 185 kB / 331.4 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008356/0.3655, allocations: 248 kB / 331.6 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009161/0.3747, allocations: 3.22 MB / 334.9 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.3748, allocations: 3.906 kB / 334.9 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003516/0.3752, allocations: 104 kB / 335 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000202/0.3754, allocations: 120.9 kB / 335.1 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008073/0.3835, allocations: 2.709 MB / 337.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0258/0.4093, allocations: 10.46 MB / 348.3 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002951/0.4123, allocations: 1.314 MB / 349.6 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000433/0.4128, allocations: 212.3 kB / 349.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.4129, allocations: 43.56 kB / 349.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 3.196e-06/0.4129, allocations: 0 / 349.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=121): time 0.02686/0.4397, allocations: 7.022 MB / 356.8 MB, free: 7.086 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.4399, allocations: 76.3 kB / 356.9 MB, free: 7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/0.4433, allocations: 1.518 MB / 358.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002116/0.4435, allocations: 45.7 kB / 358.5 MB, free: 5.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.4448, allocations: 1.275 MB / 359.8 MB, free: 4.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005402/0.4454, allocations: 418 kB / 360.2 MB, free: 3.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.4455, allocations: 32 kB / 360.2 MB, free: 3.695 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.4457, allocations: 369.9 kB / 360.6 MB, free: 3.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/0.4477, allocations: 0.7652 MB / 361.3 MB, free: 2.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002426/0.4502, allocations: 1.277 MB / 362.6 MB, free: 1.051 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00239/0.4526, allocations: 0.9745 MB / 363.6 MB, free: 76 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.329e-05/0.4526, allocations: 4 kB / 363.6 MB, free: 72 kB / 298.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.006463/0.4591, allocations: 2.455 MB / 366 MB, free: 13.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.4592, allocations: 12.94 kB / 366 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.224e-05/0.4592, allocations: 16 kB / 366.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.4602, allocations: 239.5 kB / 366.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002886/0.4631, allocations: 419.3 kB / 366.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.4668, allocations: 3.037 MB / 369.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002287/0.4692, allocations: 119.8 kB / 369.9 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001872/0.4694, allocations: 72 kB / 369.9 MB, free: 9.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002013/0.4714, allocations: 0.8056 MB / 370.7 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/0.4719, allocations: 189.7 kB / 370.9 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005429/0.4774, allocations: 2.019 MB / 372.9 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.4774, allocations: 16 kB / 373 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.4775, allocations: 0 / 373 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/0.4775, allocations: 7.969 kB / 373 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.4898, allocations: 4.7 MB / 377.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.4899, allocations: 0 / 377.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/0.492, allocations: 263.8 kB / 377.9 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008978/0.4929, allocations: 199.3 kB / 378.1 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.493, allocations: 27.98 kB / 378.1 MB, free: 1.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003638/0.4967, allocations: 3.013 MB / 381.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.4967, allocations: 0 / 381.2 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007768/0.5045, allocations: 3.248 MB / 384.4 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/0.5059, allocations: 422.7 kB / 384.8 MB, free: 9.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004325/0.5064, allocations: 27.94 kB / 384.8 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.508, allocations: 91.88 kB / 384.9 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/0.5083, allocations: 80.84 kB / 385 MB, free: 9.785 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.5084, allocations: 32 kB / 385 MB, free: 9.754 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002707/0.5111, allocations: 1.165 MB / 386.2 MB, free: 8.598 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5111, allocations: 0 / 386.2 MB, free: 8.598 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002298/0.5134, allocations: 484 kB / 386.7 MB, free: 8.125 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004483/0.5139, allocations: 157.9 kB / 386.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005834/0.5198, allocations: 2.323 MB / 389.2 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5198, allocations: 448 / 389.2 MB, free: 5.57 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003138/0.523, allocations: 1.334 MB / 390.5 MB, free: 4.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/0.5265, allocations: 448.4 kB / 390.9 MB, free: 3.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.5397, allocations: 5.764 MB / 396.7 MB, free: 13.9 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00327/0.5431, allocations: 2.052 MB / 398.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002714/0.5458, allocations: 0.4919 MB / 399.2 MB, free: 11.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007218/0.5466, allocations: 135.4 kB / 399.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of SimCode: time 1.283e-06/0.5466, allocations: 0 / 399.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of Templates: time 0.07056/0.6172, allocations: 22.98 MB / 422.3 MB, free: 4.199 MB / 362.7 MB