Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.279e-05/2.264e-05, allocations: 7.938 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2479, allocations: 44.49 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.4044, allocations: 107.6 MB / 401.7 MB, free: 6.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/0.4047, allocations: 87.89 kB / 401.8 MB, free: 6.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4255/0.8302, allocations: 57.48 MB / 459.3 MB, free: 89.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.991e-06/0.8302, allocations: 0 / 459.3 MB, free: 89.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000285/0.8305, allocations: 81.09 kB / 459.4 MB, free: 89.69 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.007784/0.8383, allocations: 2.878 MB / 462.3 MB, free: 87.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.8384, allocations: 8.031 kB / 462.3 MB, free: 87.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/0.8404, allocations: 403.5 kB / 462.7 MB, free: 86.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005915/0.8463, allocations: 2.163 MB / 464.8 MB, free: 84.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.8465, allocations: 88 kB / 464.9 MB, free: 84.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008049/0.8473, allocations: 171.9 kB / 465.1 MB, free: 84.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006943/0.8543, allocations: 2.674 MB / 467.8 MB, free: 81.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00852/0.8629, allocations: 3.18 MB / 470.9 MB, free: 78.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001128/0.863, allocations: 0 / 470.9 MB, free: 78.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003368/0.8634, allocations: 4 kB / 470.9 MB, free: 78.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001466/0.8635, allocations: 133.5 kB / 471.1 MB, free: 78.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02571/0.8893, allocations: 11.1 MB / 482.2 MB, free: 66.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/0.8922, allocations: 1.916 MB / 484.1 MB, free: 64.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.8938, allocations: 0.9038 MB / 485 MB, free: 63.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003588/0.8942, allocations: 223.3 kB / 485.2 MB, free: 63.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.8943, allocations: 47.83 kB / 485.3 MB, free: 63.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=133): time 5.008e-06/0.8943, allocations: 4 kB / 485.3 MB, free: 63.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.01353/0.9078, allocations: 5.571 MB / 490.8 MB, free: 57.96 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.9079, allocations: 68.72 kB / 490.9 MB, free: 57.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/0.9106, allocations: 1.457 MB / 492.4 MB, free: 56.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002737/0.9109, allocations: 25.7 kB / 492.4 MB, free: 56.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007752/0.9117, allocations: 1.333 MB / 493.7 MB, free: 55.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.9122, allocations: 0.5042 MB / 494.2 MB, free: 54.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.9124, allocations: 4 kB / 494.2 MB, free: 54.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.9125, allocations: 382.8 kB / 494.6 MB, free: 54.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.914, allocations: 0.8278 MB / 495.4 MB, free: 53.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.9158, allocations: 1.37 MB / 496.8 MB, free: 51.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.9179, allocations: 1.072 MB / 497.9 MB, free: 50.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/0.918, allocations: 4 kB / 497.9 MB, free: 50.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.005664/0.9237, allocations: 2.701 MB / 0.4888 GB, free: 47.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.9237, allocations: 14.03 kB / 0.4889 GB, free: 47.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.9238, allocations: 20 kB / 0.4889 GB, free: 47.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.9255, allocations: 0.5334 MB / 0.4894 GB, free: 47.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.9277, allocations: 451.3 kB / 0.4898 GB, free: 46.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008008/0.9357, allocations: 6.006 MB / 0.4957 GB, free: 40.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/0.9378, allocations: 99.77 kB / 0.4958 GB, free: 40.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/0.9381, allocations: 87.86 kB / 0.4959 GB, free: 40.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * 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.0003825/0.9385, allocations: 156.2 kB / 0.496 GB, free: 40.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004419/0.939, allocations: 193.6 kB / 0.4962 GB, free: 40.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/0.9444, allocations: 2.522 MB / 0.4987 GB, free: 37.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.9444, allocations: 16 kB / 0.4987 GB, free: 37.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.9445, allocations: 4 kB / 0.4987 GB, free: 37.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.137e-05/0.9445, allocations: 15.92 kB / 0.4987 GB, free: 37.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.9564, allocations: 5.29 MB / 0.5039 GB, free: 32.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.9564, allocations: 7.938 kB / 0.5039 GB, free: 32.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.958, allocations: 267.6 kB / 0.5041 GB, free: 31.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/0.96, allocations: 0.5808 MB / 0.5047 GB, free: 31.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002626/0.9603, allocations: 15.98 kB / 0.5047 GB, free: 31.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009562/0.9699, allocations: 7.676 MB / 0.5122 GB, free: 23.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.487e-06/0.97, allocations: 4 kB / 0.5122 GB, free: 23.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007156/0.9771, allocations: 3.969 MB / 0.5161 GB, free: 19.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.9786, allocations: 474.5 kB / 0.5165 GB, free: 18.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004832/0.9791, allocations: 7.984 kB / 0.5166 GB, free: 18.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.9807, allocations: 87.86 kB / 0.5166 GB, free: 18.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003091/0.981, allocations: 109.2 kB / 0.5167 GB, free: 18.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/0.9812, allocations: 43.95 kB / 0.5168 GB, free: 18.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002099/0.9833, allocations: 1.092 MB / 0.5178 GB, free: 17.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.049e-06/0.9833, allocations: 4 kB / 0.5178 GB, free: 17.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002955/0.9863, allocations: 0.5234 MB / 0.5184 GB, free: 16.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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.0006984/0.987, allocations: 383.1 kB / 0.5187 GB, free: 16.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004363/0.9914, allocations: 2.493 MB / 0.5212 GB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.267e-06/0.9914, allocations: 0 / 0.5212 GB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.9942, allocations: 1.533 MB / 0.5227 GB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/0.997, allocations: 414.5 kB / 0.5231 GB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009704/1.007, allocations: 4.611 MB / 0.5276 GB, free: 7.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002408/1.009, allocations: 2.244 MB / 0.5297 GB, free: 5.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008622/1.01, allocations: 159.3 kB / 0.5299 GB, free: 4.906 MB / 362.7 MB Notification: Performance of SimCode: time 1.883e-06/1.01, allocations: 0 / 0.5299 GB, free: 4.906 MB / 362.7 MB Notification: Performance of Templates: time 0.3274/1.337, allocations: 73.63 MB / 0.6018 GB, free: 101.8 MB / 394.7 MB