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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.761e-05, allocations: 4 kB / 292.2 MB, free: 8.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08871, allocations: 50.41 MB / 342.6 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4714/0.5602, allocations: 120 MB / 462.5 MB, free: 6.949 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.5605, allocations: 95.31 kB / 462.6 MB, free: 6.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5628/1.123, allocations: 80.75 MB / 0.5307 GB, free: 94.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.31e-06/1.123, allocations: 1.219 kB / 0.5307 GB, free: 94.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002973/1.124, allocations: 94.81 kB / 0.5307 GB, free: 94.63 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.011/1.135, allocations: 3.455 MB / 0.5341 GB, free: 93.44 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/1.135, allocations: 9.344 kB / 0.5341 GB, free: 93.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004423/1.139, allocations: 0.639 MB / 0.5347 GB, free: 93.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01106/1.15, allocations: 3.379 MB / 0.538 GB, free: 92.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/1.151, allocations: 263.9 kB / 0.5383 GB, free: 92.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008576/1.151, allocations: 341.9 kB / 0.5386 GB, free: 92.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01014/1.162, allocations: 4.285 MB / 0.5428 GB, free: 92.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/1.162, allocations: 2.125 kB / 0.5428 GB, free: 92.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004729/1.162, allocations: 148.6 kB / 0.543 GB, free: 92.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002075/1.163, allocations: 162 kB / 0.5431 GB, free: 92.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007876/1.17, allocations: 3.39 MB / 0.5464 GB, free: 92.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02586/1.196, allocations: 14.57 MB / 0.5607 GB, free: 88.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005041/1.201, allocations: 5.321 MB / 0.5658 GB, free: 84.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/1.204, allocations: 1.245 MB / 0.5671 GB, free: 84.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008156/1.212, allocations: 3.881 MB / 0.5709 GB, free: 82.22 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/1.212, allocations: 50.11 kB / 0.5709 GB, free: 82.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 5.6e-06/1.212, allocations: 3.422 kB / 0.5709 GB, free: 82.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.008243/1.22, allocations: 4.27 MB / 0.5751 GB, free: 79.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/1.22, allocations: 67.75 kB / 0.5751 GB, free: 79.85 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/1.224, allocations: 1.838 MB / 0.5769 GB, free: 79.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001828/1.224, allocations: 45.08 kB / 0.577 GB, free: 79.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009696/1.225, allocations: 1.668 MB / 0.5786 GB, free: 77.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/1.225, allocations: 458.6 kB / 0.579 GB, free: 77.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/1.226, allocations: 35 kB / 0.5791 GB, free: 77.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/1.226, allocations: 373.9 kB / 0.5794 GB, free: 77.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/1.227, allocations: 0.6966 MB / 0.5801 GB, free: 76.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/1.229, allocations: 1.29 MB / 0.5814 GB, free: 75.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/1.231, allocations: 0.9377 MB / 0.5823 GB, free: 75.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/1.231, allocations: 6.562 kB / 0.5823 GB, free: 75.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004972/1.236, allocations: 2.412 MB / 0.5847 GB, free: 74.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/1.236, allocations: 14.31 kB / 0.5847 GB, free: 74.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/1.236, allocations: 17.31 kB / 0.5847 GB, free: 74.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004399/1.236, allocations: 137.2 kB / 0.5848 GB, free: 74.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/1.238, allocations: 468.3 kB / 0.5853 GB, free: 74.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/1.241, allocations: 3.061 MB / 0.5882 GB, free: 71.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/1.243, allocations: 115.1 kB / 0.5884 GB, free: 71.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001837/1.243, allocations: 86.56 kB / 0.5884 GB, free: 71.43 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.0003468/1.244, allocations: 221.4 kB / 0.5887 GB, free: 71.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003495/1.244, allocations: 225.7 kB / 0.5889 GB, free: 71.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004258/1.248, allocations: 2.159 MB / 0.591 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/1.248, allocations: 14.88 kB / 0.591 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.609e-06/1.248, allocations: 3.594 kB / 0.591 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-05/1.248, allocations: 6.656 kB / 0.591 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/1.258, allocations: 5.143 MB / 0.596 GB, free: 67.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/1.259, allocations: 3.656 kB / 0.596 GB, free: 67.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/1.26, allocations: 231.4 kB / 0.5962 GB, free: 67.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00087/1.261, allocations: 273 kB / 0.5965 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/1.261, allocations: 31.09 kB / 0.5965 GB, free: 67.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006648/1.268, allocations: 7.101 MB / 0.6035 GB, free: 61.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.861e-06/1.268, allocations: 3.406 kB / 0.6035 GB, free: 61.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005929/1.274, allocations: 3.298 MB / 0.6067 GB, free: 59.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/1.275, allocations: 467.7 kB / 0.6071 GB, free: 59.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004044/1.275, allocations: 30.41 kB / 0.6072 GB, free: 59.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/1.277, allocations: 74 kB / 0.6072 GB, free: 59.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/1.277, allocations: 99.53 kB / 0.6073 GB, free: 59.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/1.277, allocations: 37.42 kB / 0.6074 GB, free: 59.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002647/1.28, allocations: 1.388 MB / 0.6087 GB, free: 58.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.5e-07/1.28, allocations: 3.938 kB / 0.6087 GB, free: 58.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002765/1.283, allocations: 0.6163 MB / 0.6093 GB, free: 58.57 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.0007145/1.283, allocations: 0.5249 MB / 0.6098 GB, free: 58.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003381/1.287, allocations: 1.998 MB / 0.6118 GB, free: 57.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.504e-06/1.287, allocations: 0 / 0.6118 GB, free: 57.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00221/1.289, allocations: 1.324 MB / 0.6131 GB, free: 56.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/1.292, allocations: 0.5156 MB / 0.6136 GB, free: 56.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.302, allocations: 4.827 MB / 0.6183 GB, free: 54.47 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002712/1.305, allocations: 2.478 MB / 0.6207 GB, free: 52.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002315/1.307, allocations: 0.4915 MB / 0.6212 GB, free: 52.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006029/1.308, allocations: 154.5 kB / 0.6214 GB, free: 52.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.906e-06/1.308, allocations: 0 / 0.6214 GB, free: 52.21 MB / 442.7 MB Notification: Performance of Templates: time 0.0751/1.383, allocations: 30.75 MB / 0.6514 GB, free: 32.06 MB / 442.7 MB