Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.883/2.883, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.856e-05, allocations: 0 / 299.5 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.435/0.435, allocations: 54.87 MB / 354.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.618/1.053, allocations: 116.8 MB / 471.2 MB, free: 47.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/1.053, allocations: 75.69 kB / 471.3 MB, free: 47.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3286/1.382, allocations: 61.24 MB / 0.52 GB, free: 32.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.382, allocations: 3.875 kB / 0.52 GB, free: 32.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003579/1.382, allocations: 76.69 kB / 0.5201 GB, free: 32.83 MB / 394.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.01135/1.394, allocations: 2.891 MB / 0.5229 GB, free: 31.13 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.627e-05/1.394, allocations: 11.59 kB / 0.5229 GB, free: 31.13 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001479/1.395, allocations: 295.3 kB / 0.5232 GB, free: 31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/1.398, allocations: 416.7 kB / 0.5236 GB, free: 30.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008527/1.406, allocations: 2.135 MB / 0.5257 GB, free: 29.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/1.406, allocations: 125.2 kB / 0.5258 GB, free: 29.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/1.408, allocations: 167.9 kB / 0.526 GB, free: 29.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009762/1.418, allocations: 2.728 MB / 0.5287 GB, free: 26.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/1.43, allocations: 3.207 MB / 0.5318 GB, free: 23.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001618/1.43, allocations: 8 kB / 0.5318 GB, free: 23.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006383/1.431, allocations: 4 kB / 0.5318 GB, free: 23.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002036/1.431, allocations: 133.4 kB / 0.5319 GB, free: 23.37 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03536/1.466, allocations: 11.08 MB / 0.5427 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006827/1.473, allocations: 2.162 MB / 0.5448 GB, free: 9.734 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002895/1.476, allocations: 1.032 MB / 0.5459 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005815/1.477, allocations: 231.4 kB / 0.5461 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/1.477, allocations: 43.88 kB / 0.5461 GB, free: 8.383 MB / 394.7 MB Notification: Performance of pre-optimization done (n=147): time 4.939e-06/1.477, allocations: 0 / 0.5461 GB, free: 8.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=161): time 0.02013/1.497, allocations: 5.586 MB / 0.5516 GB, free: 2.738 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/1.497, allocations: 68.72 kB / 0.5516 GB, free: 2.66 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/1.501, allocations: 1.431 MB / 0.553 GB, free: 1.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004605/1.502, allocations: 29.7 kB / 0.5531 GB, free: 1.195 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/1.503, allocations: 1.346 MB / 0.5544 GB, free: 15.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/1.504, allocations: 0.5273 MB / 0.5549 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/1.504, allocations: 0 / 0.5549 GB, free: 15.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000273/1.505, allocations: 377.9 kB / 0.5553 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/1.507, allocations: 0.8474 MB / 0.5561 GB, free: 14.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003393/1.511, allocations: 1.284 MB / 0.5573 GB, free: 12.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00363/1.514, allocations: 1.081 MB / 0.5584 GB, free: 11.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.556e-05/1.514, allocations: 4 kB / 0.5584 GB, free: 11.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01015/1.525, allocations: 2.727 MB / 0.5611 GB, free: 8.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.346e-05/1.525, allocations: 12 kB / 0.5611 GB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.404e-05/1.525, allocations: 12 kB / 0.5611 GB, free: 8.758 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/1.527, allocations: 446.5 kB / 0.5615 GB, free: 8.312 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/1.532, allocations: 463.3 kB / 0.562 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/1.546, allocations: 6.736 MB / 0.5685 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/1.549, allocations: 95.83 kB / 0.5686 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006967/1.55, allocations: 75.98 kB / 0.5687 GB, free: 0.6016 MB / 410.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 (209): * Single equations (assignments): 206 * 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.0007714/1.551, allocations: 146.7 kB / 0.5688 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000983/1.552, allocations: 189.7 kB / 0.569 GB, free: 272 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.563, allocations: 2.847 MB / 0.5718 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-05/1.563, allocations: 19.98 kB / 0.5718 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/1.563, allocations: 8 kB / 0.5718 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.692e-05/1.563, allocations: 11.92 kB / 0.5718 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02171/1.585, allocations: 5.698 MB / 0.5774 GB, free: 7.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/1.585, allocations: 8 kB / 0.5774 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002838/1.588, allocations: 243.6 kB / 0.5776 GB, free: 7.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005077/1.593, allocations: 0.838 MB / 0.5785 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004369/1.593, allocations: 19.94 kB / 0.5785 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02378/1.617, allocations: 9.993 MB / 0.5882 GB, free: 12.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.434e-05/1.617, allocations: 12.06 kB / 0.5882 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.632, allocations: 4.338 MB / 0.5925 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002263/1.634, allocations: 482.5 kB / 0.5929 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000802/1.635, allocations: 12 kB / 0.593 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003128/1.638, allocations: 83.86 kB / 0.593 GB, free: 7.039 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007732/1.639, allocations: 125 kB / 0.5932 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/1.639, allocations: 47.98 kB / 0.5932 GB, free: 6.867 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003558/1.643, allocations: 1.078 MB / 0.5942 GB, free: 5.797 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.623e-06/1.643, allocations: 4.281 kB / 0.5943 GB, free: 5.793 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004374/1.647, allocations: 0.5429 MB / 0.5948 GB, free: 5.25 MB / 442.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 (115): * Single equations (assignments): 112 * 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.01647/1.664, allocations: 5.89 MB / 0.6005 GB, free: 15.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008068/1.672, allocations: 2.515 MB / 0.603 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.672, allocations: 5.125 kB / 0.603 GB, free: 12.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005044/1.677, allocations: 1.599 MB / 0.6046 GB, free: 11.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00483/1.682, allocations: 413.6 kB / 0.605 GB, free: 10.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02056/1.703, allocations: 5.335 MB / 0.6102 GB, free: 5.242 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004935/1.708, allocations: 2.263 MB / 0.6124 GB, free: 2.949 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00341/1.711, allocations: 468.5 kB / 0.6128 GB, free: 2.488 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00352/1.715, allocations: 1.128 MB / 0.6139 GB, free: 1.359 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/1.715, allocations: 0 / 0.6139 GB, free: 1.359 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5846/2.299, allocations: 51.01 MB / 0.6637 GB, free: 115.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002568/2.3, allocations: 160.1 kB / 0.6639 GB, free: 115.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.078/7.377, allocations: 0 / 0.6639 GB, free: 115.7 MB / 474.7 MB