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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 225.8 MB / 238.8 MB, free: 11.14 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.637e-05/2.649e-05, allocations: 0 / 292.2 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0869/0.08695, allocations: 50.41 MB / 342.6 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4575/0.5444, allocations: 159.1 MB / 0.49 GB, free: 248 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.5448, allocations: 95.75 kB / 0.49 GB, free: 196 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.24/2.785, allocations: 387.4 MB / 0.8684 GB, free: 32.84 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.826e-06/2.785, allocations: 1.188 kB / 0.8684 GB, free: 32.84 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.0008766/2.786, allocations: 283.3 kB / 0.8687 GB, free: 32.84 MB / 474.8 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.04463/2.831, allocations: 11.15 MB / 0.8796 GB, free: 30.84 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/2.831, allocations: 9.938 kB / 0.8796 GB, free: 30.84 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03412/2.865, allocations: 4.565 MB / 0.884 GB, free: 30.19 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02706/2.892, allocations: 9.74 MB / 0.8935 GB, free: 29.03 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008515/2.893, allocations: 0.8796 MB / 0.8944 GB, free: 29 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004095/2.897, allocations: 1.155 MB / 0.8955 GB, free: 28.99 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04666/2.943, allocations: 18.18 MB / 0.9133 GB, free: 27.56 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003791/2.944, allocations: 19.12 kB / 0.9133 GB, free: 27.55 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002374/2.946, allocations: 0.4981 MB / 0.9138 GB, free: 27.55 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008343/2.947, allocations: 0.8056 MB / 0.9146 GB, free: 27.52 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0392/2.986, allocations: 15.39 MB / 0.9296 GB, free: 27.47 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1152/3.102, allocations: 61.25 MB / 0.9894 GB, free: 2.492 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03663/3.138, allocations: 29.56 MB / 1.018 GB, free: 8.406 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008252/3.147, allocations: 3.995 MB / 1.022 GB, free: 6.84 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02334/3.17, allocations: 9.946 MB / 1.032 GB, free: 1.121 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.545e-05/3.17, allocations: 78.94 kB / 1.032 GB, free: 1.035 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=410): time 8.6e-06/3.17, allocations: 5.125 kB / 1.032 GB, free: 1.031 MB / 0.4949 GB Notification: Performance of matching and sorting (n=420): time 0.04205/3.212, allocations: 15.49 MB / 1.047 GB, free: 3.887 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/3.212, allocations: 124.4 kB / 1.047 GB, free: 3.746 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3207/3.533, allocations: 4.507 MB / 1.052 GB, free: 78.12 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007655/3.534, allocations: 94.27 kB / 1.052 GB, free: 78.09 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004605/3.538, allocations: 5.347 MB / 1.057 GB, free: 77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001867/3.54, allocations: 1.459 MB / 1.058 GB, free: 76.09 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006925/3.541, allocations: 128.4 kB / 1.058 GB, free: 76.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004771/3.542, allocations: 0.561 MB / 1.059 GB, free: 75.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006166/3.548, allocations: 2.81 MB / 1.062 GB, free: 75.76 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007674/3.555, allocations: 5.242 MB / 1.067 GB, free: 72.77 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008441/3.564, allocations: 4.018 MB / 1.071 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/3.564, allocations: 25.97 kB / 1.071 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.0223/3.586, allocations: 9.379 MB / 1.08 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/3.587, allocations: 43.27 kB / 1.08 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/3.587, allocations: 82.56 kB / 1.08 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/3.591, allocations: 1.133 MB / 1.081 GB, free: 72.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007575/3.598, allocations: 1.461 MB / 1.083 GB, free: 72.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/3.617, allocations: 12.47 MB / 1.095 GB, free: 66.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007091/3.624, allocations: 362.1 kB / 1.095 GB, free: 66.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/3.626, allocations: 321 kB / 1.095 GB, free: 66.72 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.001299/3.627, allocations: 0.5144 MB / 1.096 GB, free: 66.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/3.628, allocations: 0.5375 MB / 1.097 GB, free: 66.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01591/3.644, allocations: 7.046 MB / 1.103 GB, free: 65.77 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008917/3.653, allocations: 4.218 MB / 1.108 GB, free: 65.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.937e-05/3.653, allocations: 14.19 kB / 1.108 GB, free: 65.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.987e-05/3.653, allocations: 22.98 kB / 1.108 GB, free: 65.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03672/3.69, allocations: 17.04 MB / 1.124 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.23e-05/3.69, allocations: 3.594 kB / 1.124 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004305/3.695, allocations: 0.6951 MB / 1.125 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004576/3.699, allocations: 1.177 MB / 1.126 GB, free: 64.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003949/3.7, allocations: 104.7 kB / 1.126 GB, free: 64.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02179/3.721, allocations: 16.02 MB / 1.142 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.201e-06/3.721, allocations: 10.55 kB / 1.142 GB, free: 56.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02072/3.742, allocations: 10.84 MB / 1.152 GB, free: 53.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003568/3.746, allocations: 1.136 MB / 1.153 GB, free: 52.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/3.747, allocations: 80.97 kB / 1.154 GB, free: 52.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003515/3.751, allocations: 229.2 kB / 1.154 GB, free: 52.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007557/3.751, allocations: 308.7 kB / 1.154 GB, free: 52.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004159/3.752, allocations: 126.4 kB / 1.154 GB, free: 52.55 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00654/3.758, allocations: 3.365 MB / 1.157 GB, free: 51.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.99e-07/3.758, allocations: 3.062 kB / 1.157 GB, free: 51.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009152/3.767, allocations: 2.037 MB / 1.159 GB, free: 51.05 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.001464/3.769, allocations: 0.9441 MB / 1.16 GB, free: 50.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01425/3.783, allocations: 7.421 MB / 1.168 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/3.783, allocations: 2.75 kB / 1.168 GB, free: 47.73 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008028/3.791, allocations: 3.969 MB / 1.171 GB, free: 45.81 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007587/3.799, allocations: 1.304 MB / 1.173 GB, free: 45.45 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03906/3.838, allocations: 17.3 MB / 1.19 GB, free: 36.36 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01047/3.849, allocations: 7.581 MB / 1.197 GB, free: 30.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008134/3.857, allocations: 1.993 MB / 1.199 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001558/3.858, allocations: 404.1 kB / 1.199 GB, free: 29.01 MB / 0.5105 GB Notification: Performance of SimCode: time 1.827e-06/3.858, allocations: 0 / 1.199 GB, free: 29.01 MB / 0.5105 GB Notification: Performance of Templates: time 0.5317/4.39, allocations: 85.27 MB / 1.283 GB, free: 67.47 MB / 0.5105 GB