Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.838/1.838, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.943e-05/4.019e-05, allocations: 4 kB / 255.4 MB, free: 2.676 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 44.5 MB / 299.9 MB, free: 6.117 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4213/0.5264, allocations: 151.8 MB / 451.7 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5267, allocations: 94.38 kB / 451.8 MB, free: 11.99 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.838/2.365, allocations: 389.6 MB / 0.8217 GB, free: 26.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.474e-06/2.365, allocations: 0 / 0.8217 GB, free: 26.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008157/2.366, allocations: 293.8 kB / 0.822 GB, free: 26.02 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.04488/2.411, allocations: 11.22 MB / 0.833 GB, free: 22.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/2.411, allocations: 9.156 kB / 0.833 GB, free: 22.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03912/2.45, allocations: 5.205 MB / 0.8381 GB, free: 21.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02834/2.478, allocations: 9.636 MB / 0.8475 GB, free: 20.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0012/2.479, allocations: 0.9013 MB / 0.8483 GB, free: 20.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004916/2.484, allocations: 1.172 MB / 0.8495 GB, free: 20.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05456/2.539, allocations: 19.18 MB / 0.8682 GB, free: 19.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005316/2.54, allocations: 22.67 kB / 0.8682 GB, free: 19.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004204/2.544, allocations: 0.5039 MB / 0.8687 GB, free: 19.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009878/2.545, allocations: 0.779 MB / 0.8695 GB, free: 19.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04334/2.588, allocations: 16.91 MB / 0.886 GB, free: 19.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1412/2.729, allocations: 63.22 MB / 0.9477 GB, free: 2.586 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3328/3.062, allocations: 22.77 MB / 0.97 GB, free: 52.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01597/3.078, allocations: 7.292 MB / 0.9771 GB, free: 52.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05217/3.131, allocations: 22.81 MB / 0.9994 GB, free: 51.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.085e-05/3.131, allocations: 98.86 kB / 0.9995 GB, free: 51.78 MB / 458.7 MB Notification: Performance of pre-optimization done (n=746): time 1.362e-05/3.131, allocations: 0 / 0.9995 GB, free: 51.78 MB / 458.7 MB Notification: Performance of matching and sorting (n=756): time 0.05952/3.19, allocations: 25.89 MB / 1.025 GB, free: 48.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.744e-05/3.19, allocations: 145.2 kB / 1.025 GB, free: 48.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008201/3.199, allocations: 3.865 MB / 1.029 GB, free: 47.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001334/3.2, allocations: 131.6 kB / 1.029 GB, free: 47.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00316/3.203, allocations: 4.762 MB / 1.033 GB, free: 45.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003212/3.206, allocations: 2.513 MB / 1.036 GB, free: 43.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009086/3.207, allocations: 149.7 kB / 1.036 GB, free: 43.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006299/3.208, allocations: 0.626 MB / 1.037 GB, free: 43.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009553/3.218, allocations: 4.72 MB / 1.041 GB, free: 42.21 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0117/3.229, allocations: 6.537 MB / 1.048 GB, free: 38.08 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/3.241, allocations: 5.878 MB / 1.053 GB, free: 35.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-05/3.242, allocations: 14.34 kB / 1.053 GB, free: 35.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.05333/3.295, allocations: 14.06 MB / 1.067 GB, free: 30.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/3.295, allocations: 32.27 kB / 1.067 GB, free: 30.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/3.295, allocations: 52.69 kB / 1.067 GB, free: 30.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0166/3.312, allocations: 3.354 MB / 1.07 GB, free: 29.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01568/3.328, allocations: 1.483 MB / 1.072 GB, free: 28.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02029/3.348, allocations: 13.83 MB / 1.085 GB, free: 18.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007152/3.355, allocations: 392.5 kB / 1.086 GB, free: 18.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001854/3.357, allocations: 338.4 kB / 1.086 GB, free: 18.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.001766/3.359, allocations: 0.5182 MB / 1.087 GB, free: 18.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001697/3.361, allocations: 0.5912 MB / 1.087 GB, free: 18.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02878/3.389, allocations: 13.44 MB / 1.1 GB, free: 9.227 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02127/3.411, allocations: 10.3 MB / 1.11 GB, free: 76 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.633e-05/3.411, allocations: 10.53 kB / 1.11 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001308/3.411, allocations: 31.86 kB / 1.11 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06754/3.478, allocations: 27.91 MB / 1.138 GB, free: 8.715 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-05/3.479, allocations: 4 kB / 1.138 GB, free: 8.711 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006169/3.485, allocations: 0.9413 MB / 1.139 GB, free: 7.988 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01027/3.495, allocations: 3.449 MB / 1.142 GB, free: 5.156 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001342/3.496, allocations: 167.2 kB / 1.142 GB, free: 5.012 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3198/3.816, allocations: 18.18 MB / 1.16 GB, free: 76.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-05/3.816, allocations: 12.61 kB / 1.16 GB, free: 76.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04179/3.858, allocations: 20.61 MB / 1.18 GB, free: 74.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005472/3.864, allocations: 1.726 MB / 1.182 GB, free: 74.47 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002689/3.866, allocations: 120.6 kB / 1.182 GB, free: 74.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005856/3.872, allocations: 318.5 kB / 1.182 GB, free: 74.47 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002142/3.874, allocations: 0.5485 MB / 1.183 GB, free: 74.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009845/3.875, allocations: 207.9 kB / 1.183 GB, free: 74.46 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006803/3.882, allocations: 2.901 MB / 1.186 GB, free: 74.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.102e-06/3.882, allocations: 0 / 1.186 GB, free: 74.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01149/3.894, allocations: 2.149 MB / 1.188 GB, free: 74.26 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.002533/3.896, allocations: 0.9292 MB / 1.189 GB, free: 74.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0249/3.921, allocations: 11.83 MB / 1.2 GB, free: 73.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.885e-06/3.921, allocations: 3.781 kB / 1.2 GB, free: 73.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01451/3.936, allocations: 6.481 MB / 1.207 GB, free: 72.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008365/3.944, allocations: 1.304 MB / 1.208 GB, free: 72.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05145/3.996, allocations: 21.27 MB / 1.229 GB, free: 69.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01546/4.011, allocations: 7.764 MB / 1.236 GB, free: 67.09 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008613/4.02, allocations: 1.815 MB / 1.238 GB, free: 66.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/4.022, allocations: 414.3 kB / 1.238 GB, free: 66.86 MB / 490.7 MB Notification: Performance of SimCode: time 1.884e-06/4.022, allocations: 0 / 1.238 GB, free: 66.86 MB / 490.7 MB Notification: Performance of Templates: time 0.5652/4.588, allocations: 121.2 MB / 1.357 GB, free: 79.96 MB / 490.7 MB