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.882/1.882, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.441e-05, allocations: 4 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.258, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/0.4739, allocations: 98.98 MB / 357.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.4743, allocations: 87.89 kB / 357.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4031/0.8774, allocations: 50.5 MB / 407.9 MB, free: 67.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.8774, allocations: 0 / 407.9 MB, free: 67.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.00024/0.8777, allocations: 71.88 kB / 408 MB, free: 67.76 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.008217/0.8859, allocations: 2.554 MB / 410.5 MB, free: 65.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.886, allocations: 8.031 kB / 410.6 MB, free: 65.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.8877, allocations: 352 kB / 410.9 MB, free: 64.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004902/0.8926, allocations: 1.727 MB / 412.6 MB, free: 63.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.8927, allocations: 91.98 kB / 412.7 MB, free: 62.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006116/0.8934, allocations: 147.9 kB / 412.9 MB, free: 62.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006637/0.9, allocations: 2.345 MB / 415.2 MB, free: 60.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008229/0.9083, allocations: 2.828 MB / 418 MB, free: 57.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.9084, allocations: 12 kB / 418 MB, free: 57.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003042/0.9088, allocations: 0 / 418 MB, free: 57.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/0.9089, allocations: 120.9 kB / 418.2 MB, free: 57.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02149/0.9304, allocations: 9.857 MB / 428 MB, free: 47.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.9329, allocations: 1.373 MB / 429.4 MB, free: 45.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.9344, allocations: 0.7213 MB / 430.1 MB, free: 45.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003893/0.9348, allocations: 141.2 kB / 430.2 MB, free: 44.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.9348, allocations: 47.81 kB / 430.3 MB, free: 44.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 3.807e-06/0.9349, allocations: 3.938 kB / 430.3 MB, free: 44.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=135): time 0.01462/0.9495, allocations: 5.14 MB / 435.4 MB, free: 39.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.9496, allocations: 64.72 kB / 435.5 MB, free: 39.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.9518, allocations: 1.167 MB / 436.7 MB, free: 38.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.952, allocations: 25.7 kB / 436.7 MB, free: 38.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008377/0.9529, allocations: 1.254 MB / 437.9 MB, free: 37.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004733/0.9534, allocations: 453.3 kB / 438.4 MB, free: 36.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.9535, allocations: 4 kB / 438.4 MB, free: 36.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.9537, allocations: 373.9 kB / 438.8 MB, free: 36.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.9552, allocations: 0.7536 MB / 439.5 MB, free: 35.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.957, allocations: 1.265 MB / 440.8 MB, free: 34.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002121/0.9591, allocations: 0.9859 MB / 441.8 MB, free: 33.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.9592, allocations: 4 kB / 441.8 MB, free: 33.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.005373/0.9645, allocations: 2.326 MB / 444.1 MB, free: 30.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.9646, allocations: 12 kB / 444.1 MB, free: 30.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.9647, allocations: 16 kB / 444.1 MB, free: 30.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009319/0.9656, allocations: 251.5 kB / 444.4 MB, free: 30.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003091/0.9687, allocations: 443.2 kB / 444.8 MB, free: 30.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002759/0.9715, allocations: 2.891 MB / 447.7 MB, free: 26.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.9738, allocations: 91.77 kB / 447.8 MB, free: 26.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.974, allocations: 72 kB / 447.9 MB, free: 26.73 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 (210): * 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): 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.0003896/0.9744, allocations: 156.5 kB / 448 MB, free: 26.57 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004103/0.9785, allocations: 1.845 MB / 449.8 MB, free: 24.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005405/0.9791, allocations: 169.8 kB / 450 MB, free: 24.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.9838, allocations: 2.01 MB / 452 MB, free: 22.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.9838, allocations: 15.98 kB / 452 MB, free: 22.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.9838, allocations: 0 / 452 MB, free: 22.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.9839, allocations: 7.969 kB / 452 MB, free: 22.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.9945, allocations: 4.417 MB / 456.5 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.9946, allocations: 0 / 456.5 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/0.9969, allocations: 295.6 kB / 456.8 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008463/0.9977, allocations: 203.5 kB / 457 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000139/0.9979, allocations: 4 kB / 457 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002509/1, allocations: 2.856 MB / 459.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1, allocations: 7.969 kB / 459.8 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/1.007, allocations: 3.311 MB / 463.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/1.008, allocations: 410.8 kB / 463.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000374/1.008, allocations: 7.984 kB / 463.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/1.01, allocations: 79.94 kB / 463.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/1.01, allocations: 93.08 kB / 463.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/1.01, allocations: 32 kB / 463.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001648/1.012, allocations: 0.8713 MB / 464.6 MB, free: 9.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.012, allocations: 0 / 464.6 MB, free: 9.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002419/1.014, allocations: 452 kB / 465.1 MB, free: 9.039 MB / 314.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 (131): * Single equations (assignments): 127 * 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.007008/1.021, allocations: 4.73 MB / 469.8 MB, free: 4.238 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004675/1.026, allocations: 2.307 MB / 472.1 MB, free: 1.867 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.026, allocations: 0 / 472.1 MB, free: 1.867 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/1.029, allocations: 1.35 MB / 473.4 MB, free: 468 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002959/1.032, allocations: 363.8 kB / 473.8 MB, free: 104 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/1.044, allocations: 4.376 MB / 478.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/1.047, allocations: 2.064 MB / 480.2 MB, free: 9.531 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002754/1.05, allocations: 0.5025 MB / 480.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/1.052, allocations: 0.9679 MB / 481.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/1.052, allocations: 0 / 481.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3714/1.424, allocations: 38.67 MB / 0.5082 GB, free: 89.71 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002493/1.424, allocations: 181.3 kB / 0.5083 GB, free: 89.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.954/5.378, allocations: 0 / 0.5083 GB, free: 89.52 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