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.827/1.827, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.028e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2698, allocations: 38.76 MB / 263.9 MB, free: 9.812 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.4442, allocations: 99.64 MB / 363.5 MB, free: 6.012 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.4445, allocations: 83.95 kB / 363.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4377/0.8823, allocations: 51.22 MB / 414.8 MB, free: 60.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8824, allocations: 0 / 414.8 MB, free: 60.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003519/0.8827, allocations: 75.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.009493/0.8922, allocations: 2.546 MB / 417.4 MB, free: 57.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.635e-05/0.8923, allocations: 16.03 kB / 417.4 MB, free: 57.42 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001778/0.8941, allocations: 366.8 kB / 417.8 MB, free: 57.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.8958, allocations: 348.4 kB / 418.1 MB, free: 56.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005266/0.9011, allocations: 1.724 MB / 419.9 MB, free: 54.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.9014, allocations: 185 kB / 420 MB, free: 54.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008567/0.9023, allocations: 259.9 kB / 420.3 MB, free: 54.49 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009185/0.9115, allocations: 3.19 MB / 423.5 MB, free: 51.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/0.9116, allocations: 4 kB / 423.5 MB, free: 51.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005256/0.9122, allocations: 107.9 kB / 423.6 MB, free: 51.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/0.9124, allocations: 120.9 kB / 423.7 MB, free: 50.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008321/0.9207, allocations: 2.518 MB / 426.2 MB, free: 48.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02595/0.9467, allocations: 10.36 MB / 436.6 MB, free: 37.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002927/0.9497, allocations: 1.386 MB / 438 MB, free: 36.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.9515, allocations: 0.7474 MB / 438.7 MB, free: 35.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000413/0.9519, allocations: 138 kB / 438.9 MB, free: 35.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.952, allocations: 47.5 kB / 438.9 MB, free: 35.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=101): time 3.506e-06/0.952, allocations: 0 / 438.9 MB, free: 35.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.02198/0.974, allocations: 6.122 MB / 445 MB, free: 29.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.9741, allocations: 64.72 kB / 445.1 MB, free: 29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/0.9768, allocations: 1.4 MB / 446.5 MB, free: 27.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000258/0.9771, allocations: 45.7 kB / 446.5 MB, free: 27.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008902/0.978, allocations: 1.255 MB / 447.8 MB, free: 26.28 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005153/0.9785, allocations: 449.6 kB / 448.2 MB, free: 25.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.9787, allocations: 36 kB / 448.3 MB, free: 25.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.9788, allocations: 369.9 kB / 448.6 MB, free: 25.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001759/0.9806, allocations: 0.7731 MB / 449.4 MB, free: 24.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/0.9826, allocations: 1.285 MB / 450.7 MB, free: 23.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002106/0.9847, allocations: 0.9925 MB / 451.7 MB, free: 22.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.261e-05/0.9848, allocations: 4 kB / 451.7 MB, free: 22.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.005717/0.9905, allocations: 2.474 MB / 454.2 MB, free: 19.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.9906, allocations: 12 kB / 454.2 MB, free: 19.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.606e-05/0.9906, allocations: 16.62 kB / 454.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009322/0.9916, allocations: 243.2 kB / 454.4 MB, free: 19.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003001/0.9946, allocations: 439.3 kB / 454.9 MB, free: 18.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/0.9974, allocations: 2.998 MB / 457.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.9997, allocations: 127.7 kB / 458 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/1, allocations: 80.19 kB / 458.1 MB, free: 15.48 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.0004021/1, allocations: 208.4 kB / 458.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003832/1.001, allocations: 181.8 kB / 458.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005052/1.006, allocations: 2.074 MB / 460.5 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.935e-05/1.006, allocations: 12 kB / 460.5 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/1.006, allocations: 7.938 kB / 460.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/1.006, allocations: 7.938 kB / 460.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01176/1.018, allocations: 4.756 MB / 465.3 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/1.018, allocations: 0 / 465.3 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/1.02, allocations: 287.5 kB / 465.6 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008959/1.021, allocations: 199.6 kB / 465.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/1.021, allocations: 27.98 kB / 465.8 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002764/1.024, allocations: 2.974 MB / 468.8 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.024, allocations: 0 / 468.8 MB, free: 4.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006938/1.031, allocations: 3.321 MB / 472.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/1.033, allocations: 422.6 kB / 472.5 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000393/1.033, allocations: 28 kB / 472.5 MB, free: 464 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/1.035, allocations: 95.94 kB / 472.6 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/1.035, allocations: 88.77 kB / 472.7 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/1.035, allocations: 40 kB / 472.8 MB, free: 240 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002684/1.038, allocations: 1.071 MB / 473.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.038, allocations: 0 / 473.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002965/1.041, allocations: 0.5117 MB / 474.3 MB, free: 14.66 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.009859/1.051, allocations: 4.754 MB / 479.1 MB, free: 9.793 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.009156/1.06, allocations: 2.36 MB / 481.4 MB, free: 7.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-05/1.06, allocations: 4 kB / 481.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004612/1.065, allocations: 1.346 MB / 482.8 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004767/1.069, allocations: 440.5 kB / 483.2 MB, free: 5.523 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01964/1.089, allocations: 4.485 MB / 487.7 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00451/1.094, allocations: 2.056 MB / 489.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004129/1.098, allocations: 0.4956 MB / 490.3 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003834/1.102, allocations: 0.9562 MB / 491.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of SimCode: time 2.154e-06/1.102, allocations: 0 / 491.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3826/1.484, allocations: 45.78 MB / 0.5244 GB, free: 84.07 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/1.485, allocations: 209 kB / 0.5246 GB, free: 83.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.142/5.627, allocations: 11.55 kB / 0.5246 GB, free: 83.84 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