Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 171.2 MB / 185.7 MB, free: 1.387 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.659e-05, allocations: 4 kB / 228.2 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08259/0.08265, allocations: 38.76 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01509/0.0978, allocations: 8.685 MB / 275.6 MB, free: 7.742 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008287/0.1061, allocations: 3.099 MB / 278.7 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001894/0.1081, allocations: 83.69 kB / 278.8 MB, free: 4.555 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00227/0.1104, allocations: 0.5942 MB / 279.4 MB, free: 3.957 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00377/0.1142, allocations: 0.6891 MB / 280.1 MB, free: 3.266 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.1156, allocations: 291.6 kB / 280.4 MB, free: 2.98 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003798/0.1194, allocations: 1.432 MB / 281.8 MB, free: 1.547 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002732/0.1222, allocations: 1.439 MB / 283.2 MB, free: 92 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.1238, allocations: 0.7753 MB / 284 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001972/0.1258, allocations: 1.028 MB / 285 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000813/0.1266, allocations: 167.8 kB / 285.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004395/0.1271, allocations: 96 kB / 285.3 MB, free: 14.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.1284, allocations: 0.7087 MB / 286 MB, free: 13.31 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008733/0.1293, allocations: 228 kB / 286.2 MB, free: 13.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009137/0.1384, allocations: 3.783 MB / 290 MB, free: 9.297 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1385, allocations: 0 / 290 MB, free: 9.297 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.667e-06/0.1385, allocations: 0 / 290 MB, free: 9.297 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001516/0.1387, allocations: 0 / 290 MB, free: 9.297 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.009/0.1477, allocations: 2.563 MB / 292.6 MB, free: 6.676 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1478, allocations: 12.03 kB / 292.6 MB, free: 6.664 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00161/0.1494, allocations: 340.1 kB / 292.9 MB, free: 6.328 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004416/0.1538, allocations: 1.549 MB / 294.5 MB, free: 4.723 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/0.1541, allocations: 193 kB / 294.6 MB, free: 4.531 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006106/0.1547, allocations: 243.9 kB / 294.9 MB, free: 4.293 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009195/0.1639, allocations: 3.232 MB / 298.1 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.1641, allocations: 4 kB / 298.1 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003584/0.1645, allocations: 104 kB / 298.2 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/0.1647, allocations: 120.9 kB / 298.3 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2216/0.3863, allocations: 2.708 MB / 301 MB, free: 27.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03477/0.4211, allocations: 10.37 MB / 311.4 MB, free: 21.39 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004367/0.4256, allocations: 1.306 MB / 312.7 MB, free: 20.55 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004986/0.4261, allocations: 131 kB / 312.8 MB, free: 20.44 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/0.4262, allocations: 43.12 kB / 312.9 MB, free: 20.39 MB / 250.7 MB Notification: Performance of pre-optimization done (n=95): time 5.761e-06/0.4262, allocations: 2.625 kB / 312.9 MB, free: 20.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.03468/0.4609, allocations: 6.861 MB / 319.8 MB, free: 16.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.461, allocations: 63.47 kB / 319.8 MB, free: 16.6 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004053/0.4651, allocations: 1.398 MB / 321.2 MB, free: 15.76 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003147/0.4654, allocations: 49.7 kB / 321.3 MB, free: 15.71 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001421/0.4669, allocations: 1.258 MB / 322.5 MB, free: 14.44 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000688/0.4676, allocations: 419.1 kB / 322.9 MB, free: 14.03 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.4678, allocations: 32 kB / 323 MB, free: 14 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.468, allocations: 366.7 kB / 323.3 MB, free: 13.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002494/0.4705, allocations: 0.7652 MB / 324.1 MB, free: 12.87 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002862/0.4734, allocations: 1.279 MB / 325.4 MB, free: 11.37 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/0.4766, allocations: 0.9753 MB / 326.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.4766, allocations: 7.953 kB / 326.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.006821/0.4834, allocations: 2.439 MB / 328.8 MB, free: 7.926 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.283e-05/0.4835, allocations: 16.03 kB / 328.8 MB, free: 7.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/0.4836, allocations: 17.53 kB / 328.8 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009272/0.4845, allocations: 235.3 kB / 329 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/0.4873, allocations: 419.3 kB / 329.5 MB, free: 7.242 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003066/0.4904, allocations: 3.043 MB / 332.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/0.4926, allocations: 127.8 kB / 332.6 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002521/0.4929, allocations: 75.98 kB / 332.7 MB, free: 3.73 MB / 250.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 (196): * Single equations (assignments): 192 * 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.002018/0.495, allocations: 0.8094 MB / 333.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005062/0.4955, allocations: 177.8 kB / 333.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004854/0.5004, allocations: 2.011 MB / 335.7 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.5004, allocations: 12 kB / 335.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.5004, allocations: 0 / 335.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.5005, allocations: 7.969 kB / 335.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.5151, allocations: 4.63 MB / 340.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/0.5152, allocations: 4 kB / 340.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00298/0.5182, allocations: 255.6 kB / 340.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001361/0.5196, allocations: 211.5 kB / 340.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003134/0.52, allocations: 24 kB / 340.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005955/0.5259, allocations: 3.002 MB / 343.8 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/0.526, allocations: 4.031 kB / 343.8 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/0.5364, allocations: 3.235 MB / 347.1 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001717/0.5381, allocations: 406.7 kB / 347.5 MB, free: 4.445 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007394/0.5389, allocations: 24 kB / 347.5 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/0.5411, allocations: 99.89 kB / 347.6 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004173/0.5416, allocations: 80.77 kB / 347.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/0.5418, allocations: 32 kB / 347.7 MB, free: 4.215 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.003416/0.5452, allocations: 1.074 MB / 348.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.5453, allocations: 0 / 348.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.002872/0.5482, allocations: 472 kB / 349.2 MB, free: 2.688 MB / 266.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 (118): * Single equations (assignments): 114 * 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.00043/0.5486, allocations: 151.4 kB / 349.4 MB, free: 2.535 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.005711/0.5543, allocations: 2.312 MB / 351.7 MB, free: 160 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.5544, allocations: 0 / 351.7 MB, free: 160 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00307/0.5575, allocations: 1.331 MB / 353 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/0.5608, allocations: 439.2 kB / 353.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.5731, allocations: 5.657 MB / 359.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002775/0.5759, allocations: 2.048 MB / 361.2 MB, free: 6.531 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.002539/0.5785, allocations: 487.4 kB / 361.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006946/0.5792, allocations: 123.4 kB / 361.8 MB, free: 5.93 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5792, allocations: 0 / 361.8 MB, free: 5.93 MB / 282.7 MB Notification: Performance of Templates: time 0.06801/0.6472, allocations: 21.53 MB / 383.3 MB, free: 484 kB / 298.7 MB