Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.791/1.791, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.787e-05/2.805e-05, allocations: 4 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.0808, allocations: 44.51 MB / 299.8 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4578, allocations: 113 MB / 412.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.4581, allocations: 88.08 kB / 413 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2953/0.7534, allocations: 80.14 MB / 493.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.763e-06/0.7534, allocations: 0 / 493.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003715/0.7538, allocations: 95.88 kB / 493.2 MB, free: 11.03 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01219/0.766, allocations: 3.426 MB / 496.6 MB, free: 7.539 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.7661, allocations: 11.97 kB / 496.6 MB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004636/0.7707, allocations: 0.6396 MB / 497.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.7829, allocations: 3.351 MB / 0.4889 GB, free: 3.477 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003895/0.7833, allocations: 266.9 kB / 0.4892 GB, free: 3.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001404/0.7847, allocations: 343.9 kB / 0.4895 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01372/0.7985, allocations: 4.32 MB / 0.4937 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001297/0.7987, allocations: 4 kB / 0.4937 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000713/0.7994, allocations: 144 kB / 0.4938 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002326/0.7996, allocations: 154.8 kB / 0.494 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/0.8102, allocations: 3.428 MB / 0.4973 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2692/1.079, allocations: 14.54 MB / 0.5115 GB, free: 62.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005668/1.085, allocations: 5.321 MB / 0.5167 GB, free: 58.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002666/1.088, allocations: 1.261 MB / 0.518 GB, free: 58.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008924/1.097, allocations: 3.846 MB / 0.5217 GB, free: 58.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/1.097, allocations: 45.81 kB / 0.5218 GB, free: 57.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 5.064e-06/1.097, allocations: 1.188 kB / 0.5218 GB, free: 57.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.008917/1.106, allocations: 4.225 MB / 0.5259 GB, free: 56.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/1.106, allocations: 65.09 kB / 0.526 GB, free: 56.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003535/1.109, allocations: 1.825 MB / 0.5277 GB, free: 56.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002183/1.11, allocations: 47.55 kB / 0.5278 GB, free: 56.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009336/1.111, allocations: 1.559 MB / 0.5293 GB, free: 56.03 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004451/1.111, allocations: 460.3 kB / 0.5297 GB, free: 55.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/1.111, allocations: 41.78 kB / 0.5298 GB, free: 55.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/1.111, allocations: 381 kB / 0.5301 GB, free: 55.47 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/1.113, allocations: 0.6866 MB / 0.5308 GB, free: 55.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/1.115, allocations: 1.296 MB / 0.5321 GB, free: 54.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/1.116, allocations: 0.9313 MB / 0.533 GB, free: 54.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.487e-05/1.116, allocations: 7.406 kB / 0.533 GB, free: 54.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004761/1.121, allocations: 2.314 MB / 0.5353 GB, free: 54.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/1.121, allocations: 11.69 kB / 0.5353 GB, free: 54.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/1.121, allocations: 19.53 kB / 0.5353 GB, free: 54.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004452/1.122, allocations: 144.7 kB / 0.5354 GB, free: 54.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002256/1.124, allocations: 460.2 kB / 0.5359 GB, free: 54.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/1.127, allocations: 3.063 MB / 0.5389 GB, free: 51.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/1.129, allocations: 114.4 kB / 0.539 GB, free: 51.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/1.129, allocations: 88.25 kB / 0.539 GB, free: 51.89 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 219 * 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.0004077/1.13, allocations: 222.1 kB / 0.5393 GB, free: 51.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004694/1.13, allocations: 217 kB / 0.5395 GB, free: 51.65 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004461/1.135, allocations: 2.134 MB / 0.5416 GB, free: 51.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/1.135, allocations: 20.88 kB / 0.5416 GB, free: 51.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/1.135, allocations: 3.938 kB / 0.5416 GB, free: 51.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/1.135, allocations: 3.141 kB / 0.5416 GB, free: 51.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/1.146, allocations: 5.128 MB / 0.5466 GB, free: 50.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.146, allocations: 0 / 0.5466 GB, free: 50.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/1.147, allocations: 230.7 kB / 0.5468 GB, free: 50.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/1.148, allocations: 275.9 kB / 0.5471 GB, free: 50.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/1.148, allocations: 32.98 kB / 0.5471 GB, free: 50.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006984/1.155, allocations: 7.091 MB / 0.554 GB, free: 45.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.135e-06/1.155, allocations: 3.281 kB / 0.554 GB, free: 45.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005721/1.161, allocations: 3.287 MB / 0.5572 GB, free: 44.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/1.163, allocations: 461.9 kB / 0.5577 GB, free: 44.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/1.163, allocations: 32.78 kB / 0.5577 GB, free: 44.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/1.164, allocations: 78.98 kB / 0.5578 GB, free: 44.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/1.165, allocations: 91.17 kB / 0.5579 GB, free: 44.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/1.165, allocations: 40.75 kB / 0.5579 GB, free: 44.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002714/1.167, allocations: 1.383 MB / 0.5593 GB, free: 44.14 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.09e-07/1.167, allocations: 0 / 0.5593 GB, free: 44.14 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003175/1.171, allocations: 0.6091 MB / 0.5599 GB, free: 44.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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.0007908/1.171, allocations: 492.1 kB / 0.5603 GB, free: 44.01 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003762/1.175, allocations: 2.024 MB / 0.5623 GB, free: 43.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.897e-06/1.175, allocations: 3.656 kB / 0.5623 GB, free: 43.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/1.178, allocations: 1.351 MB / 0.5636 GB, free: 42.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/1.181, allocations: 0.5164 MB / 0.5641 GB, free: 42.39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/1.192, allocations: 4.859 MB / 0.5689 GB, free: 40.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002574/1.195, allocations: 2.425 MB / 0.5712 GB, free: 39.32 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008698/1.196, allocations: 172.8 kB / 0.5714 GB, free: 39.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/1.196, allocations: 0 / 0.5714 GB, free: 39.3 MB / 394.7 MB Notification: Performance of Templates: time 0.3553/1.551, allocations: 94.91 MB / 0.6641 GB, free: 82.3 MB / 410.7 MB