Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.696e-05, allocations: 3.438 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.07837, allocations: 44.51 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.375/0.4534, allocations: 110 MB / 409.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.4537, allocations: 83.2 kB / 409.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.271/0.7247, allocations: 74.72 MB / 484.6 MB, free: 3.566 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.188e-06/0.7248, allocations: 0 / 484.6 MB, free: 3.566 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003331/0.7251, allocations: 83.88 kB / 484.7 MB, free: 3.484 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01122/0.7364, allocations: 3.121 MB / 487.8 MB, free: 304 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.7364, allocations: 8.031 kB / 487.8 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004217/0.7407, allocations: 0.5853 MB / 488.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.7519, allocations: 3.095 MB / 491.5 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003454/0.7523, allocations: 230.3 kB / 491.7 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/0.7535, allocations: 315.9 kB / 492.1 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01262/0.7661, allocations: 3.92 MB / 496 MB, free: 7.949 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.7663, allocations: 3.906 kB / 496 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007621/0.7671, allocations: 132 kB / 496.1 MB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002194/0.7673, allocations: 146.2 kB / 496.3 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009654/0.777, allocations: 3.066 MB / 499.3 MB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0327/0.8098, allocations: 13.41 MB / 0.5007 GB, free: 6.727 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/0.8158, allocations: 3.899 MB / 0.5045 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002526/0.8183, allocations: 0.9889 MB / 0.5055 GB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2395/1.058, allocations: 2.65 MB / 0.5081 GB, free: 72.67 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/1.058, allocations: 43.64 kB / 0.5081 GB, free: 72.63 MB / 394.7 MB Notification: Performance of pre-optimization done (n=106): time 4.834e-06/1.058, allocations: 0 / 0.5081 GB, free: 72.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=140): time 0.01473/1.073, allocations: 5.146 MB / 0.5131 GB, free: 71.99 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/1.073, allocations: 67.72 kB / 0.5132 GB, free: 71.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004207/1.077, allocations: 1.638 MB / 0.5148 GB, free: 71.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000264/1.077, allocations: 48.73 kB / 0.5148 GB, free: 71.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001118/1.078, allocations: 1.434 MB / 0.5162 GB, free: 71.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005819/1.079, allocations: 489.6 kB / 0.5167 GB, free: 70.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/1.079, allocations: 35.84 kB / 0.5168 GB, free: 70.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/1.079, allocations: 383.7 kB / 0.5171 GB, free: 70.53 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/1.081, allocations: 0.7328 MB / 0.5178 GB, free: 70.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/1.083, allocations: 1.32 MB / 0.5191 GB, free: 69.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/1.085, allocations: 0.9789 MB / 0.5201 GB, free: 69.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.727e-05/1.086, allocations: 5.781 kB / 0.5201 GB, free: 69.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00532/1.091, allocations: 2.263 MB / 0.5223 GB, free: 69.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/1.091, allocations: 15.56 kB / 0.5223 GB, free: 69.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.861e-05/1.091, allocations: 20.19 kB / 0.5223 GB, free: 69.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004522/1.091, allocations: 119.3 kB / 0.5224 GB, free: 69.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/1.094, allocations: 487.4 kB / 0.5229 GB, free: 69.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/1.095, allocations: 1.31 MB / 0.5242 GB, free: 68.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/1.098, allocations: 110 kB / 0.5243 GB, free: 68.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/1.098, allocations: 84.14 kB / 0.5244 GB, free: 68.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 225 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004299/1.099, allocations: 221.4 kB / 0.5246 GB, free: 68.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000557/1.099, allocations: 195.8 kB / 0.5248 GB, free: 68.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004067/1.103, allocations: 1.902 MB / 0.5266 GB, free: 68.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/1.103, allocations: 24.64 kB / 0.5266 GB, free: 68.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.907e-06/1.103, allocations: 0 / 0.5266 GB, free: 68.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/1.103, allocations: 7.578 kB / 0.5267 GB, free: 68.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/1.115, allocations: 4.926 MB / 0.5315 GB, free: 67.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/1.115, allocations: 2.531 kB / 0.5315 GB, free: 67.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/1.117, allocations: 308.9 kB / 0.5318 GB, free: 67.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004229/1.117, allocations: 99.05 kB / 0.5319 GB, free: 67.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001835/1.118, allocations: 32.97 kB / 0.5319 GB, free: 67.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009002/1.118, allocations: 1.278 MB / 0.5331 GB, free: 66.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.995e-06/1.118, allocations: 0 / 0.5331 GB, free: 66.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005697/1.124, allocations: 3.126 MB / 0.5362 GB, free: 65.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/1.126, allocations: 462.7 kB / 0.5366 GB, free: 65.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000578/1.126, allocations: 22.69 kB / 0.5367 GB, free: 65.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/1.128, allocations: 85.61 kB / 0.5367 GB, free: 65.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/1.128, allocations: 88.2 kB / 0.5368 GB, free: 65.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.128, allocations: 37.22 kB / 0.5369 GB, free: 65.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002734/1.131, allocations: 1.245 MB / 0.5381 GB, free: 65.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.131e-06/1.131, allocations: 2.844 kB / 0.5381 GB, free: 65.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002964/1.134, allocations: 0.577 MB / 0.5386 GB, free: 65.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 136 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008561/1.135, allocations: 0.4899 MB / 0.5391 GB, free: 65.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004881/1.14, allocations: 2.138 MB / 0.5412 GB, free: 64.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.093e-06/1.14, allocations: 0 / 0.5412 GB, free: 64.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002184/1.142, allocations: 1.147 MB / 0.5423 GB, free: 64.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003027/1.145, allocations: 474.6 kB / 0.5428 GB, free: 64.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/1.156, allocations: 4.435 MB / 0.5471 GB, free: 63.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/1.158, allocations: 2.267 MB / 0.5493 GB, free: 62.76 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009408/1.159, allocations: 164 kB / 0.5495 GB, free: 62.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.828e-06/1.159, allocations: 4 kB / 0.5495 GB, free: 62.75 MB / 394.7 MB Notification: Performance of Templates: time 0.1604/1.32, allocations: 82.02 MB / 0.6296 GB, free: 14.07 MB / 394.7 MB