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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.049e-05, allocations: 7.938 kB / 292.7 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09398, allocations: 50.41 MB / 343.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4586/0.5526, allocations: 159.1 MB / 0.4905 GB, free: 212 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002979/0.553, allocations: 105.5 kB / 0.4906 GB, free: 152 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883/2.436, allocations: 387.4 MB / 0.8689 GB, free: 32.97 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.096e-06/2.436, allocations: 1.094 kB / 0.8689 GB, free: 32.97 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008896/2.437, allocations: 273.5 kB / 0.8692 GB, free: 32.97 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04489/2.482, allocations: 11.15 MB / 0.8801 GB, free: 31.05 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/2.482, allocations: 9.406 kB / 0.8801 GB, free: 31.05 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03498/2.517, allocations: 4.566 MB / 0.8845 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02808/2.545, allocations: 9.74 MB / 0.8941 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009087/2.546, allocations: 0.877 MB / 0.8949 GB, free: 29.21 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004082/2.55, allocations: 1.163 MB / 0.896 GB, free: 29.2 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04505/2.595, allocations: 18.18 MB / 0.9138 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003719/2.595, allocations: 15.25 kB / 0.9138 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002291/2.598, allocations: 0.4987 MB / 0.9143 GB, free: 27.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008657/2.599, allocations: 0.7968 MB / 0.9151 GB, free: 27.74 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04872/2.647, allocations: 15.4 MB / 0.9301 GB, free: 27.68 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1432/2.791, allocations: 61.25 MB / 0.9899 GB, free: 2.613 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03747/2.828, allocations: 29.56 MB / 1.019 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008198/2.836, allocations: 4.001 MB / 1.023 GB, free: 6.957 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02355/2.86, allocations: 9.942 MB / 1.032 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.898e-05/2.86, allocations: 77.19 kB / 1.032 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=410): time 8.297e-06/2.86, allocations: 0 / 1.032 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of matching and sorting (n=420): time 0.04221/2.902, allocations: 15.48 MB / 1.048 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/2.902, allocations: 127.6 kB / 1.048 GB, free: 3.734 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3222/3.225, allocations: 4.508 MB / 1.052 GB, free: 78.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007346/3.225, allocations: 93.08 kB / 1.052 GB, free: 78.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004681/3.23, allocations: 5.349 MB / 1.057 GB, free: 77.16 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001727/3.232, allocations: 1.452 MB / 1.059 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005215/3.232, allocations: 130.3 kB / 1.059 GB, free: 76.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004615/3.233, allocations: 0.5666 MB / 1.06 GB, free: 75.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006108/3.239, allocations: 2.812 MB / 1.062 GB, free: 75.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00708/3.246, allocations: 5.239 MB / 1.067 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008168/3.254, allocations: 4.023 MB / 1.071 GB, free: 72.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001003/3.254, allocations: 22.78 kB / 1.071 GB, free: 72.86 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02141/3.276, allocations: 9.384 MB / 1.081 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.685e-05/3.276, allocations: 46.98 kB / 1.081 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/3.276, allocations: 80.78 kB / 1.081 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004225/3.28, allocations: 1.126 MB / 1.082 GB, free: 72.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007793/3.288, allocations: 1.457 MB / 1.083 GB, free: 72.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02249/3.311, allocations: 12.48 MB / 1.095 GB, free: 66.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/3.322, allocations: 359.7 kB / 1.096 GB, free: 66.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/3.323, allocations: 324.8 kB / 1.096 GB, free: 66.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001916/3.325, allocations: 0.506 MB / 1.096 GB, free: 66.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001954/3.327, allocations: 0.5313 MB / 1.097 GB, free: 66.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02655/3.354, allocations: 7.055 MB / 1.104 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01031/3.364, allocations: 4.219 MB / 1.108 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.113e-05/3.364, allocations: 13.88 kB / 1.108 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.545e-05/3.364, allocations: 24.33 kB / 1.108 GB, free: 65.76 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03537/3.4, allocations: 17.03 MB / 1.125 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.41e-05/3.4, allocations: 9.406 kB / 1.125 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004258/3.404, allocations: 0.6846 MB / 1.125 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004261/3.408, allocations: 1.186 MB / 1.127 GB, free: 64.51 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006655/3.409, allocations: 99.55 kB / 1.127 GB, free: 64.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03361/3.443, allocations: 16.03 MB / 1.142 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.378e-05/3.443, allocations: 12.95 kB / 1.142 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03308/3.476, allocations: 10.83 MB / 1.153 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003649/3.48, allocations: 1.144 MB / 1.154 GB, free: 52.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001394/3.481, allocations: 84.14 kB / 1.154 GB, free: 52.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003958/3.485, allocations: 225.8 kB / 1.154 GB, free: 52.67 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009258/3.486, allocations: 309.7 kB / 1.155 GB, free: 52.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004456/3.487, allocations: 119.8 kB / 1.155 GB, free: 52.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007066/3.494, allocations: 3.371 MB / 1.158 GB, free: 51.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.787e-06/3.494, allocations: 0 / 1.158 GB, free: 51.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00981/3.503, allocations: 2.036 MB / 1.16 GB, free: 51.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001536/3.505, allocations: 0.9464 MB / 1.161 GB, free: 50.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01468/3.52, allocations: 7.429 MB / 1.168 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/3.52, allocations: 3.219 kB / 1.168 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007965/3.528, allocations: 3.966 MB / 1.172 GB, free: 45.85 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00732/3.535, allocations: 1.307 MB / 1.173 GB, free: 45.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05552/3.591, allocations: 17.3 MB / 1.19 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01767/3.608, allocations: 7.575 MB / 1.198 GB, free: 30.67 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01048/3.619, allocations: 1.996 MB / 1.2 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/3.62, allocations: 401.5 kB / 1.2 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of SimCode: time 2.016e-06/3.62, allocations: 0 / 1.2 GB, free: 28.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.6198/4.24, allocations: 84.88 MB / 1.283 GB, free: 67.62 MB / 0.5105 GB