Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.907e-05, allocations: 4 kB / 225.1 MB, free: 2.68 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2492, allocations: 38.77 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.4278, allocations: 99.65 MB / 363.5 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.4282, allocations: 87.94 kB / 363.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4639/0.8921, allocations: 51.21 MB / 414.8 MB, free: 59.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.8922, allocations: 0 / 414.8 MB, free: 59.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003014/0.8925, allocations: 67.94 kB / 414.9 MB, free: 59.84 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008798/0.9013, allocations: 2.558 MB / 417.4 MB, free: 57.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.9014, allocations: 8.031 kB / 417.4 MB, free: 57.22 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001347/0.9027, allocations: 366.8 kB / 417.8 MB, free: 56.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.9047, allocations: 352.4 kB / 418.1 MB, free: 56.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005373/0.9101, allocations: 1.728 MB / 419.9 MB, free: 54.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002397/0.9104, allocations: 189 kB / 420.1 MB, free: 54.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.9114, allocations: 255.8 kB / 420.3 MB, free: 54.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009441/0.9209, allocations: 3.164 MB / 423.5 MB, free: 50.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001267/0.921, allocations: 4 kB / 423.5 MB, free: 50.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005225/0.9216, allocations: 108 kB / 423.6 MB, free: 50.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.9217, allocations: 116.9 kB / 423.7 MB, free: 50.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0079/0.9297, allocations: 2.489 MB / 426.2 MB, free: 48.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02629/0.956, allocations: 10.36 MB / 436.5 MB, free: 37.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002985/0.959, allocations: 1.373 MB / 437.9 MB, free: 36.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.9609, allocations: 0.7456 MB / 438.7 MB, free: 35.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004031/0.9613, allocations: 146 kB / 438.8 MB, free: 35.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.9614, allocations: 39.56 kB / 438.8 MB, free: 35.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 3.788e-06/0.9614, allocations: 0 / 438.8 MB, free: 35.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.02252/0.9839, allocations: 6.122 MB / 445 MB, free: 28.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.984, allocations: 64.72 kB / 445 MB, free: 28.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003028/0.987, allocations: 1.4 MB / 446.4 MB, free: 27.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003201/0.9874, allocations: 49.7 kB / 446.5 MB, free: 27.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008344/0.9882, allocations: 1.189 MB / 447.7 MB, free: 26.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006235/0.9889, allocations: 445.6 kB / 448.1 MB, free: 25.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.9891, allocations: 36 kB / 448.1 MB, free: 25.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.9892, allocations: 370.8 kB / 448.5 MB, free: 25.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.9911, allocations: 0.7809 MB / 449.3 MB, free: 24.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002238/0.9933, allocations: 1.269 MB / 450.5 MB, free: 23.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002323/0.9957, allocations: 1 MB / 451.5 MB, free: 22.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.9958, allocations: 4 kB / 451.6 MB, free: 22.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.005884/1.002, allocations: 2.316 MB / 453.9 MB, free: 19.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/1.002, allocations: 12 kB / 453.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/1.002, allocations: 16 kB / 453.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009513/1.003, allocations: 247.5 kB / 454.1 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/1.006, allocations: 431.3 kB / 454.6 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/1.009, allocations: 2.998 MB / 457.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/1.011, allocations: 131.7 kB / 457.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004114/1.012, allocations: 71.98 kB / 457.8 MB, free: 15.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * 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): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004116/1.012, allocations: 208.5 kB / 458 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005496/1.013, allocations: 181.8 kB / 458.1 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005184/1.018, allocations: 2.07 MB / 460.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/1.018, allocations: 15.94 kB / 460.2 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/1.018, allocations: 7.984 kB / 460.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.127e-05/1.018, allocations: 7.938 kB / 460.2 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/1.031, allocations: 4.752 MB / 465 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/1.031, allocations: 4.062 kB / 465 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.033, allocations: 283.6 kB / 465.3 MB, free: 7.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000904/1.034, allocations: 195.3 kB / 465.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/1.034, allocations: 24 kB / 465.5 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002836/1.037, allocations: 2.978 MB / 468.5 MB, free: 4.469 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.037, allocations: 7.938 kB / 468.5 MB, free: 4.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007009/1.044, allocations: 3.321 MB / 471.8 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/1.046, allocations: 422.7 kB / 472.2 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005447/1.046, allocations: 28 kB / 472.2 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.048, allocations: 91.88 kB / 472.3 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/1.049, allocations: 88.89 kB / 472.4 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/1.049, allocations: 36 kB / 472.4 MB, free: 368 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002818/1.052, allocations: 1.071 MB / 473.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.052, allocations: 0 / 473.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003106/1.055, allocations: 0.5078 MB / 474 MB, free: 14.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01014/1.065, allocations: 4.783 MB / 478.8 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006441/1.071, allocations: 2.307 MB / 481.1 MB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/1.071, allocations: 0 / 481.1 MB, free: 7.547 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003582/1.075, allocations: 1.328 MB / 482.4 MB, free: 6.156 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003908/1.079, allocations: 429.7 kB / 482.9 MB, free: 5.734 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/1.094, allocations: 4.494 MB / 487.4 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003633/1.098, allocations: 2.027 MB / 489.4 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002696/1.101, allocations: 0.9679 MB / 490.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of SimCode: time 3.687e-06/1.101, allocations: 0 / 490.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.24/5.341, allocations: 90.41 MB / 0.5671 GB, free: 38.55 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_CurrentSource_res.mat does not exist to compare? outputFormat=mat