Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 194.9 MB / 208 MB, free: 3.184 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.364e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 44.51 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4508/0.5525, allocations: 105 MB / 405 MB, free: 10.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.5528, allocations: 82.98 kB / 405.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2101/0.7629, allocations: 52.84 MB / 457.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.763, allocations: 0 / 457.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002887/0.7633, allocations: 71.92 kB / 458 MB, free: 10.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.009417/0.7727, allocations: 2.572 MB / 460.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.7728, allocations: 8.031 kB / 460.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001236/0.774, allocations: 363.9 kB / 460.9 MB, free: 7.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.7756, allocations: 348.1 kB / 461.2 MB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006958/0.7826, allocations: 1.91 MB / 463.2 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002408/0.7828, allocations: 189 kB / 463.3 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007338/0.7836, allocations: 248 kB / 463.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009537/0.7931, allocations: 3.186 MB / 466.8 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.7933, allocations: 7.844 kB / 466.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004292/0.7938, allocations: 104 kB / 466.9 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.794, allocations: 120.9 kB / 467 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008624/0.8026, allocations: 2.515 MB / 469.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02955/0.8322, allocations: 10.44 MB / 480 MB, free: 3.844 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003506/0.8358, allocations: 1.414 MB / 481.4 MB, free: 2.359 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.8378, allocations: 0.7379 MB / 482.1 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005432/0.8384, allocations: 219.1 kB / 482.3 MB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.781e-05/0.8384, allocations: 51.55 kB / 482.4 MB, free: 1.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 3.687e-06/0.8385, allocations: 4 kB / 482.4 MB, free: 1.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02448/0.8629, allocations: 6.126 MB / 488.5 MB, free: 11.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.8631, allocations: 68.72 kB / 488.6 MB, free: 11.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003857/0.8669, allocations: 1.53 MB / 490.1 MB, free: 9.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003233/0.8673, allocations: 45.7 kB / 490.1 MB, free: 9.449 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.8687, allocations: 1.252 MB / 491.4 MB, free: 8.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007487/0.8694, allocations: 457.5 kB / 491.8 MB, free: 7.727 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.8696, allocations: 32 kB / 491.9 MB, free: 7.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.8699, allocations: 373.9 kB / 492.2 MB, free: 7.324 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.872, allocations: 0.7731 MB / 493 MB, free: 6.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002521/0.8745, allocations: 1.289 MB / 494.3 MB, free: 5.039 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002569/0.8771, allocations: 0.9925 MB / 495.3 MB, free: 4.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/0.8772, allocations: 12 kB / 495.3 MB, free: 4.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006867/0.884, allocations: 2.482 MB / 497.8 MB, free: 1.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.8841, allocations: 12 kB / 497.8 MB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/0.8842, allocations: 16 kB / 497.8 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.8852, allocations: 243.5 kB / 498 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003197/0.8884, allocations: 439.3 kB / 498.5 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00398/0.8924, allocations: 2.994 MB / 0.4897 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/0.8951, allocations: 131.7 kB / 0.4898 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002622/0.8954, allocations: 71.98 kB / 0.4899 GB, free: 13.36 MB / 394.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 (205): * Single equations (assignments): 201 * 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.0005026/0.8959, allocations: 204.7 kB / 0.4901 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/0.8964, allocations: 189.7 kB / 0.4903 GB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005887/0.9023, allocations: 2.086 MB / 0.4923 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.04e-05/0.9024, allocations: 16 kB / 0.4923 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.9024, allocations: 4 kB / 0.4923 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.9025, allocations: 11.91 kB / 0.4924 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.9162, allocations: 4.803 MB / 0.497 GB, free: 5.918 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.9163, allocations: 4.281 kB / 0.497 GB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002544/0.9188, allocations: 283.6 kB / 0.4973 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009859/0.9199, allocations: 203.2 kB / 0.4975 GB, free: 5.426 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/0.9202, allocations: 27.98 kB / 0.4975 GB, free: 5.398 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003802/0.924, allocations: 2.963 MB / 0.5004 GB, free: 2.168 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/0.924, allocations: 7.969 kB / 0.5004 GB, free: 2.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008413/0.9325, allocations: 3.342 MB / 0.5037 GB, free: 14.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/0.9341, allocations: 446.6 kB / 0.5041 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000424/0.9346, allocations: 24 kB / 0.5042 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/0.9364, allocations: 91.88 kB / 0.5042 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.9367, allocations: 88.94 kB / 0.5043 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.9368, allocations: 40 kB / 0.5044 GB, free: 14.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003029/0.9399, allocations: 1.161 MB / 0.5055 GB, free: 12.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.9399, allocations: 3.938 kB / 0.5055 GB, free: 12.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002831/0.9428, allocations: 0.5234 MB / 0.506 GB, free: 12.34 MB / 410.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 (128): * Single equations (assignments): 124 * 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.009397/0.9522, allocations: 4.789 MB / 0.5107 GB, free: 7.445 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005992/0.9582, allocations: 2.351 MB / 0.513 GB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.9583, allocations: 0 / 0.513 GB, free: 5.027 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003262/0.9616, allocations: 1.356 MB / 0.5143 GB, free: 3.602 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003826/0.9654, allocations: 450.4 kB / 0.5147 GB, free: 3.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.282/1.247, allocations: 4.592 MB / 0.5192 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003823/1.251, allocations: 2.058 MB / 0.5212 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003052/1.254, allocations: 0.5147 MB / 0.5217 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002656/1.257, allocations: 0.995 MB / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.974e-06/1.257, allocations: 0 / 0.5227 GB, free: 105.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1519/1.409, allocations: 47.59 MB / 0.5692 GB, free: 98.88 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002773/1.41, allocations: 212.5 kB / 0.5694 GB, free: 98.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.324/5.734, allocations: 7.938 kB / 0.5694 GB, free: 98.64 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat