Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.821/1.821, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.509e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.08769, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/0.5366, allocations: 110 MB / 409.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.537, allocations: 90.31 kB / 410 MB, free: 9.883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2957/0.8327, allocations: 74.71 MB / 484.7 MB, free: 15.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.8328, allocations: 0 / 484.7 MB, free: 15.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000374/0.8332, allocations: 83.88 kB / 484.8 MB, free: 15.75 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.0129/0.8461, allocations: 3.125 MB / 487.9 MB, free: 12.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.8462, allocations: 8.031 kB / 487.9 MB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001695/0.8479, allocations: 447 kB / 488.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004651/0.8525, allocations: 0.5891 MB / 489 MB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01257/0.8652, allocations: 3.091 MB / 492.1 MB, free: 8.359 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000358/0.8656, allocations: 234.3 kB / 492.3 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/0.8669, allocations: 311.9 kB / 492.6 MB, free: 7.824 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.8807, allocations: 3.917 MB / 496.5 MB, free: 3.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.8809, allocations: 11.89 kB / 496.5 MB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006603/0.8815, allocations: 128 kB / 496.7 MB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00024/0.8818, allocations: 150.2 kB / 496.8 MB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.893, allocations: 3.07 MB / 499.9 MB, free: 412 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03695/0.93, allocations: 13.4 MB / 0.5012 GB, free: 2.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00713/0.9372, allocations: 3.911 MB / 0.5051 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002961/0.9402, allocations: 0.9773 MB / 0.506 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00768/0.9479, allocations: 2.657 MB / 0.5086 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/0.948, allocations: 43.56 kB / 0.5086 GB, free: 10.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 4.538e-06/0.9481, allocations: 4 kB / 0.5087 GB, free: 10.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.01811/0.9662, allocations: 5.158 MB / 0.5137 GB, free: 5.125 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.9663, allocations: 72.72 kB / 0.5138 GB, free: 5.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/0.9707, allocations: 1.626 MB / 0.5153 GB, free: 3.371 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003198/0.9711, allocations: 53.7 kB / 0.5154 GB, free: 3.312 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.9725, allocations: 1.438 MB / 0.5168 GB, free: 1.859 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007597/0.9733, allocations: 481 kB / 0.5173 GB, free: 1.383 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.9735, allocations: 36 kB / 0.5173 GB, free: 1.348 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.9738, allocations: 374.8 kB / 0.5177 GB, free: 0.9727 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.9759, allocations: 0.7342 MB / 0.5184 GB, free: 244 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2732/1.249, allocations: 1.317 MB / 0.5197 GB, free: 87.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/1.252, allocations: 0.9813 MB / 0.5206 GB, free: 87.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.263e-05/1.252, allocations: 5.938 kB / 0.5206 GB, free: 87.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006733/1.259, allocations: 2.26 MB / 0.5228 GB, free: 87.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/1.259, allocations: 17.92 kB / 0.5228 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/1.259, allocations: 21.53 kB / 0.5229 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005361/1.259, allocations: 122.8 kB / 0.523 GB, free: 87.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003807/1.263, allocations: 481.5 kB / 0.5234 GB, free: 87.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/1.264, allocations: 1.307 MB / 0.5247 GB, free: 85.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/1.267, allocations: 109.1 kB / 0.5248 GB, free: 85.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/1.268, allocations: 84.36 kB / 0.5249 GB, free: 85.79 MB / 410.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 (228): * Single equations (assignments): 225 * 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.0004873/1.268, allocations: 219.6 kB / 0.5251 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006364/1.269, allocations: 206.6 kB / 0.5253 GB, free: 85.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005359/1.274, allocations: 1.903 MB / 0.5272 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.21e-05/1.274, allocations: 15.45 kB / 0.5272 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/1.274, allocations: 1.219 kB / 0.5272 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-05/1.274, allocations: 7.781 kB / 0.5272 GB, free: 85.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/1.289, allocations: 4.926 MB / 0.532 GB, free: 85.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.289, allocations: 1.891 kB / 0.532 GB, free: 85.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002848/1.291, allocations: 314.5 kB / 0.5323 GB, free: 85.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/1.292, allocations: 102.8 kB / 0.5324 GB, free: 85.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002388/1.292, allocations: 27 kB / 0.5324 GB, free: 85.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009622/1.293, allocations: 1.271 MB / 0.5337 GB, free: 83.83 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/1.293, allocations: 4.469 kB / 0.5337 GB, free: 83.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007112/1.3, allocations: 3.125 MB / 0.5367 GB, free: 83.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/1.302, allocations: 465.9 kB / 0.5372 GB, free: 83.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005817/1.303, allocations: 27.31 kB / 0.5372 GB, free: 83.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002099/1.305, allocations: 75.52 kB / 0.5373 GB, free: 83.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003158/1.305, allocations: 92.77 kB / 0.5374 GB, free: 83.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/1.305, allocations: 38.97 kB / 0.5374 GB, free: 83.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002979/1.308, allocations: 1.242 MB / 0.5386 GB, free: 83.08 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.308, allocations: 0 / 0.5386 GB, free: 83.08 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00305/1.311, allocations: 0.58 MB / 0.5392 GB, free: 83.08 MB / 410.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 (139): * Single equations (assignments): 136 * 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.008028/1.319, allocations: 4.563 MB / 0.5436 GB, free: 81.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004974/1.324, allocations: 2.135 MB / 0.5457 GB, free: 81.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.325, allocations: 0 / 0.5457 GB, free: 81.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002467/1.327, allocations: 1.148 MB / 0.5468 GB, free: 80.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003867/1.331, allocations: 474.1 kB / 0.5473 GB, free: 80.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/1.347, allocations: 5.163 MB / 0.5523 GB, free: 79.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/1.35, allocations: 2.269 MB / 0.5545 GB, free: 78.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002918/1.353, allocations: 1.186 MB / 0.5557 GB, free: 78.96 MB / 410.7 MB Notification: Performance of SimCode: time 1.774e-06/1.353, allocations: 7.219 kB / 0.5557 GB, free: 78.96 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.602/4.954, allocations: 97.99 MB / 0.6514 GB, free: 19.12 MB / 410.7 MB