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.241/2.241, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.543e-05, allocations: 4 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3933/0.3934, allocations: 54.85 MB / 359.9 MB, free: 2.805 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2059/0.5994, allocations: 117.5 MB / 477.3 MB, free: 11.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5997, allocations: 81.59 kB / 477.4 MB, free: 11.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5879/1.188, allocations: 61.78 MB / 0.5266 GB, free: 106.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.188, allocations: 1.25 kB / 0.5266 GB, free: 106.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003146/1.188, allocations: 86.58 kB / 0.5266 GB, free: 106.2 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.01054/1.199, allocations: 2.903 MB / 0.5295 GB, free: 105.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/1.199, allocations: 13.56 kB / 0.5295 GB, free: 105.2 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001392/1.2, allocations: 404.3 kB / 0.5299 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/1.202, allocations: 405.8 kB / 0.5303 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00746/1.209, allocations: 2.14 MB / 0.5324 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/1.21, allocations: 209.9 kB / 0.5326 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008097/1.211, allocations: 286.3 kB / 0.5328 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/1.222, allocations: 3.582 MB / 0.5363 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/1.222, allocations: 9.047 kB / 0.5363 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004705/1.223, allocations: 125.3 kB / 0.5365 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002087/1.223, allocations: 131.1 kB / 0.5366 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009926/1.233, allocations: 2.875 MB / 0.5394 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03106/1.264, allocations: 11.6 MB / 0.5507 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005901/1.27, allocations: 2.171 MB / 0.5528 GB, free: 99.92 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002314/1.272, allocations: 1.059 MB / 0.5539 GB, free: 99.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004473/1.273, allocations: 221 kB / 0.5541 GB, free: 99.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/1.273, allocations: 55.66 kB / 0.5541 GB, free: 99.26 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 4.829e-06/1.273, allocations: 3.188 kB / 0.5541 GB, free: 99.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.01805/1.291, allocations: 6.039 MB / 0.56 GB, free: 96.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/1.291, allocations: 68.45 kB / 0.5601 GB, free: 96.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003642/1.295, allocations: 1.679 MB / 0.5617 GB, free: 96.05 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004183/1.295, allocations: 53.2 kB / 0.5618 GB, free: 96 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/1.296, allocations: 1.352 MB / 0.5631 GB, free: 94.97 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006858/1.297, allocations: 0.522 MB / 0.5636 GB, free: 94.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/1.297, allocations: 39.12 kB / 0.5637 GB, free: 94.53 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/1.297, allocations: 380.1 kB / 0.564 GB, free: 94.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/1.299, allocations: 0.8689 MB / 0.5649 GB, free: 93.87 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/1.302, allocations: 1.301 MB / 0.5661 GB, free: 93.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/1.304, allocations: 1.084 MB / 0.5672 GB, free: 92.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/1.304, allocations: 3.594 kB / 0.5672 GB, free: 92.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.0072/1.311, allocations: 2.826 MB / 0.57 GB, free: 91.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/1.312, allocations: 14.42 kB / 0.57 GB, free: 91.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/1.312, allocations: 14.39 kB / 0.57 GB, free: 91.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/1.313, allocations: 447.6 kB / 0.5704 GB, free: 91.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0034/1.317, allocations: 450.7 kB / 0.5708 GB, free: 91.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009293/1.326, allocations: 7.034 MB / 0.5777 GB, free: 86.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/1.329, allocations: 131.4 kB / 0.5778 GB, free: 86.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003291/1.329, allocations: 75 kB / 0.5779 GB, free: 86.19 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.0004983/1.33, allocations: 215.5 kB / 0.5781 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005612/1.33, allocations: 210.2 kB / 0.5783 GB, free: 85.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007696/1.338, allocations: 2.945 MB / 0.5812 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/1.338, allocations: 17.59 kB / 0.5812 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/1.338, allocations: 11.31 kB / 0.5812 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.503e-05/1.338, allocations: 9.203 kB / 0.5812 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.354, allocations: 6.094 MB / 0.5872 GB, free: 82.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/1.354, allocations: 3.312 kB / 0.5872 GB, free: 82.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/1.356, allocations: 236.6 kB / 0.5874 GB, free: 82.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003507/1.359, allocations: 0.8257 MB / 0.5882 GB, free: 82.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/1.36, allocations: 40.27 kB / 0.5882 GB, free: 82.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/1.379, allocations: 10.19 MB / 0.5982 GB, free: 75.55 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/1.379, allocations: 11.3 kB / 0.5982 GB, free: 75.55 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.394, allocations: 4.361 MB / 0.6025 GB, free: 73.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00232/1.396, allocations: 0.4908 MB / 0.603 GB, free: 73.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/1.397, allocations: 35.38 kB / 0.603 GB, free: 73.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003631/1.401, allocations: 104.8 kB / 0.6031 GB, free: 73.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007783/1.402, allocations: 118 kB / 0.6032 GB, free: 73.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002662/1.402, allocations: 48.39 kB / 0.6032 GB, free: 73.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004384/1.406, allocations: 1.289 MB / 0.6045 GB, free: 71.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.044e-06/1.406, allocations: 0 / 0.6045 GB, free: 71.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009361/1.416, allocations: 0.6327 MB / 0.6051 GB, free: 71.28 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.02888/1.445, allocations: 5.931 MB / 0.6109 GB, free: 65.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0079/1.453, allocations: 2.537 MB / 0.6134 GB, free: 63.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.453, allocations: 6.625 kB / 0.6134 GB, free: 63.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004752/1.458, allocations: 1.605 MB / 0.615 GB, free: 61.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006626/1.464, allocations: 499.4 kB / 0.6154 GB, free: 61.59 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0178/1.482, allocations: 5.441 MB / 0.6208 GB, free: 56.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002422/1.485, allocations: 2.267 MB / 0.623 GB, free: 55.03 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002517/1.487, allocations: 467.4 kB / 0.6234 GB, free: 54.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002347/1.489, allocations: 1.124 MB / 0.6245 GB, free: 53.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.323e-06/1.489, allocations: 0 / 0.6245 GB, free: 53.68 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1295/1.619, allocations: 56.67 MB / 0.6799 GB, free: 2.312 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002167/1.619, allocations: 190.6 kB / 0.68 GB, free: 2.086 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.323/5.943, allocations: 3.906 kB / 0.68 GB, free: 2.082 MB / 458.7 MB