Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.493/2.493, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.787e-05/4.793e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4223, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2161/0.6385, allocations: 117.4 MB / 477.3 MB, free: 11.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004052/0.639, allocations: 79.94 kB / 477.4 MB, free: 11.29 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6086/1.248, allocations: 61.78 MB / 0.5265 GB, free: 105.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.974e-06/1.248, allocations: 3.812 kB / 0.5265 GB, free: 105.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003911/1.248, allocations: 82.69 kB / 0.5266 GB, free: 105.7 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.01225/1.26, allocations: 2.902 MB / 0.5294 GB, free: 104.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.268e-05/1.26, allocations: 12.72 kB / 0.5295 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001966/1.262, allocations: 405.8 kB / 0.5298 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002767/1.265, allocations: 404.5 kB / 0.5302 GB, free: 104.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008454/1.274, allocations: 2.139 MB / 0.5323 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003309/1.274, allocations: 213.2 kB / 0.5325 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001352/1.275, allocations: 282 kB / 0.5328 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01295/1.288, allocations: 3.581 MB / 0.5363 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/1.289, allocations: 9.547 kB / 0.5363 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006445/1.289, allocations: 125 kB / 0.5364 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002228/1.289, allocations: 131 kB / 0.5365 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/1.3, allocations: 2.877 MB / 0.5394 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03658/1.337, allocations: 11.6 MB / 0.5507 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/1.343, allocations: 2.173 MB / 0.5528 GB, free: 99.64 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002514/1.345, allocations: 1.058 MB / 0.5538 GB, free: 99.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004891/1.346, allocations: 220.6 kB / 0.554 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/1.346, allocations: 59.23 kB / 0.5541 GB, free: 98.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 4.158e-06/1.346, allocations: 0 / 0.5541 GB, free: 98.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.01909/1.365, allocations: 6.04 MB / 0.56 GB, free: 96.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/1.365, allocations: 73.8 kB / 0.5601 GB, free: 96.45 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003813/1.369, allocations: 1.678 MB / 0.5617 GB, free: 95.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004361/1.369, allocations: 49.61 kB / 0.5618 GB, free: 95.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000947/1.37, allocations: 1.275 MB / 0.563 GB, free: 94.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000793/1.371, allocations: 0.5292 MB / 0.5635 GB, free: 94.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/1.371, allocations: 35.22 kB / 0.5635 GB, free: 94.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/1.372, allocations: 380.2 kB / 0.5639 GB, free: 93.89 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/1.374, allocations: 0.8652 MB / 0.5648 GB, free: 93.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00247/1.376, allocations: 1.303 MB / 0.566 GB, free: 92.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002697/1.379, allocations: 1.083 MB / 0.5671 GB, free: 92.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/1.379, allocations: 3.812 kB / 0.5671 GB, free: 92.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00685/1.386, allocations: 2.698 MB / 0.5697 GB, free: 91.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/1.386, allocations: 15.39 kB / 0.5697 GB, free: 91.36 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/1.386, allocations: 11.81 kB / 0.5698 GB, free: 91.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/1.388, allocations: 444.5 kB / 0.5702 GB, free: 91.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/1.392, allocations: 457.8 kB / 0.5706 GB, free: 91.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009687/1.401, allocations: 7.034 MB / 0.5775 GB, free: 86.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/1.404, allocations: 134.5 kB / 0.5776 GB, free: 85.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003221/1.405, allocations: 75.7 kB / 0.5777 GB, free: 85.96 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.0005113/1.405, allocations: 201.5 kB / 0.5779 GB, free: 85.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005853/1.406, allocations: 213.2 kB / 0.5781 GB, free: 85.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.417, allocations: 2.946 MB / 0.581 GB, free: 84.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/1.417, allocations: 14.62 kB / 0.581 GB, free: 84.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/1.417, allocations: 11.22 kB / 0.581 GB, free: 84.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.315e-05/1.417, allocations: 15.12 kB / 0.581 GB, free: 84.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02381/1.441, allocations: 6.095 MB / 0.5869 GB, free: 82.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/1.441, allocations: 3.938 kB / 0.5869 GB, free: 82.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/1.444, allocations: 231.4 kB / 0.5872 GB, free: 82.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00507/1.449, allocations: 0.8337 MB / 0.588 GB, free: 81.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003768/1.449, allocations: 39.28 kB / 0.588 GB, free: 81.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02474/1.474, allocations: 10.2 MB / 0.598 GB, free: 75.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/1.474, allocations: 7.172 kB / 0.598 GB, free: 75.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.488, allocations: 4.36 MB / 0.6022 GB, free: 73.26 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001738/1.49, allocations: 498.7 kB / 0.6027 GB, free: 72.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005008/1.49, allocations: 35.78 kB / 0.6028 GB, free: 72.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.492, allocations: 98.61 kB / 0.6028 GB, free: 72.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004182/1.493, allocations: 122.9 kB / 0.603 GB, free: 72.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.493, allocations: 46.91 kB / 0.603 GB, free: 72.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00282/1.496, allocations: 1.294 MB / 0.6043 GB, free: 72.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.496, allocations: 0 / 0.6043 GB, free: 72.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003671/1.499, allocations: 0.6254 MB / 0.6049 GB, free: 71.43 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.01111/1.511, allocations: 5.944 MB / 0.6107 GB, free: 65.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006017/1.517, allocations: 2.54 MB / 0.6132 GB, free: 63.61 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.517, allocations: 4 kB / 0.6132 GB, free: 63.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003574/1.52, allocations: 1.593 MB / 0.6147 GB, free: 62.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004463/1.525, allocations: 0.4913 MB / 0.6152 GB, free: 61.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.541, allocations: 5.477 MB / 0.6206 GB, free: 56.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/1.544, allocations: 2.236 MB / 0.6227 GB, free: 55.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002646/1.547, allocations: 1.135 MB / 0.6238 GB, free: 54.1 MB / 458.7 MB Notification: Performance of SimCode: time 1.873e-06/1.547, allocations: 0 / 0.6238 GB, free: 54.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.531/6.078, allocations: 89.05 MB / 0.7108 GB, free: 109.7 MB / 474.7 MB