Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.146e-05/4.168e-05, allocations: 0 / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.08, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.4685, allocations: 113 MB / 412.9 MB, free: 12.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.4687, allocations: 88.36 kB / 413 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2862/0.755, allocations: 80.15 MB / 493.2 MB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.397e-06/0.755, allocations: 0 / 493.2 MB, free: 10.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003248/0.7554, allocations: 103.9 kB / 493.3 MB, free: 10.53 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.01046/0.7658, allocations: 3.416 MB / 496.7 MB, free: 7.047 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.7659, allocations: 8.031 kB / 496.7 MB, free: 7.039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003982/0.7699, allocations: 0.6435 MB / 497.3 MB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.7808, allocations: 3.363 MB / 0.489 GB, free: 2.973 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002921/0.7812, allocations: 254.9 kB / 0.4892 GB, free: 2.723 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007578/0.7819, allocations: 343.9 kB / 0.4895 GB, free: 2.387 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.7924, allocations: 4.275 MB / 0.4937 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.904e-05/0.7926, allocations: 4 kB / 0.4937 GB, free: 13.97 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004967/0.7931, allocations: 144 kB / 0.4939 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/0.7933, allocations: 162.8 kB / 0.494 GB, free: 13.67 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009004/0.8023, allocations: 3.379 MB / 0.4973 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.276/1.078, allocations: 14.53 MB / 0.5115 GB, free: 63.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/1.084, allocations: 5.312 MB / 0.5167 GB, free: 59.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00257/1.087, allocations: 1.254 MB / 0.5179 GB, free: 59.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008959/1.096, allocations: 3.835 MB / 0.5217 GB, free: 58.63 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/1.096, allocations: 46.31 kB / 0.5217 GB, free: 58.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 5.232e-06/1.096, allocations: 0 / 0.5217 GB, free: 58.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.00857/1.104, allocations: 4.224 MB / 0.5258 GB, free: 57.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/1.104, allocations: 65.09 kB / 0.5259 GB, free: 57.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003411/1.108, allocations: 1.824 MB / 0.5277 GB, free: 57.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/1.108, allocations: 53.17 kB / 0.5277 GB, free: 57.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.109, allocations: 1.652 MB / 0.5293 GB, free: 56.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/1.109, allocations: 458.2 kB / 0.5298 GB, free: 56.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/1.11, allocations: 33.66 kB / 0.5298 GB, free: 56.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/1.11, allocations: 381.7 kB / 0.5302 GB, free: 56.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/1.111, allocations: 0.6857 MB / 0.5308 GB, free: 56.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/1.113, allocations: 1.29 MB / 0.5321 GB, free: 55.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001779/1.115, allocations: 0.9306 MB / 0.533 GB, free: 55.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/1.115, allocations: 7.922 kB / 0.533 GB, free: 55.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004996/1.12, allocations: 2.398 MB / 0.5354 GB, free: 55.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/1.12, allocations: 11.84 kB / 0.5354 GB, free: 55.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/1.12, allocations: 17.97 kB / 0.5354 GB, free: 55.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/1.12, allocations: 147.2 kB / 0.5355 GB, free: 55.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/1.122, allocations: 454.8 kB / 0.536 GB, free: 55.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002456/1.125, allocations: 3.068 MB / 0.539 GB, free: 52.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002153/1.127, allocations: 110.3 kB / 0.5391 GB, free: 52.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/1.127, allocations: 81.22 kB / 0.5391 GB, free: 52.5 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.0003664/1.128, allocations: 222.6 kB / 0.5394 GB, free: 52.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003678/1.128, allocations: 215 kB / 0.5396 GB, free: 52.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004446/1.132, allocations: 2.135 MB / 0.5416 GB, free: 51.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/1.133, allocations: 11.94 kB / 0.5417 GB, free: 51.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.133, allocations: 4.312 kB / 0.5417 GB, free: 51.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/1.133, allocations: 7.453 kB / 0.5417 GB, free: 51.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/1.143, allocations: 5.126 MB / 0.5467 GB, free: 51.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/1.143, allocations: 9.281 kB / 0.5467 GB, free: 51.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/1.144, allocations: 224.2 kB / 0.5469 GB, free: 51.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009718/1.145, allocations: 273.5 kB / 0.5472 GB, free: 51.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/1.146, allocations: 30.58 kB / 0.5472 GB, free: 51.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006941/1.153, allocations: 7.093 MB / 0.5541 GB, free: 45.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.392e-06/1.153, allocations: 10 kB / 0.5541 GB, free: 45.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005845/1.158, allocations: 3.273 MB / 0.5573 GB, free: 45.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001183/1.16, allocations: 471.3 kB / 0.5578 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004037/1.16, allocations: 29.84 kB / 0.5578 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/1.162, allocations: 72 kB / 0.5579 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/1.162, allocations: 86.22 kB / 0.5579 GB, free: 44.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/1.162, allocations: 41.42 kB / 0.558 GB, free: 44.91 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002562/1.165, allocations: 1.388 MB / 0.5593 GB, free: 44.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.81e-07/1.165, allocations: 0 / 0.5593 GB, free: 44.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002838/1.167, allocations: 0.6145 MB / 0.5599 GB, free: 44.75 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.0007089/1.168, allocations: 0.4902 MB / 0.5604 GB, free: 44.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003425/1.172, allocations: 1.986 MB / 0.5624 GB, free: 43.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.735e-06/1.172, allocations: 0 / 0.5624 GB, free: 43.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002254/1.174, allocations: 1.315 MB / 0.5636 GB, free: 43.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002775/1.177, allocations: 0.4962 MB / 0.5641 GB, free: 42.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/1.187, allocations: 4.826 MB / 0.5688 GB, free: 40.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002672/1.19, allocations: 2.477 MB / 0.5713 GB, free: 39.81 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002343/1.192, allocations: 0.4908 MB / 0.5717 GB, free: 39.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005664/1.193, allocations: 148.8 kB / 0.5719 GB, free: 39.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.964e-06/1.193, allocations: 0 / 0.5719 GB, free: 39.75 MB / 394.7 MB Notification: Performance of Templates: time 0.07465/1.267, allocations: 30.37 MB / 0.6015 GB, free: 36.44 MB / 394.7 MB