Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 225.8 MB / 239.4 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.623e-05/2.628e-05, allocations: 4 kB / 292.7 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08859/0.08863, allocations: 50.41 MB / 343.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4657/0.5543, allocations: 120 MB / 463.1 MB, free: 6.914 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5547, allocations: 96.69 kB / 463.2 MB, free: 6.863 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6023/1.157, allocations: 80.74 MB / 0.5312 GB, free: 94.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.157, allocations: 4.531 kB / 0.5312 GB, free: 94.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002976/1.157, allocations: 95.27 kB / 0.5313 GB, free: 94.79 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009471/1.167, allocations: 3.454 MB / 0.5346 GB, free: 93.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/1.167, allocations: 11.09 kB / 0.5346 GB, free: 93.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004069/1.171, allocations: 0.6373 MB / 0.5353 GB, free: 93.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/1.181, allocations: 3.377 MB / 0.5386 GB, free: 92.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002495/1.182, allocations: 260.3 kB / 0.5388 GB, free: 92.81 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007302/1.182, allocations: 345.2 kB / 0.5391 GB, free: 92.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009996/1.192, allocations: 4.286 MB / 0.5433 GB, free: 92.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/1.192, allocations: 2.188 kB / 0.5433 GB, free: 92.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005243/1.193, allocations: 148.8 kB / 0.5435 GB, free: 92.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002052/1.193, allocations: 163.4 kB / 0.5436 GB, free: 92.35 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007822/1.201, allocations: 3.393 MB / 0.5469 GB, free: 92.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02476/1.226, allocations: 14.57 MB / 0.5612 GB, free: 88.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004981/1.231, allocations: 5.319 MB / 0.5664 GB, free: 84.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002279/1.233, allocations: 1.255 MB / 0.5676 GB, free: 84.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007923/1.241, allocations: 3.881 MB / 0.5714 GB, free: 82.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/1.241, allocations: 47.14 kB / 0.5714 GB, free: 82.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 4.849e-06/1.241, allocations: 3.406 kB / 0.5714 GB, free: 82.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.008121/1.249, allocations: 4.272 MB / 0.5756 GB, free: 79.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.005e-05/1.249, allocations: 65.19 kB / 0.5757 GB, free: 79.92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003185/1.253, allocations: 1.838 MB / 0.5774 GB, free: 79.17 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/1.253, allocations: 48.52 kB / 0.5775 GB, free: 79.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009446/1.254, allocations: 1.664 MB / 0.5791 GB, free: 77.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/1.254, allocations: 458.6 kB / 0.5796 GB, free: 77.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/1.254, allocations: 35.81 kB / 0.5796 GB, free: 77.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/1.254, allocations: 374.6 kB / 0.5799 GB, free: 77.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/1.256, allocations: 0.6965 MB / 0.5806 GB, free: 76.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/1.257, allocations: 1.292 MB / 0.5819 GB, free: 75.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/1.259, allocations: 0.9342 MB / 0.5828 GB, free: 75.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/1.259, allocations: 7.406 kB / 0.5828 GB, free: 75.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00467/1.264, allocations: 2.406 MB / 0.5852 GB, free: 74.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/1.264, allocations: 14.16 kB / 0.5852 GB, free: 74.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/1.264, allocations: 21.25 kB / 0.5852 GB, free: 74.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004282/1.264, allocations: 141.7 kB / 0.5853 GB, free: 74.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/1.266, allocations: 463 kB / 0.5858 GB, free: 74.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/1.269, allocations: 3.067 MB / 0.5888 GB, free: 71.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002005/1.271, allocations: 115.6 kB / 0.5889 GB, free: 71.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/1.271, allocations: 87.12 kB / 0.589 GB, free: 71.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003457/1.271, allocations: 219 kB / 0.5892 GB, free: 71.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003701/1.272, allocations: 221.2 kB / 0.5894 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/1.276, allocations: 2.166 MB / 0.5915 GB, free: 70.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/1.276, allocations: 16.62 kB / 0.5915 GB, free: 70.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.404e-06/1.276, allocations: 3.75 kB / 0.5915 GB, free: 70.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/1.276, allocations: 6.844 kB / 0.5915 GB, free: 70.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009704/1.286, allocations: 5.142 MB / 0.5965 GB, free: 67.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/1.286, allocations: 0 / 0.5965 GB, free: 67.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/1.288, allocations: 238.4 kB / 0.5968 GB, free: 67.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009472/1.289, allocations: 270.7 kB / 0.597 GB, free: 67.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/1.289, allocations: 33.78 kB / 0.5971 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006907/1.296, allocations: 7.097 MB / 0.604 GB, free: 61.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.043e-06/1.296, allocations: 3.375 kB / 0.604 GB, free: 61.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005796/1.301, allocations: 3.287 MB / 0.6072 GB, free: 59.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/1.303, allocations: 474.4 kB / 0.6077 GB, free: 59.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004219/1.303, allocations: 22.47 kB / 0.6077 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/1.305, allocations: 80.33 kB / 0.6078 GB, free: 59.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/1.305, allocations: 96.73 kB / 0.6078 GB, free: 59.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001224/1.305, allocations: 40.44 kB / 0.6079 GB, free: 59.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002497/1.308, allocations: 1.39 MB / 0.6092 GB, free: 58.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.56e-07/1.308, allocations: 3.938 kB / 0.6092 GB, free: 58.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002749/1.31, allocations: 0.609 MB / 0.6098 GB, free: 58.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007246/1.311, allocations: 0.5284 MB / 0.6104 GB, free: 58.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00347/1.315, allocations: 1.996 MB / 0.6123 GB, free: 57.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.293e-06/1.315, allocations: 3.5 kB / 0.6123 GB, free: 57.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/1.317, allocations: 1.326 MB / 0.6136 GB, free: 56.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/1.319, allocations: 0.5009 MB / 0.6141 GB, free: 56.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009746/1.329, allocations: 4.836 MB / 0.6188 GB, free: 54.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/1.332, allocations: 2.476 MB / 0.6212 GB, free: 52.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002122/1.334, allocations: 0.4978 MB / 0.6217 GB, free: 52.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005817/1.334, allocations: 151.1 kB / 0.6219 GB, free: 52.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.818e-06/1.334, allocations: 0 / 0.6219 GB, free: 52.25 MB / 442.7 MB Notification: Performance of Templates: time 0.07354/1.408, allocations: 30.75 MB / 0.6519 GB, free: 32.06 MB / 442.7 MB