Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.287e-05/3.303e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09217, allocations: 44.5 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4576/0.5499, allocations: 110 MB / 410 MB, free: 9.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5502, allocations: 89.78 kB / 410.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3054/0.8556, allocations: 74.7 MB / 484.7 MB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8556, allocations: 3.938 kB / 484.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002894/0.8559, allocations: 87.88 kB / 484.8 MB, free: 15.25 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.01147/0.8674, allocations: 3.121 MB / 488 MB, free: 12.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.8675, allocations: 8.031 kB / 488 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/0.8688, allocations: 451 kB / 488.4 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00393/0.8727, allocations: 0.5813 MB / 489 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01225/0.885, allocations: 3.103 MB / 492.1 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003577/0.8854, allocations: 234.3 kB / 492.3 MB, free: 7.633 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/0.8865, allocations: 311.9 kB / 492.6 MB, free: 7.328 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.8989, allocations: 3.909 MB / 496.5 MB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001408/0.8991, allocations: 11.89 kB / 496.5 MB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005145/0.8996, allocations: 132 kB / 496.7 MB, free: 3.137 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002279/0.8999, allocations: 146.1 kB / 496.8 MB, free: 2.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.9102, allocations: 3.074 MB / 499.9 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03377/0.9441, allocations: 13.4 MB / 0.5013 GB, free: 2.047 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00661/0.9507, allocations: 3.92 MB / 0.5051 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002787/0.9536, allocations: 0.9686 MB / 0.506 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007044/0.9606, allocations: 2.657 MB / 0.5086 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.9607, allocations: 51.5 kB / 0.5087 GB, free: 9.844 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.987e-06/0.9607, allocations: 0 / 0.5087 GB, free: 9.844 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.01731/0.978, allocations: 5.15 MB / 0.5137 GB, free: 4.633 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.9781, allocations: 72.72 kB / 0.5138 GB, free: 4.551 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003974/0.9821, allocations: 1.638 MB / 0.5154 GB, free: 2.867 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002873/0.9824, allocations: 45.7 kB / 0.5154 GB, free: 2.816 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.984, allocations: 1.505 MB / 0.5169 GB, free: 1.293 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006868/0.9847, allocations: 485 kB / 0.5174 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.9849, allocations: 36 kB / 0.5174 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.9851, allocations: 377.9 kB / 0.5177 GB, free: 412 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2787/1.264, allocations: 0.7284 MB / 0.5185 GB, free: 87.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/1.266, allocations: 1.319 MB / 0.5197 GB, free: 86.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002423/1.269, allocations: 0.9791 MB / 0.5207 GB, free: 86.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.463e-05/1.269, allocations: 5.344 kB / 0.5207 GB, free: 86.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006365/1.275, allocations: 2.384 MB / 0.523 GB, free: 86.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/1.275, allocations: 13.28 kB / 0.523 GB, free: 86.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.061e-05/1.275, allocations: 22.84 kB / 0.5231 GB, free: 86.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/1.276, allocations: 123.3 kB / 0.5232 GB, free: 86.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003697/1.279, allocations: 487 kB / 0.5237 GB, free: 86.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/1.281, allocations: 1.302 MB / 0.5249 GB, free: 85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002571/1.283, allocations: 119 kB / 0.525 GB, free: 85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/1.283, allocations: 79.67 kB / 0.5251 GB, free: 85 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.0004455/1.284, allocations: 214 kB / 0.5253 GB, free: 84.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/1.284, allocations: 199.3 kB / 0.5255 GB, free: 84.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004968/1.289, allocations: 1.911 MB / 0.5274 GB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/1.289, allocations: 14.53 kB / 0.5274 GB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/1.289, allocations: 2.391 kB / 0.5274 GB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.479e-05/1.289, allocations: 7.312 kB / 0.5274 GB, free: 84.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/1.302, allocations: 4.919 MB / 0.5322 GB, free: 84.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/1.302, allocations: 6.688 kB / 0.5322 GB, free: 84.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002768/1.305, allocations: 314 kB / 0.5325 GB, free: 84.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005023/1.306, allocations: 102.7 kB / 0.5326 GB, free: 84.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/1.306, allocations: 29.58 kB / 0.5326 GB, free: 84.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009051/1.307, allocations: 1.275 MB / 0.5339 GB, free: 83.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.307, allocations: 0 / 0.5339 GB, free: 83.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006344/1.313, allocations: 3.134 MB / 0.5369 GB, free: 82.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.314, allocations: 462.3 kB / 0.5374 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003947/1.315, allocations: 30.41 kB / 0.5374 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.317, allocations: 75.97 kB / 0.5375 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/1.317, allocations: 95.98 kB / 0.5376 GB, free: 82.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/1.317, allocations: 33.84 kB / 0.5376 GB, free: 82.39 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00261/1.32, allocations: 1.245 MB / 0.5388 GB, free: 82.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.72e-07/1.32, allocations: 0 / 0.5388 GB, free: 82.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003118/1.323, allocations: 0.5723 MB / 0.5394 GB, free: 82.22 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.007362/1.33, allocations: 4.566 MB / 0.5438 GB, free: 80.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004469/1.335, allocations: 2.132 MB / 0.5459 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.335, allocations: 9.688 kB / 0.5459 GB, free: 80.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/1.337, allocations: 1.141 MB / 0.547 GB, free: 79.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003477/1.34, allocations: 469.8 kB / 0.5475 GB, free: 79.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/1.354, allocations: 5.16 MB / 0.5525 GB, free: 78.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002411/1.357, allocations: 2.322 MB / 0.5548 GB, free: 78.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002922/1.36, allocations: 0.5027 MB / 0.5553 GB, free: 78.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002675/1.362, allocations: 1.163 MB / 0.5564 GB, free: 78.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/1.362, allocations: 2.719 kB / 0.5564 GB, free: 78.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1206/1.483, allocations: 51.26 MB / 0.6065 GB, free: 63.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002582/1.483, allocations: 198.7 kB / 0.6067 GB, free: 62.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.394/5.878, allocations: 3.5 kB / 0.6067 GB, free: 62.85 MB / 410.7 MB