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 2.114/2.114, allocations: 195 MB / 203.2 MB, free: 6.754 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.691e-05, allocations: 2.75 kB / 249.6 MB, free: 5.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08097/0.08102, allocations: 44.5 MB / 294.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.4528, allocations: 112.4 MB / 406.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.4531, allocations: 86.2 kB / 406.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3105/0.7636, allocations: 79.09 MB / 485.7 MB, free: 4.082 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7637, allocations: 0 / 485.7 MB, free: 4.082 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003796/0.764, allocations: 95.86 kB / 485.8 MB, free: 3.988 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.01202/0.7761, allocations: 3.424 MB / 489.2 MB, free: 0.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.7761, allocations: 8.031 kB / 489.2 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004464/0.7806, allocations: 0.6435 MB / 489.8 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.7928, allocations: 3.359 MB / 493.2 MB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.7931, allocations: 112 kB / 493.3 MB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/0.7944, allocations: 203.9 kB / 493.5 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009751/0.8041, allocations: 3.192 MB / 496.7 MB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.8166, allocations: 3.814 MB / 0.4888 GB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.8168, allocations: 7.938 kB / 0.4888 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003952/0.8172, allocations: 0 / 0.4888 GB, free: 4.965 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002276/0.8174, allocations: 162.8 kB / 0.4889 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2584/1.076, allocations: 13.87 MB / 0.5025 GB, free: 72.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006007/1.082, allocations: 5.327 MB / 0.5077 GB, free: 68.38 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002762/1.085, allocations: 1.222 MB / 0.5089 GB, free: 68.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009099/1.094, allocations: 3.807 MB / 0.5126 GB, free: 67.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/1.094, allocations: 49.28 kB / 0.5126 GB, free: 67.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=131): time 4.888e-06/1.094, allocations: 0 / 0.5126 GB, free: 67.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=135): time 0.01017/1.104, allocations: 4.311 MB / 0.5169 GB, free: 66.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/1.104, allocations: 64.19 kB / 0.5169 GB, free: 66.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003292/1.108, allocations: 1.546 MB / 0.5184 GB, free: 66.31 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002606/1.108, allocations: 25.7 kB / 0.5185 GB, free: 66.28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/1.109, allocations: 1.574 MB / 0.52 GB, free: 65.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004197/1.109, allocations: 464.5 kB / 0.5204 GB, free: 65.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/1.109, allocations: 0 / 0.5204 GB, free: 65.38 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/1.109, allocations: 385.9 kB / 0.5208 GB, free: 65.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/1.111, allocations: 0.6676 MB / 0.5215 GB, free: 65.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/1.112, allocations: 1.275 MB / 0.5227 GB, free: 64.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/1.115, allocations: 0.9893 MB / 0.5237 GB, free: 64.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.563e-05/1.115, allocations: 7.125 kB / 0.5237 GB, free: 64.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005323/1.12, allocations: 2.233 MB / 0.5259 GB, free: 64.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/1.12, allocations: 18.41 kB / 0.5259 GB, free: 64.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.265e-05/1.12, allocations: 17.94 kB / 0.5259 GB, free: 64.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/1.121, allocations: 138.9 kB / 0.526 GB, free: 64.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/1.123, allocations: 469.3 kB / 0.5265 GB, free: 64.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/1.125, allocations: 2.943 MB / 0.5293 GB, free: 61.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/1.128, allocations: 84.27 kB / 0.5294 GB, free: 61.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/1.128, allocations: 84.62 kB / 0.5295 GB, free: 61.62 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 (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): 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.0003871/1.128, allocations: 168.2 kB / 0.5297 GB, free: 61.49 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004264/1.129, allocations: 199.7 kB / 0.5299 GB, free: 61.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004491/1.133, allocations: 2.136 MB / 0.5319 GB, free: 61.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/1.133, allocations: 14.38 kB / 0.532 GB, free: 61.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/1.133, allocations: 3.969 kB / 0.532 GB, free: 61.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.31e-05/1.133, allocations: 10.17 kB / 0.532 GB, free: 61.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/1.144, allocations: 4.727 MB / 0.5366 GB, free: 60.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/1.144, allocations: 3.938 kB / 0.5366 GB, free: 60.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/1.145, allocations: 239.6 kB / 0.5368 GB, free: 60.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009207/1.146, allocations: 264.4 kB / 0.5371 GB, free: 60.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/1.147, allocations: 15.89 kB / 0.5371 GB, free: 60.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006506/1.153, allocations: 6.831 MB / 0.5438 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.434e-06/1.153, allocations: 6.656 kB / 0.5438 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005802/1.159, allocations: 3.322 MB / 0.547 GB, free: 53.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/1.16, allocations: 457 kB / 0.5474 GB, free: 53.58 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/1.161, allocations: 3.562 kB / 0.5474 GB, free: 53.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/1.162, allocations: 61.67 kB / 0.5475 GB, free: 53.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/1.162, allocations: 97.5 kB / 0.5476 GB, free: 53.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.162, allocations: 40.3 kB / 0.5476 GB, free: 53.56 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002101/1.164, allocations: 1.149 MB / 0.5488 GB, free: 53.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.07e-07/1.164, allocations: 0 / 0.5488 GB, free: 53.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003419/1.168, allocations: 0.5213 MB / 0.5493 GB, free: 53.04 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 (113): * Single equations (assignments): 109 * 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.0008604/1.169, allocations: 428.3 kB / 0.5497 GB, free: 52.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00348/1.172, allocations: 1.973 MB / 0.5516 GB, free: 52.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.203e-06/1.172, allocations: 0 / 0.5516 GB, free: 52.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002169/1.174, allocations: 1.318 MB / 0.5529 GB, free: 51.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/1.177, allocations: 422 kB / 0.5533 GB, free: 51.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/1.189, allocations: 4.814 MB / 0.558 GB, free: 49.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003638/1.192, allocations: 2.424 MB / 0.5604 GB, free: 48.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000935/1.193, allocations: 158 kB / 0.5605 GB, free: 48.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.924e-06/1.193, allocations: 0 / 0.5605 GB, free: 48.09 MB / 394.7 MB Notification: Performance of Templates: time 0.3457/1.539, allocations: 93.34 MB / 0.6517 GB, free: 89.11 MB / 410.7 MB