Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_VoltageSource",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.802/2.802, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-05/4.378e-05, allocations: 4.219 kB / 249.8 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1828, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.573/0.7559, allocations: 112.4 MB / 406.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003703/0.7564, allocations: 88.14 kB / 406.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4056/1.162, allocations: 79.47 MB / 486.2 MB, free: 1.125 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.985e-06/1.162, allocations: 3.938 kB / 486.2 MB, free: 1.121 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005066/1.163, allocations: 91.88 kB / 486.3 MB, free: 1.031 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01811/1.181, allocations: 3.428 MB / 489.7 MB, free: 13.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.6e-05/1.181, allocations: 8.031 kB / 489.7 MB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002123/1.183, allocations: 353.2 kB / 490.1 MB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006487/1.189, allocations: 0.6357 MB / 490.7 MB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/1.206, allocations: 3.359 MB / 494.1 MB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003506/1.207, allocations: 154.9 kB / 494.2 MB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/1.208, allocations: 199.9 kB / 494.4 MB, free: 8.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01386/1.222, allocations: 3.189 MB / 497.6 MB, free: 5.582 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/1.239, allocations: 3.814 MB / 0.4897 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/1.239, allocations: 8 kB / 0.4897 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007379/1.24, allocations: 0 / 0.4897 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003471/1.24, allocations: 166.7 kB / 0.4898 GB, free: 1.457 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4041/1.644, allocations: 13.88 MB / 0.5034 GB, free: 72.56 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.655, allocations: 5.318 MB / 0.5086 GB, free: 68.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00425/1.659, allocations: 1.224 MB / 0.5098 GB, free: 68.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/1.674, allocations: 3.801 MB / 0.5135 GB, free: 67.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/1.674, allocations: 45 kB / 0.5135 GB, free: 67.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=131): time 5.411e-06/1.674, allocations: 0 / 0.5135 GB, free: 67.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=135): time 0.0154/1.689, allocations: 4.316 MB / 0.5178 GB, free: 66.89 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/1.689, allocations: 68.47 kB / 0.5178 GB, free: 66.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004408/1.694, allocations: 1.547 MB / 0.5193 GB, free: 66.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003778/1.694, allocations: 25.7 kB / 0.5194 GB, free: 66.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/1.696, allocations: 1.65 MB / 0.521 GB, free: 66.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007851/1.697, allocations: 451.5 kB / 0.5214 GB, free: 65.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/1.697, allocations: 0 / 0.5214 GB, free: 65.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/1.697, allocations: 380.1 kB / 0.5218 GB, free: 65.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/1.699, allocations: 0.6693 MB / 0.5224 GB, free: 65.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/1.702, allocations: 1.268 MB / 0.5237 GB, free: 64.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003482/1.705, allocations: 0.9872 MB / 0.5246 GB, free: 64.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.936e-05/1.705, allocations: 6.969 kB / 0.5246 GB, free: 64.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.008505/1.714, allocations: 2.37 MB / 0.5269 GB, free: 64.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/1.714, allocations: 11.53 kB / 0.527 GB, free: 64.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.465e-05/1.714, allocations: 22.84 kB / 0.527 GB, free: 64.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000654/1.715, allocations: 141.2 kB / 0.5271 GB, free: 64.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004398/1.719, allocations: 464.8 kB / 0.5276 GB, free: 64.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/1.722, allocations: 2.944 MB / 0.5304 GB, free: 61.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/1.726, allocations: 82.91 kB / 0.5305 GB, free: 61.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005005/1.726, allocations: 84.81 kB / 0.5306 GB, free: 61.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005576/1.727, allocations: 168.6 kB / 0.5307 GB, free: 61.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000764/1.728, allocations: 202.1 kB / 0.5309 GB, free: 61.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00721/1.735, allocations: 2.12 MB / 0.533 GB, free: 61.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.473e-05/1.735, allocations: 16.84 kB / 0.533 GB, free: 61.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/1.735, allocations: 5.938 kB / 0.533 GB, free: 61.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-05/1.735, allocations: 3.656 kB / 0.533 GB, free: 61.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/1.751, allocations: 4.745 MB / 0.5377 GB, free: 60.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/1.751, allocations: 3.875 kB / 0.5377 GB, free: 60.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002685/1.754, allocations: 237.8 kB / 0.5379 GB, free: 60.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/1.755, allocations: 272.5 kB / 0.5382 GB, free: 60.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002818/1.755, allocations: 15.75 kB / 0.5382 GB, free: 60.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009196/1.765, allocations: 6.822 MB / 0.5448 GB, free: 55.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/1.765, allocations: 3.062 kB / 0.5448 GB, free: 55.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009017/1.774, allocations: 3.323 MB / 0.5481 GB, free: 53.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/1.776, allocations: 454.3 kB / 0.5485 GB, free: 52.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007185/1.776, allocations: 3.781 kB / 0.5485 GB, free: 52.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002673/1.779, allocations: 66.92 kB / 0.5486 GB, free: 52.95 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004878/1.78, allocations: 91.2 kB / 0.5487 GB, free: 52.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/1.78, allocations: 42.12 kB / 0.5487 GB, free: 52.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003285/1.783, allocations: 1.145 MB / 0.5498 GB, free: 52.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.783, allocations: 1.125 kB / 0.5498 GB, free: 52.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004279/1.787, allocations: 0.5237 MB / 0.5503 GB, free: 52.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01039/1.798, allocations: 4.778 MB / 0.555 GB, free: 49.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005297/1.803, allocations: 1.969 MB / 0.5569 GB, free: 48.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.803, allocations: 3.781 kB / 0.5569 GB, free: 48.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003543/1.807, allocations: 1.323 MB / 0.5582 GB, free: 47.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004799/1.812, allocations: 428.7 kB / 0.5586 GB, free: 47.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02075/1.832, allocations: 5.58 MB / 0.5641 GB, free: 45.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0045/1.837, allocations: 2.479 MB / 0.5665 GB, free: 44.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003633/1.841, allocations: 0.4923 MB / 0.567 GB, free: 44.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00345/1.844, allocations: 1.287 MB / 0.5682 GB, free: 43.35 MB / 394.7 MB Notification: Performance of SimCode: time 1.403e-06/1.844, allocations: 0 / 0.5682 GB, free: 43.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1987/2.043, allocations: 48.27 MB / 0.6154 GB, free: 15.61 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003056/2.043, allocations: 172.5 kB / 0.6155 GB, free: 15.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.6/7.643, allocations: 1.781 kB / 0.6155 GB, free: 15.42 MB / 394.7 MB