Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.639/1.639, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.347e-05, allocations: 8 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2895, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.4857, allocations: 102.3 MB / 360.6 MB, free: 7.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.486, allocations: 87.89 kB / 360.7 MB, free: 7.348 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4495/0.9355, allocations: 55.55 MB / 416.3 MB, free: 60.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.9356, allocations: 0 / 416.3 MB, free: 60.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002823/0.9359, allocations: 79.88 kB / 416.4 MB, free: 60.21 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.008965/0.9449, allocations: 2.857 MB / 419.2 MB, free: 57.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.9449, allocations: 8.031 kB / 419.2 MB, free: 57.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001884/0.9468, allocations: 399.9 kB / 419.6 MB, free: 56.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004872/0.9517, allocations: 1.921 MB / 421.5 MB, free: 54.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.9518, allocations: 92 kB / 421.6 MB, free: 54.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005352/0.9524, allocations: 171.9 kB / 421.8 MB, free: 54.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00635/0.9588, allocations: 2.678 MB / 424.5 MB, free: 52.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006743/0.9655, allocations: 3.188 MB / 427.7 MB, free: 48.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.712e-05/0.9657, allocations: 7.984 kB / 427.7 MB, free: 48.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003262/0.966, allocations: 4 kB / 427.7 MB, free: 48.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001584/0.9662, allocations: 141.4 kB / 427.8 MB, free: 48.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02249/0.9887, allocations: 10.97 MB / 438.8 MB, free: 37.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003204/0.9919, allocations: 1.903 MB / 440.7 MB, free: 35.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/0.9938, allocations: 0.9026 MB / 441.6 MB, free: 34.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004282/0.9942, allocations: 146.1 kB / 441.7 MB, free: 34.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.9943, allocations: 47.81 kB / 441.8 MB, free: 34.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 3.927e-06/0.9943, allocations: 0 / 441.8 MB, free: 34.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=153): time 0.01426/1.009, allocations: 5.546 MB / 447.3 MB, free: 28.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/1.009, allocations: 68.72 kB / 447.4 MB, free: 28.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/1.011, allocations: 1.291 MB / 448.7 MB, free: 27.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001591/1.011, allocations: 25.7 kB / 448.7 MB, free: 27.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007747/1.012, allocations: 1.329 MB / 450 MB, free: 25.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00044/1.012, allocations: 0.5004 MB / 450.5 MB, free: 25.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/1.013, allocations: 0 / 450.5 MB, free: 25.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/1.013, allocations: 386.7 kB / 450.9 MB, free: 24.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/1.014, allocations: 0.8239 MB / 451.7 MB, free: 24.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001924/1.016, allocations: 1.361 MB / 453.1 MB, free: 22.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/1.018, allocations: 1.068 MB / 454.2 MB, free: 21.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/1.018, allocations: 11.94 kB / 454.2 MB, free: 21.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006081/1.024, allocations: 2.686 MB / 456.9 MB, free: 18.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.977e-05/1.024, allocations: 19.66 kB / 456.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/1.025, allocations: 23.95 kB / 456.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/1.027, allocations: 0.5333 MB / 457.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002823/1.029, allocations: 443.3 kB / 457.9 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008983/1.038, allocations: 6.006 MB / 463.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/1.041, allocations: 99.77 kB / 464 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/1.041, allocations: 80.05 kB / 464.1 MB, free: 11.33 MB / 314.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 (213): * Single equations (assignments): 210 * 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.0003955/1.041, allocations: 160.3 kB / 464.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005261/1.047, allocations: 2.336 MB / 466.6 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003525/1.047, allocations: 189.7 kB / 466.7 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005861/1.053, allocations: 2.499 MB / 469.2 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/1.053, allocations: 16 kB / 469.3 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.649e-06/1.053, allocations: 4 kB / 469.3 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/1.053, allocations: 7.969 kB / 469.3 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/1.065, allocations: 5.196 MB / 474.5 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/1.065, allocations: 4.328 kB / 474.5 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.067, allocations: 267.6 kB / 474.7 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/1.069, allocations: 0.5761 MB / 475.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/1.069, allocations: 15.98 kB / 475.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/1.083, allocations: 7.688 MB / 483 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/1.083, allocations: 4 kB / 483 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009349/1.092, allocations: 3.939 MB / 486.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/1.094, allocations: 454.5 kB / 487.4 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004216/1.094, allocations: 12.12 kB / 487.4 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/1.096, allocations: 87.75 kB / 487.5 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000382/1.096, allocations: 109.2 kB / 487.6 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/1.096, allocations: 43.98 kB / 487.6 MB, free: 3.137 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002113/1.098, allocations: 0.9653 MB / 488.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.098, allocations: 0 / 488.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00266/1.101, allocations: 0.5157 MB / 489.1 MB, free: 1.664 MB / 330.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 (125): * Single equations (assignments): 122 * 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.01048/1.112, allocations: 5.489 MB / 494.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005933/1.118, allocations: 2.485 MB / 497.1 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/1.118, allocations: 4 kB / 497.1 MB, free: 9.562 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003742/1.121, allocations: 1.525 MB / 498.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00332/1.125, allocations: 401.8 kB / 499 MB, free: 7.617 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/1.139, allocations: 5.127 MB / 0.4923 GB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002995/1.142, allocations: 2.223 MB / 0.4945 GB, free: 156 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2512/1.393, allocations: 1.09 MB / 0.4956 GB, free: 87.25 MB / 346.7 MB Notification: Performance of SimCode: time 1.393e-06/1.393, allocations: 0 / 0.4956 GB, free: 87.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.7/5.094, allocations: 85.84 MB / 0.5794 GB, free: 33.62 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat