Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.835e-05/4.852e-05, allocations: 4 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1245, allocations: 50.42 MB / 343.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.5378, allocations: 114.7 MB / 457.7 MB, free: 12.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.5381, allocations: 89.02 kB / 457.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2387/0.7768, allocations: 60.16 MB / 0.5058 GB, free: 3.527 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.7769, allocations: 0 / 0.5058 GB, free: 3.527 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000289/0.7772, allocations: 87.88 kB / 0.5059 GB, free: 3.441 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007697/0.7849, allocations: 2.994 MB / 0.5089 GB, free: 392 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.785, allocations: 12.03 kB / 0.5089 GB, free: 380 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/0.7866, allocations: 415.5 kB / 0.5093 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/0.7925, allocations: 2.22 MB / 0.5114 GB, free: 13.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/0.7928, allocations: 229.9 kB / 0.5117 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006577/0.7934, allocations: 291.9 kB / 0.5119 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008416/0.8019, allocations: 3.7 MB / 0.5155 GB, free: 9.328 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.542e-05/0.802, allocations: 11.94 kB / 0.5156 GB, free: 9.316 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004211/0.8024, allocations: 120.3 kB / 0.5157 GB, free: 9.199 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001956/0.8026, allocations: 145.7 kB / 0.5158 GB, free: 9.055 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007344/0.81, allocations: 2.967 MB / 0.5187 GB, free: 6.082 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.271/1.081, allocations: 12.18 MB / 0.5306 GB, free: 99.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003458/1.084, allocations: 2.069 MB / 0.5326 GB, free: 98.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002016/1.087, allocations: 0.9932 MB / 0.5336 GB, free: 98.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003822/1.087, allocations: 226.7 kB / 0.5338 GB, free: 98.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.087, allocations: 48.23 kB / 0.5339 GB, free: 98.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 5.129e-06/1.087, allocations: 3.375 kB / 0.5339 GB, free: 98.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.01782/1.105, allocations: 6.657 MB / 0.5404 GB, free: 97.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/1.105, allocations: 72.39 kB / 0.5404 GB, free: 97.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003598/1.109, allocations: 1.747 MB / 0.5421 GB, free: 97.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002439/1.109, allocations: 51.08 kB / 0.5422 GB, free: 97.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/1.11, allocations: 1.447 MB / 0.5436 GB, free: 97.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005303/1.11, allocations: 0.5593 MB / 0.5441 GB, free: 96.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/1.111, allocations: 42.94 kB / 0.5442 GB, free: 96.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/1.111, allocations: 385.6 kB / 0.5446 GB, free: 96.53 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.113, allocations: 0.9087 MB / 0.5454 GB, free: 96.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/1.115, allocations: 1.45 MB / 0.5469 GB, free: 95.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002081/1.117, allocations: 1.161 MB / 0.548 GB, free: 95.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/1.117, allocations: 3.656 kB / 0.548 GB, free: 95.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006179/1.123, allocations: 3.1 MB / 0.551 GB, free: 95.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/1.123, allocations: 21.67 kB / 0.551 GB, free: 95.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/1.123, allocations: 15.12 kB / 0.5511 GB, free: 95.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001646/1.125, allocations: 0.5448 MB / 0.5516 GB, free: 95.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002467/1.127, allocations: 481.2 kB / 0.552 GB, free: 95.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008411/1.136, allocations: 6.275 MB / 0.5582 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/1.138, allocations: 142.4 kB / 0.5583 GB, free: 92.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/1.138, allocations: 89.75 kB / 0.5584 GB, free: 92.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004209/1.139, allocations: 227 kB / 0.5586 GB, free: 92.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000441/1.139, allocations: 215.3 kB / 0.5588 GB, free: 92.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005684/1.145, allocations: 2.792 MB / 0.5615 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/1.145, allocations: 16.72 kB / 0.5616 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/1.145, allocations: 4.156 kB / 0.5616 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-05/1.145, allocations: 11.67 kB / 0.5616 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/1.158, allocations: 6.009 MB / 0.5674 GB, free: 89.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/1.158, allocations: 6.906 kB / 0.5675 GB, free: 89.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/1.159, allocations: 283.4 kB / 0.5677 GB, free: 89.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/1.161, allocations: 0.587 MB / 0.5683 GB, free: 89.69 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/1.161, allocations: 42.19 kB / 0.5683 GB, free: 89.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009605/1.171, allocations: 7.966 MB / 0.5761 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.948e-06/1.171, allocations: 11.81 kB / 0.5761 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007428/1.179, allocations: 4.283 MB / 0.5803 GB, free: 82.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.18, allocations: 0.5016 MB / 0.5808 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/1.18, allocations: 37.84 kB / 0.5808 GB, free: 81.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/1.182, allocations: 104.8 kB / 0.5809 GB, free: 81.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/1.182, allocations: 122.2 kB / 0.5811 GB, free: 81.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/1.182, allocations: 49.62 kB / 0.5811 GB, free: 81.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002326/1.185, allocations: 1.329 MB / 0.5824 GB, free: 81.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.33e-07/1.185, allocations: 1.875 kB / 0.5824 GB, free: 81.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002518/1.187, allocations: 0.6378 MB / 0.583 GB, free: 81.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000675/1.188, allocations: 423.5 kB / 0.5834 GB, free: 80.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004656/1.193, allocations: 2.654 MB / 0.586 GB, free: 79.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.646e-06/1.193, allocations: 3.094 kB / 0.586 GB, free: 79.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/1.195, allocations: 1.579 MB / 0.5876 GB, free: 79.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/1.198, allocations: 0.4944 MB / 0.588 GB, free: 79.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009368/1.207, allocations: 4.812 MB / 0.5927 GB, free: 77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002319/1.21, allocations: 2.327 MB / 0.595 GB, free: 76 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002137/1.212, allocations: 0.5261 MB / 0.5955 GB, free: 75.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000634/1.213, allocations: 163.8 kB / 0.5957 GB, free: 75.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.854e-06/1.213, allocations: 0 / 0.5957 GB, free: 75.93 MB / 442.7 MB Notification: Performance of Templates: time 0.07971/1.292, allocations: 34.16 MB / 0.629 GB, free: 56.13 MB / 442.7 MB