Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.767/1.767, allocations: 194.9 MB / 210.6 MB, free: 9.316 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.402e-05, allocations: 0 / 258.8 MB, free: 8.996 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3079, allocations: 44.5 MB / 303.3 MB, free: 12.87 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05247/0.3604, allocations: 33.2 MB / 336.5 MB, free: 12.44 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02589/0.3864, allocations: 9.583 MB / 346.1 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00727/0.3937, allocations: 339.1 kB / 346.5 MB, free: 2.496 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008893/0.4027, allocations: 2.102 MB / 348.6 MB, free: 388 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01605/0.4187, allocations: 3.571 MB / 352.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008847/0.4276, allocations: 1.791 MB / 353.9 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02105/0.4487, allocations: 8.53 MB / 362.5 MB, free: 2.465 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04401/0.4928, allocations: 17.07 MB / 379.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008192/0.501, allocations: 3.799 MB / 383.3 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01/0.5111, allocations: 4.59 MB / 387.9 MB, free: 8.914 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005072/0.5162, allocations: 0.6988 MB / 388.6 MB, free: 8.215 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002462/0.5187, allocations: 408 kB / 389 MB, free: 7.816 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003495/0.5222, allocations: 2.136 MB / 391.2 MB, free: 5.672 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004247/0.5265, allocations: 0.9648 MB / 392.1 MB, free: 4.707 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03205/0.5586, allocations: 22.44 MB / 414.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.5586, allocations: 4 kB / 414.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5586, allocations: 0 / 414.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006691/0.5593, allocations: 0 / 414.6 MB, free: 14.2 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.05023/0.6096, allocations: 12.74 MB / 427.3 MB, free: 1.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.6096, allocations: 8.031 kB / 427.3 MB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5739/1.184, allocations: 9.078 MB / 436.4 MB, free: 85.37 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02035/1.204, allocations: 7.589 MB / 444 MB, free: 80.33 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001112/1.205, allocations: 0.9646 MB / 444.9 MB, free: 79.9 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005252/1.21, allocations: 1.268 MB / 446.2 MB, free: 79.48 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05844/1.269, allocations: 20.3 MB / 466.5 MB, free: 60.43 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005139/1.269, allocations: 22.78 kB / 466.5 MB, free: 60.41 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003955/1.273, allocations: 0.5256 MB / 467.1 MB, free: 59.9 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00088/1.274, allocations: 0.7494 MB / 467.8 MB, free: 59.15 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05234/1.327, allocations: 19.11 MB / 486.9 MB, free: 40.03 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1417/1.468, allocations: 65.09 MB / 0.5391 GB, free: 5.602 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.377/1.845, allocations: 57.14 MB / 0.5949 GB, free: 95.47 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02983/1.875, allocations: 11.73 MB / 0.6063 GB, free: 91.22 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/1.875, allocations: 73.06 kB / 0.6064 GB, free: 91.15 MB / 442.8 MB Notification: Performance of pre-optimization done (n=369): time 6.653e-06/1.875, allocations: 0 / 0.6064 GB, free: 91.15 MB / 442.8 MB Notification: Performance of matching and sorting (n=411): time 0.05481/1.93, allocations: 18.14 MB / 0.6241 GB, free: 83.32 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/1.93, allocations: 93.7 kB / 0.6242 GB, free: 83.25 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009869/1.94, allocations: 4.9 MB / 0.629 GB, free: 81.45 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007287/1.941, allocations: 97.08 kB / 0.6291 GB, free: 81.36 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004018/1.945, allocations: 6.043 MB / 0.635 GB, free: 76.8 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001754/1.947, allocations: 1.45 MB / 0.6364 GB, free: 75.7 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006686/1.948, allocations: 157.5 kB / 0.6365 GB, free: 75.58 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004478/1.948, allocations: 0.6209 MB / 0.6372 GB, free: 75.14 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007241/1.955, allocations: 3.128 MB / 0.6402 GB, free: 73.97 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009164/1.964, allocations: 6.833 MB / 0.6469 GB, free: 67.32 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/1.975, allocations: 4.661 MB / 0.6514 GB, free: 62.95 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.114e-05/1.975, allocations: 36 kB / 0.6515 GB, free: 62.91 MB / 442.8 MB Notification: Performance of matching and sorting (n=1012) (initialization): time 0.02674/2.001, allocations: 10.99 MB / 0.6622 GB, free: 51.86 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.271e-05/2.002, allocations: 60 kB / 0.6623 GB, free: 51.8 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/2.002, allocations: 132 kB / 0.6624 GB, free: 51.68 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003744/2.006, allocations: 0.9806 MB / 0.6633 GB, free: 50.68 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01179/2.017, allocations: 1.864 MB / 0.6652 GB, free: 48.81 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/2.033, allocations: 9.73 MB / 0.6747 GB, free: 38.69 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008434/2.042, allocations: 447.3 kB / 0.6751 GB, free: 38.25 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001285/2.043, allocations: 435.9 kB / 0.6755 GB, free: 37.82 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (963): * Single equations (assignments): 958 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009907/2.053, allocations: 4.472 MB / 0.6799 GB, free: 33.34 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001582/2.055, allocations: 0.5759 MB / 0.6804 GB, free: 32.75 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01654/2.071, allocations: 6.751 MB / 0.687 GB, free: 25.96 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.574e-05/2.071, allocations: 44 kB / 0.6871 GB, free: 25.92 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.692e-05/2.071, allocations: 11.98 kB / 0.6871 GB, free: 25.91 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.334e-05/2.071, allocations: 19.92 kB / 0.6871 GB, free: 25.89 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03783/2.109, allocations: 16.54 MB / 0.7032 GB, free: 9.312 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/2.109, allocations: 4 kB / 0.7032 GB, free: 9.309 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00636/2.116, allocations: 0.7962 MB / 0.704 GB, free: 8.512 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003417/2.119, allocations: 0.7885 MB / 0.7048 GB, free: 7.707 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003797/2.12, allocations: 83.98 kB / 0.7049 GB, free: 7.625 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0145/2.134, allocations: 8.844 MB / 0.7135 GB, free: 14.38 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/2.134, allocations: 7.938 kB / 0.7135 GB, free: 14.38 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02561/2.16, allocations: 10.43 MB / 0.7237 GB, free: 3.723 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003855/2.164, allocations: 1.142 MB / 0.7248 GB, free: 2.555 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001514/2.165, allocations: 76 kB / 0.7249 GB, free: 2.48 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004522/2.17, allocations: 223.8 kB / 0.7251 GB, free: 2.262 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007783/2.171, allocations: 290.8 kB / 0.7254 GB, free: 1.977 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004206/2.171, allocations: 116 kB / 0.7255 GB, free: 1.863 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.008652/2.18, allocations: 3.612 MB / 0.729 GB, free: 14.28 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.042e-06/2.18, allocations: 3.938 kB / 0.729 GB, free: 14.28 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01047/2.19, allocations: 2.042 MB / 0.731 GB, free: 12.24 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (392): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(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%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/2.191, allocations: 260.5 kB / 0.7313 GB, free: 11.98 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02053/2.212, allocations: 8.224 MB / 0.7393 GB, free: 3.691 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/2.212, allocations: 0 / 0.7393 GB, free: 3.691 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009415/2.221, allocations: 3.63 MB / 0.7428 GB, free: 15.98 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00944/2.231, allocations: 1.282 MB / 0.7441 GB, free: 14.71 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05781/2.289, allocations: 25.41 MB / 0.7689 GB, free: 5.203 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3039/2.593, allocations: 7.892 MB / 0.7766 GB, free: 197.2 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01176/2.604, allocations: 2.4 MB / 0.779 GB, free: 197.1 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/2.607, allocations: 454.3 kB / 0.7794 GB, free: 197.1 MB / 0.4949 GB Notification: Performance of SimCode: time 1.092e-06/2.607, allocations: 0 / 0.7794 GB, free: 197.1 MB / 0.4949 GB Notification: Performance of Templates: time 0.2742/2.881, allocations: 75.59 MB / 0.8532 GB, free: 141.7 MB / 0.4949 GB