Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 235 MB / 247.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.321e-05, allocations: 0 / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4072, allocations: 54.85 MB / 359.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2103/0.6175, allocations: 117.4 MB / 477.3 MB, free: 11.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.6179, allocations: 79.94 kB / 477.4 MB, free: 11.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5857/1.204, allocations: 61.79 MB / 0.5265 GB, free: 106.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.886e-06/1.204, allocations: 2.344 kB / 0.5265 GB, free: 106.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004097/1.204, allocations: 85.89 kB / 0.5266 GB, free: 106.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01193/1.216, allocations: 2.899 MB / 0.5294 GB, free: 105.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/1.216, allocations: 13.28 kB / 0.5295 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001855/1.218, allocations: 406.6 kB / 0.5298 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002888/1.221, allocations: 401.7 kB / 0.5302 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008723/1.23, allocations: 2.139 MB / 0.5323 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003519/1.23, allocations: 213.8 kB / 0.5325 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001394/1.232, allocations: 282.6 kB / 0.5328 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/1.245, allocations: 3.613 MB / 0.5363 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002132/1.245, allocations: 8.625 kB / 0.5363 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008971/1.246, allocations: 127.2 kB / 0.5365 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002495/1.247, allocations: 134.4 kB / 0.5366 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01157/1.258, allocations: 2.91 MB / 0.5394 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03454/1.293, allocations: 11.59 MB / 0.5507 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006281/1.299, allocations: 2.195 MB / 0.5529 GB, free: 99.84 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002617/1.302, allocations: 1.058 MB / 0.5539 GB, free: 99.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005186/1.302, allocations: 220.2 kB / 0.5541 GB, free: 99.24 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/1.302, allocations: 51.69 kB / 0.5542 GB, free: 99.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 4.148e-06/1.302, allocations: 0 / 0.5542 GB, free: 99.19 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.02245/1.325, allocations: 6.045 MB / 0.5601 GB, free: 96.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/1.325, allocations: 65.78 kB / 0.5601 GB, free: 96.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003935/1.329, allocations: 1.684 MB / 0.5618 GB, free: 95.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004853/1.329, allocations: 52.95 kB / 0.5618 GB, free: 95.92 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/1.33, allocations: 1.351 MB / 0.5632 GB, free: 94.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007765/1.331, allocations: 0.5284 MB / 0.5637 GB, free: 94.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/1.331, allocations: 35.19 kB / 0.5637 GB, free: 94.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/1.332, allocations: 379.2 kB / 0.5641 GB, free: 94.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/1.334, allocations: 0.8666 MB / 0.5649 GB, free: 93.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002459/1.336, allocations: 1.311 MB / 0.5662 GB, free: 92.92 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/1.339, allocations: 1.085 MB / 0.5673 GB, free: 92.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/1.339, allocations: 2.875 kB / 0.5673 GB, free: 92.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007968/1.347, allocations: 2.865 MB / 0.5701 GB, free: 91.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/1.347, allocations: 15.45 kB / 0.5701 GB, free: 91.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/1.347, allocations: 15.44 kB / 0.5701 GB, free: 91.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001789/1.349, allocations: 442.4 kB / 0.5705 GB, free: 91.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003582/1.353, allocations: 455.8 kB / 0.5709 GB, free: 91.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.363, allocations: 7.047 MB / 0.5778 GB, free: 86.15 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/1.366, allocations: 121.4 kB / 0.5779 GB, free: 86.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005208/1.366, allocations: 79.64 kB / 0.578 GB, free: 86.1 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005273/1.367, allocations: 207.1 kB / 0.5782 GB, free: 85.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007466/1.368, allocations: 209.7 kB / 0.5784 GB, free: 85.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00932/1.377, allocations: 2.944 MB / 0.5813 GB, free: 84.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/1.377, allocations: 17.34 kB / 0.5813 GB, free: 84.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.377, allocations: 10.78 kB / 0.5813 GB, free: 84.72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-05/1.377, allocations: 11.03 kB / 0.5813 GB, free: 84.71 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/1.395, allocations: 6.1 MB / 0.5873 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/1.395, allocations: 3.625 kB / 0.5873 GB, free: 82.28 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002226/1.397, allocations: 231.9 kB / 0.5875 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003868/1.401, allocations: 0.8355 MB / 0.5883 GB, free: 82.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003606/1.402, allocations: 37.78 kB / 0.5884 GB, free: 82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01755/1.419, allocations: 10.18 MB / 0.5983 GB, free: 75.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/1.419, allocations: 7.766 kB / 0.5983 GB, free: 75.44 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/1.43, allocations: 4.362 MB / 0.6026 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001842/1.432, allocations: 0.4925 MB / 0.6031 GB, free: 73.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007242/1.433, allocations: 35.84 kB / 0.6031 GB, free: 73.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002365/1.435, allocations: 97.28 kB / 0.6032 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004804/1.436, allocations: 121.1 kB / 0.6033 GB, free: 73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/1.436, allocations: 54 kB / 0.6033 GB, free: 72.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002837/1.439, allocations: 1.293 MB / 0.6046 GB, free: 71.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.439, allocations: 0 / 0.6046 GB, free: 71.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003525/1.442, allocations: 0.6282 MB / 0.6052 GB, free: 71.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (112): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01171/1.454, allocations: 5.926 MB / 0.611 GB, free: 65.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006021/1.46, allocations: 2.589 MB / 0.6135 GB, free: 63.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.46, allocations: 0 / 0.6135 GB, free: 63.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003778/1.464, allocations: 1.647 MB / 0.6151 GB, free: 61.81 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/1.468, allocations: 0.491 MB / 0.6156 GB, free: 61.42 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/1.483, allocations: 5.46 MB / 0.621 GB, free: 56.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/1.485, allocations: 2.265 MB / 0.6232 GB, free: 54.85 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002539/1.488, allocations: 462.4 kB / 0.6236 GB, free: 54.53 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002364/1.49, allocations: 1.122 MB / 0.6247 GB, free: 53.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/1.49, allocations: 0 / 0.6247 GB, free: 53.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1332/1.623, allocations: 56.95 MB / 0.6803 GB, free: 1.965 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/1.624, allocations: 191.9 kB / 0.6805 GB, free: 1.738 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.417/6.04, allocations: 3.938 kB / 0.6805 GB, free: 1.734 MB / 458.7 MB