Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.371e-05/3.397e-05, allocations: 4 kB / 292.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 50.41 MB / 343.2 MB, free: 5.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7034/0.8196, allocations: 167.8 MB / 0.499 GB, free: 7.391 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003748/0.82, allocations: 106.6 kB / 0.4991 GB, free: 7.332 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.543/3.363, allocations: 391.4 MB / 0.8814 GB, free: 45.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.547e-06/3.363, allocations: 0 / 0.8814 GB, free: 45.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001274/3.364, allocations: 267 kB / 0.8816 GB, free: 45.05 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.05402/3.418, allocations: 10.14 MB / 0.8915 GB, free: 41.83 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.63e-05/3.418, allocations: 8.938 kB / 0.8915 GB, free: 41.83 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01135/3.429, allocations: 1.736 MB / 0.8932 GB, free: 41.69 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03216/3.462, allocations: 3.743 MB / 0.8969 GB, free: 41.07 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03476/3.496, allocations: 8.894 MB / 0.9056 GB, free: 39.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001118/3.498, allocations: 0.803 MB / 0.9064 GB, free: 39.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005364/3.503, allocations: 1.059 MB / 0.9074 GB, free: 39.92 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05505/3.558, allocations: 16.06 MB / 0.9231 GB, free: 38.63 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007052/3.559, allocations: 17.72 kB / 0.9231 GB, free: 38.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004481/3.563, allocations: 466.7 kB / 0.9235 GB, free: 38.62 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001126/3.565, allocations: 0.7071 MB / 0.9242 GB, free: 38.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04205/3.607, allocations: 13.27 MB / 0.9372 GB, free: 38.54 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1413/3.748, allocations: 55.51 MB / 0.9914 GB, free: 12.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03502/3.783, allocations: 21.08 MB / 1.012 GB, free: 9.812 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009127/3.792, allocations: 3.254 MB / 1.015 GB, free: 8.578 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03182/3.824, allocations: 9.642 MB / 1.025 GB, free: 2.043 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001023/3.824, allocations: 69.56 kB / 1.025 GB, free: 1.961 MB / 490.7 MB Notification: Performance of pre-optimization done (n=314): time 9.868e-06/3.824, allocations: 0 / 1.025 GB, free: 1.961 MB / 490.7 MB Notification: Performance of matching and sorting (n=347): time 0.04991/3.874, allocations: 14.07 MB / 1.038 GB, free: 5.262 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005821/3.88, allocations: 2.904 MB / 1.041 GB, free: 2.375 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4357/4.316, allocations: 4.586 MB / 1.046 GB, free: 73.53 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008818/4.317, allocations: 83.7 kB / 1.046 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005963/4.323, allocations: 5.142 MB / 1.051 GB, free: 72.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/4.325, allocations: 1.223 MB / 1.052 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009797/4.326, allocations: 124.8 kB / 1.052 GB, free: 71.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005516/4.326, allocations: 0.5527 MB / 1.053 GB, free: 71.47 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00861/4.335, allocations: 2.641 MB / 1.055 GB, free: 71.46 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01074/4.346, allocations: 5.299 MB / 1.06 GB, free: 68.13 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/4.356, allocations: 3.83 MB / 1.064 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002228/4.356, allocations: 26.88 kB / 1.064 GB, free: 68.06 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.02704/4.384, allocations: 8.922 MB / 1.073 GB, free: 67.53 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/4.384, allocations: 42.97 kB / 1.073 GB, free: 67.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/4.384, allocations: 92.44 kB / 1.073 GB, free: 67.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00412/4.388, allocations: 0.9231 MB / 1.074 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01046/4.399, allocations: 1.471 MB / 1.075 GB, free: 67.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01683/4.415, allocations: 9.702 MB / 1.085 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01061/4.426, allocations: 493.1 kB / 1.085 GB, free: 63.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001704/4.428, allocations: 336.6 kB / 1.086 GB, free: 63.35 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (755): * Single equations (assignments): 745 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001888/4.43, allocations: 0.5126 MB / 1.086 GB, free: 63.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001831/4.432, allocations: 0.5036 MB / 1.087 GB, free: 62.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01951/4.451, allocations: 6.174 MB / 1.093 GB, free: 62.46 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01439/4.466, allocations: 5.112 MB / 1.098 GB, free: 62.09 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.604e-05/4.466, allocations: 13.66 kB / 1.098 GB, free: 62.09 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001016/4.466, allocations: 14.2 kB / 1.098 GB, free: 62.09 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06009/4.526, allocations: 21.41 MB / 1.119 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.2e-05/4.526, allocations: 3.938 kB / 1.119 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005345/4.531, allocations: 0.5885 MB / 1.119 GB, free: 60.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005486/4.537, allocations: 1.137 MB / 1.12 GB, free: 60.76 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008637/4.538, allocations: 85.22 kB / 1.12 GB, free: 60.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02467/4.562, allocations: 14.62 MB / 1.135 GB, free: 51.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004704/4.567, allocations: 2.82 MB / 1.137 GB, free: 49.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02287/4.59, allocations: 9.654 MB / 1.147 GB, free: 44.72 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004139/4.594, allocations: 1.04 MB / 1.148 GB, free: 44.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002037/4.596, allocations: 71.36 kB / 1.148 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006523/4.603, allocations: 256.6 kB / 1.148 GB, free: 43.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/4.604, allocations: 261.5 kB / 1.148 GB, free: 43.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006056/4.605, allocations: 105.3 kB / 1.148 GB, free: 43.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008955/4.614, allocations: 3.285 MB / 1.152 GB, free: 42.66 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.71e-07/4.614, allocations: 4 kB / 1.152 GB, free: 42.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01198/4.626, allocations: 1.949 MB / 1.154 GB, free: 42.47 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (292): * Single equations (assignments): 283 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(8,67.2%) 26} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02515/4.651, allocations: 11.76 MB / 1.165 GB, free: 35.95 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01751/4.669, allocations: 6.726 MB / 1.172 GB, free: 33.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/4.669, allocations: 4.125 kB / 1.172 GB, free: 33.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009888/4.679, allocations: 3.482 MB / 1.175 GB, free: 31.72 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009649/4.688, allocations: 1.076 MB / 1.176 GB, free: 31.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05957/4.748, allocations: 18.28 MB / 1.194 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01442/4.762, allocations: 6.773 MB / 1.201 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01035/4.773, allocations: 1.844 MB / 1.202 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009057/4.782, allocations: 4.057 MB / 1.206 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of SimCode: time 1.402e-06/4.782, allocations: 0 / 1.206 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8027/5.585, allocations: 146.4 MB / 1.349 GB, free: 46.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/5.585, allocations: 247.9 kB / 1.35 GB, free: 46.37 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.754/14.34, allocations: 0 / 1.35 GB, free: 46.37 MB / 0.5105 GB