Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.951/1.951, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.594e-05, allocations: 4 kB / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09264, allocations: 50.42 MB / 342.6 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4141/0.5067, allocations: 117 MB / 459.6 MB, free: 9.789 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.5071, allocations: 101.2 kB / 459.7 MB, free: 9.734 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2806/0.7877, allocations: 75.28 MB / 0.5224 GB, free: 2.039 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.566e-06/0.7877, allocations: 0 / 0.5224 GB, free: 2.039 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003177/0.788, allocations: 83.88 kB / 0.5225 GB, free: 1.957 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.2606/1.049, allocations: 3.135 MB / 0.5255 GB, free: 93.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/1.049, allocations: 10.86 kB / 0.5255 GB, free: 93.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004279/1.053, allocations: 0.5882 MB / 0.5261 GB, free: 93.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01082/1.064, allocations: 3.116 MB / 0.5292 GB, free: 93.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/1.064, allocations: 235 kB / 0.5294 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/1.065, allocations: 308.2 kB / 0.5297 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/1.077, allocations: 3.876 MB / 0.5335 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/1.077, allocations: 13.36 kB / 0.5335 GB, free: 93.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006416/1.078, allocations: 135.7 kB / 0.5336 GB, free: 93.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001979/1.078, allocations: 145.1 kB / 0.5338 GB, free: 93.02 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009167/1.087, allocations: 3.051 MB / 0.5367 GB, free: 93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03202/1.119, allocations: 13.43 MB / 0.5498 GB, free: 89.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007346/1.126, allocations: 3.907 MB / 0.5537 GB, free: 86.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003395/1.13, allocations: 0.9814 MB / 0.5546 GB, free: 86.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009155/1.139, allocations: 2.665 MB / 0.5572 GB, free: 86.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/1.139, allocations: 46.19 kB / 0.5573 GB, free: 86.19 MB / 442.7 MB Notification: Performance of pre-optimization done (n=107): time 7.789e-06/1.139, allocations: 0 / 0.5573 GB, free: 86.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.02145/1.161, allocations: 5.178 MB / 0.5623 GB, free: 84.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/1.161, allocations: 71.31 kB / 0.5624 GB, free: 84.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005031/1.166, allocations: 1.636 MB / 0.564 GB, free: 83.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002867/1.166, allocations: 53.33 kB / 0.564 GB, free: 83.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/1.167, allocations: 1.439 MB / 0.5654 GB, free: 82.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006946/1.168, allocations: 490.1 kB / 0.5659 GB, free: 82.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/1.168, allocations: 39.84 kB / 0.566 GB, free: 82.24 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001977/1.169, allocations: 385.7 kB / 0.5663 GB, free: 81.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002612/1.171, allocations: 0.733 MB / 0.567 GB, free: 81.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003049/1.174, allocations: 1.315 MB / 0.5683 GB, free: 80.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003271/1.178, allocations: 0.9795 MB / 0.5693 GB, free: 80.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.407e-05/1.178, allocations: 7.625 kB / 0.5693 GB, free: 80.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01033/1.188, allocations: 2.215 MB / 0.5714 GB, free: 79.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.598e-05/1.188, allocations: 13.97 kB / 0.5715 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-05/1.188, allocations: 17.88 kB / 0.5715 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008255/1.189, allocations: 129.2 kB / 0.5716 GB, free: 79.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005065/1.194, allocations: 476.7 kB / 0.5721 GB, free: 79.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/1.195, allocations: 1.317 MB / 0.5733 GB, free: 78.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002195/1.198, allocations: 107.3 kB / 0.5734 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002533/1.198, allocations: 88.67 kB / 0.5735 GB, free: 78.02 MB / 442.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 (229): * Single equations (assignments): 226 * 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.0004046/1.198, allocations: 218.6 kB / 0.5737 GB, free: 77.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004403/1.199, allocations: 203.4 kB / 0.5739 GB, free: 77.74 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00422/1.203, allocations: 1.911 MB / 0.5758 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/1.203, allocations: 18.16 kB / 0.5758 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.865e-06/1.203, allocations: 3.438 kB / 0.5758 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.82e-05/1.203, allocations: 9.844 kB / 0.5758 GB, free: 76.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/1.214, allocations: 4.93 MB / 0.5806 GB, free: 74.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/1.214, allocations: 3.25 kB / 0.5806 GB, free: 74.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/1.215, allocations: 310.9 kB / 0.5809 GB, free: 74.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003765/1.216, allocations: 92.97 kB / 0.581 GB, free: 74.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/1.216, allocations: 28.91 kB / 0.5811 GB, free: 74.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000834/1.217, allocations: 1.272 MB / 0.5823 GB, free: 73.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/1.217, allocations: 10.36 kB / 0.5823 GB, free: 73.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/1.222, allocations: 3.14 MB / 0.5854 GB, free: 71.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/1.223, allocations: 468.2 kB / 0.5858 GB, free: 71.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/1.224, allocations: 23.72 kB / 0.5858 GB, free: 71.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.225, allocations: 89.44 kB / 0.5859 GB, free: 71.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/1.225, allocations: 91.75 kB / 0.586 GB, free: 71.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/1.225, allocations: 38.16 kB / 0.5861 GB, free: 71.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002339/1.228, allocations: 1.247 MB / 0.5873 GB, free: 70.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.7e-07/1.228, allocations: 0 / 0.5873 GB, free: 70.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002562/1.23, allocations: 0.5814 MB / 0.5878 GB, free: 70.8 MB / 442.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 (140): * Single equations (assignments): 137 * 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.0007754/1.231, allocations: 0.5224 MB / 0.5883 GB, free: 70.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/1.235, allocations: 2.093 MB / 0.5904 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/1.235, allocations: 0 / 0.5904 GB, free: 69.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/1.237, allocations: 1.14 MB / 0.5915 GB, free: 69.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/1.24, allocations: 477.7 kB / 0.592 GB, free: 68.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009709/1.249, allocations: 4.45 MB / 0.5963 GB, free: 67.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002221/1.252, allocations: 2.272 MB / 0.5985 GB, free: 66.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009363/1.253, allocations: 165.7 kB / 0.5987 GB, free: 66.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.816e-06/1.253, allocations: 0 / 0.5987 GB, free: 66.02 MB / 442.7 MB Notification: Performance of Templates: time 0.0981/1.351, allocations: 82.21 MB / 0.679 GB, free: 2.113 MB / 442.7 MB