Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.474e-05, allocations: 4.719 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 50.41 MB / 342.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5042/0.6212, allocations: 117 MB / 459.7 MB, free: 9.473 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003585/0.6216, allocations: 97.36 kB / 459.8 MB, free: 9.418 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2989/0.9206, allocations: 75.28 MB / 0.5225 GB, free: 1.934 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.9206, allocations: 0 / 0.5225 GB, free: 1.934 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000359/0.921, allocations: 87.88 kB / 0.5226 GB, free: 1.848 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.3202/1.241, allocations: 3.138 MB / 0.5256 GB, free: 93.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/1.241, allocations: 9.656 kB / 0.5257 GB, free: 93.35 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001973/1.243, allocations: 444.5 kB / 0.5261 GB, free: 93.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004945/1.248, allocations: 0.5875 MB / 0.5267 GB, free: 93.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/1.261, allocations: 3.11 MB / 0.5297 GB, free: 92.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003755/1.262, allocations: 237.4 kB / 0.5299 GB, free: 92.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001446/1.263, allocations: 310.9 kB / 0.5302 GB, free: 92.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/1.277, allocations: 3.879 MB / 0.534 GB, free: 92.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/1.277, allocations: 7.516 kB / 0.534 GB, free: 92.33 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005687/1.278, allocations: 137.2 kB / 0.5341 GB, free: 92.33 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002221/1.278, allocations: 145.1 kB / 0.5343 GB, free: 92.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01091/1.289, allocations: 3.049 MB / 0.5373 GB, free: 92.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03479/1.324, allocations: 13.44 MB / 0.5504 GB, free: 88.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005794/1.329, allocations: 3.901 MB / 0.5542 GB, free: 86.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/1.332, allocations: 0.9882 MB / 0.5552 GB, free: 86.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006731/1.339, allocations: 2.667 MB / 0.5578 GB, free: 85.51 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/1.339, allocations: 47.53 kB / 0.5578 GB, free: 85.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=107): time 4.689e-06/1.339, allocations: 0 / 0.5578 GB, free: 85.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.0167/1.356, allocations: 5.172 MB / 0.5629 GB, free: 83.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/1.356, allocations: 67.38 kB / 0.5629 GB, free: 83.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003959/1.36, allocations: 1.639 MB / 0.5645 GB, free: 83.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003594/1.36, allocations: 49.45 kB / 0.5646 GB, free: 83.17 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001176/1.361, allocations: 1.44 MB / 0.566 GB, free: 82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/1.362, allocations: 495.4 kB / 0.5664 GB, free: 81.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.362, allocations: 35.84 kB / 0.5665 GB, free: 81.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/1.362, allocations: 386.7 kB / 0.5668 GB, free: 81.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00173/1.364, allocations: 0.7355 MB / 0.5676 GB, free: 80.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002177/1.366, allocations: 1.31 MB / 0.5688 GB, free: 79.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002353/1.369, allocations: 0.9807 MB / 0.5698 GB, free: 79.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-05/1.369, allocations: 7.875 kB / 0.5698 GB, free: 79.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005573/1.374, allocations: 2.215 MB / 0.572 GB, free: 78.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/1.374, allocations: 18.3 kB / 0.572 GB, free: 78.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.739e-05/1.374, allocations: 17.44 kB / 0.572 GB, free: 78.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005074/1.375, allocations: 125.8 kB / 0.5721 GB, free: 78.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003542/1.378, allocations: 482.4 kB / 0.5726 GB, free: 78.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/1.38, allocations: 1.311 MB / 0.5739 GB, free: 77.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002879/1.383, allocations: 114.8 kB / 0.574 GB, free: 77.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000352/1.383, allocations: 87.66 kB / 0.5741 GB, free: 77.38 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.0004527/1.383, allocations: 215.3 kB / 0.5743 GB, free: 77.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005557/1.384, allocations: 208.3 kB / 0.5745 GB, free: 77.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004756/1.389, allocations: 1.905 MB / 0.5763 GB, free: 76.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/1.389, allocations: 14.44 kB / 0.5763 GB, free: 76.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/1.389, allocations: 5 kB / 0.5763 GB, free: 76.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/1.389, allocations: 9.656 kB / 0.5764 GB, free: 76.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/1.402, allocations: 4.933 MB / 0.5812 GB, free: 74.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/1.402, allocations: 3.906 kB / 0.5812 GB, free: 74.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002751/1.405, allocations: 312.3 kB / 0.5815 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004845/1.406, allocations: 89.88 kB / 0.5816 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/1.406, allocations: 30.59 kB / 0.5816 GB, free: 74.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009176/1.407, allocations: 1.28 MB / 0.5828 GB, free: 72.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.407, allocations: 0 / 0.5828 GB, free: 72.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006636/1.414, allocations: 3.142 MB / 0.5859 GB, free: 71.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/1.415, allocations: 466.5 kB / 0.5863 GB, free: 70.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005061/1.416, allocations: 29.78 kB / 0.5864 GB, free: 70.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/1.418, allocations: 85.61 kB / 0.5865 GB, free: 70.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/1.418, allocations: 86.72 kB / 0.5865 GB, free: 70.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.418, allocations: 42.47 kB / 0.5866 GB, free: 70.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002979/1.421, allocations: 1.25 MB / 0.5878 GB, free: 70.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.421, allocations: 0 / 0.5878 GB, free: 70.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003204/1.424, allocations: 0.5766 MB / 0.5884 GB, free: 70.17 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.007773/1.432, allocations: 4.618 MB / 0.5929 GB, free: 67.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004878/1.437, allocations: 2.104 MB / 0.5949 GB, free: 66.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/1.437, allocations: 4.656 kB / 0.5949 GB, free: 66.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00233/1.439, allocations: 1.133 MB / 0.596 GB, free: 65.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00416/1.444, allocations: 483.1 kB / 0.5965 GB, free: 65.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/1.46, allocations: 5.188 MB / 0.6016 GB, free: 63.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002586/1.463, allocations: 2.284 MB / 0.6038 GB, free: 62.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002717/1.465, allocations: 1.192 MB / 0.605 GB, free: 61.67 MB / 442.7 MB Notification: Performance of SimCode: time 2.144e-06/1.465, allocations: 0 / 0.605 GB, free: 61.67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.896/5.361, allocations: 98.24 MB / 0.7009 GB, free: 97.54 MB / 458.7 MB