Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.849e-05/4.862e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2682, allocations: 38.76 MB / 263.9 MB, free: 9.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.4506, allocations: 99.66 MB / 363.5 MB, free: 6.008 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/0.451, allocations: 83.95 kB / 363.6 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4309/0.8819, allocations: 51.22 MB / 414.8 MB, free: 60.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.882, allocations: 0 / 414.8 MB, free: 60.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002386/0.8822, allocations: 71.88 kB / 414.9 MB, free: 60.04 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.008339/0.8906, allocations: 2.561 MB / 417.5 MB, free: 57.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.8907, allocations: 12.02 kB / 417.5 MB, free: 57.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009987/0.8917, allocations: 366.7 kB / 417.8 MB, free: 57.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001399/0.8931, allocations: 348.4 kB / 418.2 MB, free: 56.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005161/0.8983, allocations: 1.724 MB / 419.9 MB, free: 54.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/0.8985, allocations: 201 kB / 420.1 MB, free: 54.72 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009307/0.8995, allocations: 251.9 kB / 420.3 MB, free: 54.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00861/0.9081, allocations: 3.157 MB / 423.5 MB, free: 51.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.896e-05/0.9083, allocations: 7.938 kB / 423.5 MB, free: 51.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003703/0.9086, allocations: 108 kB / 423.6 MB, free: 51.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/0.9088, allocations: 120.9 kB / 423.7 MB, free: 50.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006421/0.9152, allocations: 2.485 MB / 426.2 MB, free: 48.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02656/0.9418, allocations: 10.36 MB / 436.6 MB, free: 37.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004917/0.9468, allocations: 1.373 MB / 437.9 MB, free: 36.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/0.9502, allocations: 0.7456 MB / 438.7 MB, free: 35.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005817/0.9509, allocations: 142 kB / 438.8 MB, free: 35.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.9509, allocations: 43.56 kB / 438.9 MB, free: 35.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 5.631e-06/0.951, allocations: 0 / 438.9 MB, free: 35.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.03081/0.9818, allocations: 6.122 MB / 445 MB, free: 29.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.9819, allocations: 64.72 kB / 445.1 MB, free: 29.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003952/0.9858, allocations: 1.408 MB / 446.5 MB, free: 27.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002543/0.9861, allocations: 45.7 kB / 446.5 MB, free: 27.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.9874, allocations: 1.252 MB / 447.8 MB, free: 26.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006209/0.9881, allocations: 445.6 kB / 448.2 MB, free: 25.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.9883, allocations: 36 kB / 448.2 MB, free: 25.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.9885, allocations: 369.9 kB / 448.6 MB, free: 25.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002444/0.9909, allocations: 0.7693 MB / 449.4 MB, free: 24.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/0.9938, allocations: 1.273 MB / 450.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/0.9968, allocations: 0.9925 MB / 451.6 MB, free: 22.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-05/0.9969, allocations: 8 kB / 451.6 MB, free: 22.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.008009/1.005, allocations: 2.423 MB / 454.1 MB, free: 19.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/1.005, allocations: 12.66 kB / 454.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.149e-05/1.005, allocations: 20 kB / 454.1 MB, free: 19.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001284/1.006, allocations: 247.2 kB / 454.3 MB, free: 19.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003975/1.01, allocations: 435.3 kB / 454.8 MB, free: 19.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004005/1.014, allocations: 2.998 MB / 457.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/1.018, allocations: 127.8 kB / 457.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002713/1.018, allocations: 72.06 kB / 457.9 MB, free: 15.62 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.0005504/1.018, allocations: 204.4 kB / 458.1 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005661/1.019, allocations: 189.6 kB / 458.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005622/1.025, allocations: 2.07 MB / 460.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/1.025, allocations: 12 kB / 460.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/1.025, allocations: 7.938 kB / 460.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/1.025, allocations: 11.92 kB / 460.4 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/1.035, allocations: 4.748 MB / 465.2 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/1.035, allocations: 8 kB / 465.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002292/1.038, allocations: 279.6 kB / 465.5 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008749/1.038, allocations: 203.6 kB / 465.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/1.039, allocations: 27.98 kB / 465.7 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/1.041, allocations: 2.971 MB / 468.7 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.041, allocations: 4 kB / 468.7 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006561/1.048, allocations: 3.317 MB / 472 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.049, allocations: 426.6 kB / 472.4 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003335/1.05, allocations: 28 kB / 472.4 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/1.051, allocations: 99.92 kB / 472.5 MB, free: 0.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/1.051, allocations: 76.84 kB / 472.6 MB, free: 436 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/1.052, allocations: 43.94 kB / 472.6 MB, free: 392 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002319/1.054, allocations: 1.071 MB / 473.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.054, allocations: 0 / 473.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002389/1.056, allocations: 0.5117 MB / 474.2 MB, free: 14.8 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.008716/1.065, allocations: 4.767 MB / 479 MB, free: 9.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006173/1.071, allocations: 2.314 MB / 481.3 MB, free: 7.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.071, allocations: 0 / 481.3 MB, free: 7.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003638/1.075, allocations: 1.332 MB / 482.6 MB, free: 6.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/1.079, allocations: 425.7 kB / 483.1 MB, free: 5.754 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/1.093, allocations: 4.472 MB / 487.5 MB, free: 1.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/1.096, allocations: 2.06 MB / 489.6 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00301/1.099, allocations: 0.4996 MB / 490.1 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002225/1.101, allocations: 0.9523 MB / 491 MB, free: 13.64 MB / 346.7 MB Notification: Performance of SimCode: time 1.512e-06/1.101, allocations: 0 / 491 MB, free: 13.64 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3596/1.461, allocations: 45.62 MB / 0.5241 GB, free: 84.34 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002646/1.461, allocations: 219.3 kB / 0.5243 GB, free: 84.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.218/5.679, allocations: 0 / 0.5243 GB, free: 84.11 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat