Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.129e-05/3.139e-05, allocations: 5.562 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09528, allocations: 50.41 MB / 342.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4065/0.5018, allocations: 114.7 MB / 457.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5021, allocations: 85.7 kB / 457.4 MB, free: 11.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2417/0.7439, allocations: 60.16 MB / 0.5054 GB, free: 3.789 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.378e-06/0.7439, allocations: 0 / 0.5054 GB, free: 3.789 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002889/0.7442, allocations: 83.88 kB / 0.5055 GB, free: 3.707 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008484/0.7527, allocations: 2.998 MB / 0.5084 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.7528, allocations: 8.031 kB / 0.5084 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001932/0.7547, allocations: 411.5 kB / 0.5088 GB, free: 236 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006852/0.7616, allocations: 2.227 MB / 0.511 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003314/0.762, allocations: 221.9 kB / 0.5112 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.7631, allocations: 295.9 kB / 0.5115 GB, free: 13.44 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.7732, allocations: 3.696 MB / 0.5151 GB, free: 9.598 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.7734, allocations: 11.92 kB / 0.5151 GB, free: 9.586 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004398/0.7738, allocations: 132.3 kB / 0.5152 GB, free: 9.457 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002028/0.7741, allocations: 145.7 kB / 0.5153 GB, free: 9.312 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008559/0.7826, allocations: 2.971 MB / 0.5183 GB, free: 6.336 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2742/1.057, allocations: 12.18 MB / 0.5301 GB, free: 99.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00366/1.061, allocations: 2.074 MB / 0.5322 GB, free: 99.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/1.063, allocations: 0.991 MB / 0.5331 GB, free: 99.15 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003844/1.063, allocations: 228.1 kB / 0.5334 GB, free: 98.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/1.063, allocations: 48.12 kB / 0.5334 GB, free: 98.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 5.004e-06/1.063, allocations: 0 / 0.5334 GB, free: 98.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.0183/1.081, allocations: 6.664 MB / 0.5399 GB, free: 98.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/1.082, allocations: 68.59 kB / 0.54 GB, free: 98.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/1.085, allocations: 1.746 MB / 0.5417 GB, free: 97.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003106/1.086, allocations: 51.02 kB / 0.5417 GB, free: 97.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008976/1.087, allocations: 1.364 MB / 0.5431 GB, free: 97.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005918/1.087, allocations: 0.5608 MB / 0.5436 GB, free: 96.98 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001537/1.087, allocations: 38.44 kB / 0.5436 GB, free: 96.98 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/1.088, allocations: 393.1 kB / 0.544 GB, free: 96.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/1.089, allocations: 0.9054 MB / 0.5449 GB, free: 96.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/1.092, allocations: 1.447 MB / 0.5463 GB, free: 96.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/1.094, allocations: 1.164 MB / 0.5475 GB, free: 96.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/1.094, allocations: 10.59 kB / 0.5475 GB, free: 96.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006398/1.1, allocations: 2.96 MB / 0.5504 GB, free: 95.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/1.1, allocations: 15.38 kB / 0.5504 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/1.1, allocations: 15.22 kB / 0.5504 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001863/1.102, allocations: 0.5507 MB / 0.5509 GB, free: 95.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/1.105, allocations: 482.8 kB / 0.5514 GB, free: 95.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008756/1.113, allocations: 6.267 MB / 0.5575 GB, free: 93.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/1.116, allocations: 143.8 kB / 0.5576 GB, free: 93.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003942/1.116, allocations: 89.72 kB / 0.5577 GB, free: 93.19 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004489/1.117, allocations: 223.5 kB / 0.5579 GB, free: 93.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005/1.117, allocations: 219.7 kB / 0.5581 GB, free: 92.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005924/1.123, allocations: 2.798 MB / 0.5609 GB, free: 92.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/1.123, allocations: 15.22 kB / 0.5609 GB, free: 92.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/1.123, allocations: 9.594 kB / 0.5609 GB, free: 92.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/1.123, allocations: 7.594 kB / 0.5609 GB, free: 92.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/1.136, allocations: 6.006 MB / 0.5668 GB, free: 90.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/1.136, allocations: 0 / 0.5668 GB, free: 90.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/1.138, allocations: 288.8 kB / 0.567 GB, free: 90.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002115/1.14, allocations: 0.5858 MB / 0.5676 GB, free: 89.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001635/1.14, allocations: 43.77 kB / 0.5677 GB, free: 89.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/1.151, allocations: 7.97 MB / 0.5754 GB, free: 84.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.221e-06/1.151, allocations: 5.688 kB / 0.5755 GB, free: 84.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007917/1.159, allocations: 4.287 MB / 0.5796 GB, free: 82.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/1.16, allocations: 0.5009 MB / 0.5801 GB, free: 82.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004178/1.16, allocations: 34.09 kB / 0.5802 GB, free: 82.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/1.162, allocations: 105.4 kB / 0.5803 GB, free: 82.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/1.162, allocations: 121.8 kB / 0.5804 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/1.162, allocations: 51.34 kB / 0.5804 GB, free: 82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002375/1.165, allocations: 1.329 MB / 0.5817 GB, free: 81.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.165, allocations: 0 / 0.5817 GB, free: 81.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002669/1.167, allocations: 0.6458 MB / 0.5824 GB, free: 81.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006867/1.168, allocations: 417.9 kB / 0.5828 GB, free: 81.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004595/1.173, allocations: 2.657 MB / 0.5853 GB, free: 80.15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.173, allocations: 0 / 0.5853 GB, free: 80.15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/1.175, allocations: 1.581 MB / 0.5869 GB, free: 79.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.178, allocations: 0.4939 MB / 0.5874 GB, free: 79.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009696/1.188, allocations: 4.873 MB / 0.5921 GB, free: 77.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002427/1.19, allocations: 2.307 MB / 0.5944 GB, free: 76.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009558/1.191, allocations: 172.8 kB / 0.5946 GB, free: 76.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.718e-06/1.191, allocations: 0 / 0.5946 GB, free: 76.22 MB / 442.7 MB Notification: Performance of Templates: time 0.09024/1.281, allocations: 77.41 MB / 0.6701 GB, free: 13.6 MB / 442.7 MB