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.847/1.847, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.957e-05, allocations: 7.938 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07812/0.07817, allocations: 44.49 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3729/0.4511, allocations: 113.1 MB / 412.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4513, allocations: 83.89 kB / 413 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2926/0.744, allocations: 80.14 MB / 493.1 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.548e-06/0.744, allocations: 4 kB / 493.1 MB, free: 11.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003205/0.7443, allocations: 95.88 kB / 493.2 MB, free: 11.04 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.01123/0.7556, allocations: 3.424 MB / 496.7 MB, free: 7.547 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.7556, allocations: 8.031 kB / 496.7 MB, free: 7.539 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004344/0.76, allocations: 0.6396 MB / 497.3 MB, free: 6.895 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01148/0.7715, allocations: 3.363 MB / 0.4889 GB, free: 3.477 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003288/0.7719, allocations: 258.9 kB / 0.4892 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009789/0.7729, allocations: 343.8 kB / 0.4895 GB, free: 2.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/0.7845, allocations: 4.275 MB / 0.4937 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.7847, allocations: 7.938 kB / 0.4937 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004985/0.7852, allocations: 144 kB / 0.4938 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/0.7854, allocations: 162.8 kB / 0.494 GB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009616/0.795, allocations: 3.372 MB / 0.4973 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2653/1.06, allocations: 14.54 MB / 0.5115 GB, free: 63.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005927/1.066, allocations: 5.318 MB / 0.5167 GB, free: 59.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002853/1.069, allocations: 1.257 MB / 0.5179 GB, free: 59.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009393/1.079, allocations: 3.839 MB / 0.5216 GB, free: 58.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/1.079, allocations: 49.31 kB / 0.5217 GB, free: 58.67 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 8.829e-06/1.079, allocations: 1.375 kB / 0.5217 GB, free: 58.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.009733/1.089, allocations: 4.211 MB / 0.5258 GB, free: 57.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/1.089, allocations: 71.75 kB / 0.5259 GB, free: 57.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003649/1.092, allocations: 1.824 MB / 0.5277 GB, free: 57.37 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002561/1.093, allocations: 49.42 kB / 0.5277 GB, free: 57.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/1.094, allocations: 1.567 MB / 0.5292 GB, free: 56.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004839/1.094, allocations: 458.7 kB / 0.5297 GB, free: 56.48 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/1.094, allocations: 37.19 kB / 0.5297 GB, free: 56.48 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/1.094, allocations: 375.4 kB / 0.5301 GB, free: 56.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/1.096, allocations: 0.6912 MB / 0.5307 GB, free: 56.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/1.097, allocations: 1.291 MB / 0.532 GB, free: 55.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/1.099, allocations: 0.9279 MB / 0.5329 GB, free: 55.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/1.099, allocations: 3.719 kB / 0.5329 GB, free: 55.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.00452/1.104, allocations: 2.254 MB / 0.5351 GB, free: 55.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.849e-05/1.104, allocations: 15.75 kB / 0.5351 GB, free: 55.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.843e-05/1.104, allocations: 19.47 kB / 0.5351 GB, free: 55.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004513/1.104, allocations: 147.9 kB / 0.5353 GB, free: 55.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/1.107, allocations: 459.3 kB / 0.5357 GB, free: 55.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/1.109, allocations: 3.063 MB / 0.5387 GB, free: 52.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002273/1.111, allocations: 118 kB / 0.5388 GB, free: 52.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003074/1.112, allocations: 84.52 kB / 0.5389 GB, free: 52.59 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.0004106/1.112, allocations: 224.8 kB / 0.5391 GB, free: 52.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005249/1.113, allocations: 213.2 kB / 0.5393 GB, free: 52.35 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004307/1.117, allocations: 2.135 MB / 0.5414 GB, free: 52.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/1.117, allocations: 9.844 kB / 0.5414 GB, free: 52.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/1.117, allocations: 7.625 kB / 0.5414 GB, free: 52.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/1.117, allocations: 3.328 kB / 0.5414 GB, free: 52.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/1.128, allocations: 5.125 MB / 0.5464 GB, free: 51.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.128, allocations: 3.906 kB / 0.5464 GB, free: 51.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/1.13, allocations: 219.8 kB / 0.5466 GB, free: 51.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009552/1.131, allocations: 278.9 kB / 0.5469 GB, free: 51.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000208/1.131, allocations: 28.69 kB / 0.5469 GB, free: 51.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006676/1.138, allocations: 7.093 MB / 0.5539 GB, free: 46.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.882e-06/1.138, allocations: 3.812 kB / 0.5539 GB, free: 46.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005669/1.143, allocations: 3.286 MB / 0.5571 GB, free: 45.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/1.145, allocations: 461.4 kB / 0.5575 GB, free: 45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003828/1.145, allocations: 30.25 kB / 0.5575 GB, free: 45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/1.147, allocations: 75.38 kB / 0.5576 GB, free: 45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/1.147, allocations: 96.89 kB / 0.5577 GB, free: 45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/1.147, allocations: 33.75 kB / 0.5577 GB, free: 45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002646/1.15, allocations: 1.389 MB / 0.5591 GB, free: 44.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.029e-06/1.15, allocations: 0 / 0.5591 GB, free: 44.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003167/1.153, allocations: 0.6051 MB / 0.5597 GB, free: 44.83 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.0007486/1.154, allocations: 0.4921 MB / 0.5602 GB, free: 44.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003503/1.157, allocations: 1.984 MB / 0.5621 GB, free: 44.13 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/1.157, allocations: 0 / 0.5621 GB, free: 44.13 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/1.159, allocations: 1.321 MB / 0.5634 GB, free: 43.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/1.162, allocations: 0.5029 MB / 0.5639 GB, free: 43.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.173, allocations: 4.855 MB / 0.5686 GB, free: 41.24 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002483/1.175, allocations: 2.419 MB / 0.571 GB, free: 40.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009138/1.176, allocations: 172 kB / 0.5712 GB, free: 40.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.731e-06/1.176, allocations: 0 / 0.5712 GB, free: 40.18 MB / 394.7 MB Notification: Performance of Templates: time 0.3481/1.524, allocations: 94.62 MB / 0.6636 GB, free: 82.75 MB / 410.7 MB