Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.875e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09305/0.0931, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4525/0.5457, allocations: 108.3 MB / 408.3 MB, free: 10.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.5461, allocations: 86.45 kB / 408.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2357/0.7818, allocations: 58.27 MB / 466.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7819, allocations: 0 / 466.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004131/0.7823, allocations: 79.88 kB / 466.7 MB, free: 2.137 MB / 346.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.01091/0.7932, allocations: 2.873 MB / 469.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.7933, allocations: 8.031 kB / 469.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001472/0.7948, allocations: 408.9 kB / 470 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/0.7967, allocations: 403.6 kB / 470.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007661/0.8044, allocations: 2.164 MB / 472.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002886/0.8047, allocations: 213.6 kB / 472.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001069/0.8058, allocations: 283.9 kB / 473 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01069/0.8165, allocations: 3.555 MB / 476.6 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.8167, allocations: 11.84 kB / 476.6 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004647/0.8172, allocations: 120 kB / 476.7 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.8174, allocations: 137.5 kB / 476.8 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009624/0.827, allocations: 2.822 MB / 479.7 MB, free: 4.883 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03216/0.8592, allocations: 11.64 MB / 491.3 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004293/0.8636, allocations: 1.911 MB / 493.2 MB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.866, allocations: 0.9216 MB / 494.1 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005177/0.8665, allocations: 227.4 kB / 494.4 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/0.8666, allocations: 51.88 kB / 494.4 MB, free: 5.641 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.007e-06/0.8666, allocations: 0 / 494.4 MB, free: 5.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.02277/0.8894, allocations: 6.352 MB / 0.489 GB, free: 15.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.8895, allocations: 72.72 kB / 0.4891 GB, free: 15.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004278/0.8938, allocations: 1.7 MB / 0.4907 GB, free: 13.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003826/0.8942, allocations: 53.7 kB / 0.4908 GB, free: 13.35 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.8955, allocations: 1.318 MB / 0.4921 GB, free: 12.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007319/0.8962, allocations: 0.5084 MB / 0.4926 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.8964, allocations: 43.94 kB / 0.4926 GB, free: 11.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/0.8967, allocations: 382.7 kB / 0.493 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.8989, allocations: 0.8552 MB / 0.4938 GB, free: 10.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002612/0.9015, allocations: 1.377 MB / 0.4952 GB, free: 8.605 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/0.9043, allocations: 1.086 MB / 0.4962 GB, free: 7.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.486e-05/0.9043, allocations: 7.938 kB / 0.4962 GB, free: 7.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007899/0.9122, allocations: 2.806 MB / 0.499 GB, free: 4.688 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.827e-05/0.9123, allocations: 12 kB / 0.499 GB, free: 4.676 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.9123, allocations: 16 kB / 0.499 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002395/0.9147, allocations: 0.5492 MB / 0.4995 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/0.918, allocations: 439.3 kB / 0.5 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01215/0.9302, allocations: 6.265 MB / 0.5061 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002894/0.9331, allocations: 131.8 kB / 0.5062 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/0.9335, allocations: 80 kB / 0.5063 GB, free: 12.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 205 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005305/0.934, allocations: 216.4 kB / 0.5065 GB, free: 12.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006386/0.9347, allocations: 209.4 kB / 0.5067 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007652/0.9423, allocations: 2.622 MB / 0.5092 GB, free: 9.855 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.55e-05/0.9424, allocations: 16 kB / 0.5093 GB, free: 9.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.9424, allocations: 4 kB / 0.5093 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.724e-05/0.9425, allocations: 11.92 kB / 0.5093 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/0.9591, allocations: 5.684 MB / 0.5148 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/0.9591, allocations: 4 kB / 0.5148 GB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/0.9616, allocations: 247.6 kB / 0.5151 GB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002853/0.9645, allocations: 0.5882 MB / 0.5156 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002869/0.9648, allocations: 39.98 kB / 0.5157 GB, free: 3.145 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3216/1.286, allocations: 7.973 MB / 0.5235 GB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.286, allocations: 3.312 kB / 0.5235 GB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009718/1.296, allocations: 4.006 MB / 0.5274 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/1.298, allocations: 489.4 kB / 0.5279 GB, free: 95.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004971/1.298, allocations: 32.31 kB / 0.5279 GB, free: 95.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/1.3, allocations: 94.36 kB / 0.528 GB, free: 95.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003844/1.301, allocations: 111.6 kB / 0.5281 GB, free: 95.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/1.301, allocations: 44.44 kB / 0.5281 GB, free: 95.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00406/1.305, allocations: 1.303 MB / 0.5294 GB, free: 95.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.305, allocations: 0 / 0.5294 GB, free: 95.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003692/1.309, allocations: 0.6158 MB / 0.53 GB, free: 95.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,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 (123): * Single equations (assignments): 120 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01069/1.32, allocations: 5.582 MB / 0.5354 GB, free: 93.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006262/1.326, allocations: 2.513 MB / 0.5379 GB, free: 93.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/1.326, allocations: 0 / 0.5379 GB, free: 93.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004221/1.33, allocations: 1.54 MB / 0.5394 GB, free: 93.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004856/1.335, allocations: 487.8 kB / 0.5399 GB, free: 93.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02067/1.356, allocations: 5.375 MB / 0.5451 GB, free: 92.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/1.359, allocations: 2.246 MB / 0.5473 GB, free: 91.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003151/1.362, allocations: 1.136 MB / 0.5484 GB, free: 91.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/1.362, allocations: 0 / 0.5484 GB, free: 91.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.25/5.613, allocations: 89.43 MB / 0.6358 GB, free: 35.16 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat