Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.464e-05/3.469e-05, allocations: 4 kB / 269.5 MB, free: 6.309 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09749, allocations: 47.58 MB / 317 MB, free: 6.645 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4757/0.5733, allocations: 115.7 MB / 432.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.5737, allocations: 86.83 kB / 432.8 MB, free: 4.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3141/0.8878, allocations: 74.96 MB / 0.4959 GB, free: 24 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.8879, allocations: 0 / 0.4959 GB, free: 24 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000327/0.8882, allocations: 79.88 kB / 0.496 GB, free: 15.95 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0124/0.9006, allocations: 3.144 MB / 0.499 GB, free: 12.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.9007, allocations: 8.031 kB / 0.499 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001394/0.9021, allocations: 451.1 kB / 0.4995 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004085/0.9062, allocations: 0.5774 MB / 0.5 GB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.9181, allocations: 3.108 MB / 0.5031 GB, free: 8.527 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.9185, allocations: 242.3 kB / 0.5033 GB, free: 8.289 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008544/0.9193, allocations: 311.9 kB / 0.5036 GB, free: 7.984 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.9307, allocations: 3.893 MB / 0.5074 GB, free: 3.953 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.9309, allocations: 4 kB / 0.5074 GB, free: 3.949 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005009/0.9314, allocations: 136 kB / 0.5075 GB, free: 3.816 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002245/0.9316, allocations: 142.2 kB / 0.5077 GB, free: 3.676 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.9418, allocations: 3.047 MB / 0.5106 GB, free: 0.625 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3155/1.257, allocations: 13.43 MB / 0.5238 GB, free: 88.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00589/1.263, allocations: 3.906 MB / 0.5276 GB, free: 86.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002629/1.266, allocations: 0.985 MB / 0.5285 GB, free: 86.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006646/1.273, allocations: 2.662 MB / 0.5311 GB, free: 85.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/1.273, allocations: 51.42 kB / 0.5312 GB, free: 85.49 MB / 426.7 MB Notification: Performance of pre-optimization done (n=107): time 3.737e-06/1.273, allocations: 0 / 0.5312 GB, free: 85.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.0156/1.288, allocations: 5.163 MB / 0.5362 GB, free: 84.63 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/1.288, allocations: 70.28 kB / 0.5363 GB, free: 84.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/1.292, allocations: 1.637 MB / 0.5379 GB, free: 84.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/1.292, allocations: 49.08 kB / 0.5379 GB, free: 84.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/1.294, allocations: 1.51 MB / 0.5394 GB, free: 83.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006105/1.294, allocations: 491.5 kB / 0.5399 GB, free: 83.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/1.294, allocations: 36.22 kB / 0.5399 GB, free: 83.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/1.295, allocations: 383.5 kB / 0.5403 GB, free: 83.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/1.296, allocations: 0.7347 MB / 0.541 GB, free: 83.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/1.298, allocations: 1.315 MB / 0.5423 GB, free: 82.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/1.301, allocations: 0.9788 MB / 0.5432 GB, free: 82.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-05/1.301, allocations: 3.969 kB / 0.5432 GB, free: 82.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005692/1.306, allocations: 2.345 MB / 0.5455 GB, free: 82.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.664e-05/1.306, allocations: 15.7 kB / 0.5455 GB, free: 82.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.3e-05/1.306, allocations: 19.53 kB / 0.5456 GB, free: 82.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005051/1.307, allocations: 119.6 kB / 0.5457 GB, free: 82.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003556/1.31, allocations: 489.5 kB / 0.5461 GB, free: 82.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/1.312, allocations: 1.307 MB / 0.5474 GB, free: 81.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/1.314, allocations: 115.3 kB / 0.5475 GB, free: 81.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004362/1.315, allocations: 80.72 kB / 0.5476 GB, free: 81.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 226 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004521/1.315, allocations: 229.1 kB / 0.5478 GB, free: 80.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006459/1.316, allocations: 208.3 kB / 0.548 GB, free: 80.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005143/1.321, allocations: 1.911 MB / 0.5499 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/1.321, allocations: 13.25 kB / 0.5499 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/1.321, allocations: 6.812 kB / 0.5499 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.152e-05/1.321, allocations: 7.734 kB / 0.5499 GB, free: 80.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.333, allocations: 4.934 MB / 0.5547 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/1.333, allocations: 2.312 kB / 0.5547 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.336, allocations: 315.6 kB / 0.555 GB, free: 79.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005165/1.337, allocations: 93.86 kB / 0.5551 GB, free: 79.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002522/1.337, allocations: 33.09 kB / 0.5552 GB, free: 79.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009113/1.338, allocations: 1.28 MB / 0.5564 GB, free: 77.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.338, allocations: 3.688 kB / 0.5564 GB, free: 77.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006603/1.345, allocations: 3.133 MB / 0.5595 GB, free: 76.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/1.346, allocations: 468.5 kB / 0.5599 GB, free: 76.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005445/1.347, allocations: 29.94 kB / 0.56 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002073/1.349, allocations: 83.66 kB / 0.56 GB, free: 75.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/1.349, allocations: 92.16 kB / 0.5601 GB, free: 75.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/1.349, allocations: 35.38 kB / 0.5602 GB, free: 75.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002974/1.352, allocations: 1.247 MB / 0.5614 GB, free: 75.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.352, allocations: 5.375 kB / 0.5614 GB, free: 75.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003214/1.356, allocations: 0.571 MB / 0.5619 GB, free: 75.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (140): * Single equations (assignments): 137 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008129/1.364, allocations: 4.599 MB / 0.5664 GB, free: 72.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005059/1.369, allocations: 2.103 MB / 0.5685 GB, free: 71.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/1.369, allocations: 0 / 0.5685 GB, free: 71.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002539/1.371, allocations: 1.136 MB / 0.5696 GB, free: 71.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004121/1.376, allocations: 469.2 kB / 0.57 GB, free: 71.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01749/1.393, allocations: 5.188 MB / 0.5751 GB, free: 68.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003925/1.397, allocations: 2.323 MB / 0.5774 GB, free: 67.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003429/1.401, allocations: 0.5071 MB / 0.5779 GB, free: 67.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/1.404, allocations: 1.165 MB / 0.579 GB, free: 66.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.794e-06/1.404, allocations: 0 / 0.579 GB, free: 66.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1271/1.531, allocations: 51.45 MB / 0.6292 GB, free: 37.82 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002695/1.531, allocations: 197.4 kB / 0.6294 GB, free: 37.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.496/6.027, allocations: 0 / 0.6294 GB, free: 37.6 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat