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.08/2.08, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.229e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2991, allocations: 44.5 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2297/0.5289, allocations: 104.3 MB / 398.6 MB, free: 9.445 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004072/0.5293, allocations: 87.95 kB / 398.7 MB, free: 9.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4622/0.9916, allocations: 52.12 MB / 450.8 MB, free: 92.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.9916, allocations: 3.938 kB / 450.8 MB, free: 92.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002754/0.9919, allocations: 77.41 kB / 450.9 MB, free: 92.88 MB / 362.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.008827/1.001, allocations: 2.568 MB / 453.4 MB, free: 91.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.001, allocations: 10.66 kB / 453.4 MB, free: 91.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/1.003, allocations: 349.9 kB / 453.8 MB, free: 91.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00594/1.009, allocations: 1.894 MB / 455.7 MB, free: 90.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/1.009, allocations: 82.75 kB / 455.8 MB, free: 90.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007944/1.01, allocations: 157 kB / 455.9 MB, free: 90.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006367/1.016, allocations: 2.345 MB / 458.3 MB, free: 89.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006826/1.023, allocations: 2.817 MB / 461.1 MB, free: 87.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.511e-05/1.023, allocations: 7.906 kB / 461.1 MB, free: 87.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003069/1.023, allocations: 4 kB / 461.1 MB, free: 87.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/1.024, allocations: 116.9 kB / 461.2 MB, free: 87.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02102/1.045, allocations: 9.959 MB / 471.2 MB, free: 77.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002474/1.047, allocations: 1.379 MB / 472.5 MB, free: 75.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/1.049, allocations: 0.727 MB / 473.3 MB, free: 75.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004504/1.049, allocations: 228.1 kB / 473.5 MB, free: 74.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/1.049, allocations: 43.88 kB / 473.5 MB, free: 74.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 4.298e-06/1.049, allocations: 3.938 kB / 473.5 MB, free: 74.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.0151/1.064, allocations: 5.158 MB / 478.7 MB, free: 69.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/1.064, allocations: 68.72 kB / 478.8 MB, free: 69.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002636/1.067, allocations: 1.288 MB / 480 MB, free: 68.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003284/1.067, allocations: 25.7 kB / 480.1 MB, free: 68.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009303/1.068, allocations: 1.266 MB / 481.3 MB, free: 66.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00061/1.069, allocations: 453.3 kB / 481.8 MB, free: 66.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/1.069, allocations: 0 / 481.8 MB, free: 66.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/1.069, allocations: 373.9 kB / 482.1 MB, free: 66.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/1.071, allocations: 0.7575 MB / 482.9 MB, free: 65.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/1.073, allocations: 1.257 MB / 484.2 MB, free: 63.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/1.075, allocations: 0.9938 MB / 485.2 MB, free: 62.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.293e-05/1.075, allocations: 4 kB / 485.2 MB, free: 62.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006138/1.081, allocations: 2.338 MB / 487.5 MB, free: 60.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/1.081, allocations: 12 kB / 487.5 MB, free: 60.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.421e-05/1.081, allocations: 16 kB / 487.5 MB, free: 60.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009483/1.082, allocations: 243.5 kB / 487.8 MB, free: 60.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003409/1.086, allocations: 447.3 kB / 488.2 MB, free: 59.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/1.089, allocations: 2.879 MB / 491.1 MB, free: 56.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/1.092, allocations: 91.77 kB / 491.2 MB, free: 56.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004257/1.093, allocations: 79.98 kB / 491.2 MB, free: 56.49 MB / 362.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 (211): * Single equations (assignments): 207 * 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.0004281/1.093, allocations: 160.2 kB / 491.4 MB, free: 56.32 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005259/1.099, allocations: 1.845 MB / 493.2 MB, free: 54.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009268/1.1, allocations: 185.8 kB / 493.4 MB, free: 54.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005437/1.105, allocations: 2.018 MB / 495.4 MB, free: 52.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.03e-05/1.105, allocations: 15.95 kB / 495.5 MB, free: 52.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/1.105, allocations: 4 kB / 495.5 MB, free: 52.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.342e-05/1.105, allocations: 7.969 kB / 495.5 MB, free: 52.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.117, allocations: 4.475 MB / 499.9 MB, free: 47.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/1.117, allocations: 4 kB / 499.9 MB, free: 47.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002405/1.119, allocations: 295.5 kB / 0.4885 GB, free: 47.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008596/1.12, allocations: 203.5 kB / 0.4887 GB, free: 47.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002324/1.121, allocations: 4 kB / 0.4887 GB, free: 47.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/1.124, allocations: 2.86 MB / 0.4915 GB, free: 44.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/1.124, allocations: 7.938 kB / 0.4915 GB, free: 44.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.134, allocations: 3.315 MB / 0.4948 GB, free: 40.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002105/1.136, allocations: 434.8 kB / 0.4952 GB, free: 40.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008528/1.137, allocations: 4 kB / 0.4952 GB, free: 40.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.14, allocations: 75.94 kB / 0.4952 GB, free: 40.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004353/1.141, allocations: 89.14 kB / 0.4953 GB, free: 40.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/1.141, allocations: 39.98 kB / 0.4954 GB, free: 39.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003013/1.144, allocations: 0.9577 MB / 0.4963 GB, free: 39.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.144, allocations: 0 / 0.4963 GB, free: 39.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003578/1.147, allocations: 463.9 kB / 0.4967 GB, free: 38.58 MB / 362.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 (132): * Single equations (assignments): 128 * 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.008186/1.156, allocations: 4.736 MB / 0.5014 GB, free: 33.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00451/1.16, allocations: 2.311 MB / 0.5036 GB, free: 31.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.16, allocations: 4 kB / 0.5036 GB, free: 31.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/1.163, allocations: 1.342 MB / 0.5049 GB, free: 29.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003703/1.167, allocations: 375.3 kB / 0.5053 GB, free: 29.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/1.178, allocations: 4.491 MB / 0.5097 GB, free: 25.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00208/1.181, allocations: 2.065 MB / 0.5117 GB, free: 22.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002544/1.183, allocations: 0.5147 MB / 0.5122 GB, free: 22.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/1.185, allocations: 1.003 MB / 0.5132 GB, free: 21.42 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/1.185, allocations: 0 / 0.5132 GB, free: 21.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1149/1.3, allocations: 40.26 MB / 0.5525 GB, free: 13.11 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001853/1.302, allocations: 188.2 kB / 0.5527 GB, free: 12.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.776/5.077, allocations: 3.938 kB / 0.5527 GB, free: 12.91 MB / 394.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