Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 194.9 MB / 208.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.41e-05/3.443e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09434/0.0944, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.5439, allocations: 105 MB / 405 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5442, allocations: 84.52 kB / 405.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2181/0.7623, allocations: 52.84 MB / 457.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.7623, allocations: 0 / 457.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003113/0.7627, allocations: 67.94 kB / 458 MB, free: 10.54 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.009729/0.7724, allocations: 2.582 MB / 460.6 MB, free: 8.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.7725, allocations: 8.031 kB / 460.6 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001304/0.7738, allocations: 359.3 kB / 460.9 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.7754, allocations: 344.1 kB / 461.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006817/0.7823, allocations: 1.911 MB / 463.2 MB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.7826, allocations: 185 kB / 463.3 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008512/0.7835, allocations: 256 kB / 463.6 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009343/0.7928, allocations: 3.149 MB / 466.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/0.793, allocations: 3.906 kB / 466.7 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004359/0.7934, allocations: 108 kB / 466.8 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002063/0.7936, allocations: 120.9 kB / 467 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008262/0.8019, allocations: 2.478 MB / 469.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02811/0.8301, allocations: 10.45 MB / 479.9 MB, free: 4.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003274/0.8334, allocations: 1.395 MB / 481.3 MB, free: 2.914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001944/0.8354, allocations: 0.7418 MB / 482 MB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004998/0.8359, allocations: 219.1 kB / 482.2 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.8359, allocations: 48.11 kB / 482.3 MB, free: 1.863 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 3.567e-06/0.836, allocations: 0 / 482.3 MB, free: 1.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.024/0.86, allocations: 6.13 MB / 488.4 MB, free: 11.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.8601, allocations: 64.72 kB / 488.5 MB, free: 11.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.8637, allocations: 1.526 MB / 490 MB, free: 10.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002792/0.864, allocations: 49.7 kB / 490.1 MB, free: 10.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.8652, allocations: 1.201 MB / 491.3 MB, free: 8.797 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/0.8658, allocations: 445.5 kB / 491.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.866, allocations: 36 kB / 491.7 MB, free: 8.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.8662, allocations: 378.7 kB / 492.1 MB, free: 7.941 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001994/0.8682, allocations: 0.7731 MB / 492.9 MB, free: 7.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/0.8706, allocations: 1.277 MB / 494.1 MB, free: 5.668 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002428/0.8731, allocations: 0.9964 MB / 495.1 MB, free: 4.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/0.8731, allocations: 8 kB / 495.1 MB, free: 4.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006139/0.8793, allocations: 2.32 MB / 497.5 MB, free: 2.324 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.8793, allocations: 12 kB / 497.5 MB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.54e-05/0.8794, allocations: 20 kB / 497.5 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.8804, allocations: 235.3 kB / 497.7 MB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003183/0.8836, allocations: 443.2 kB / 498.2 MB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.8873, allocations: 2.99 MB / 0.4894 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.8899, allocations: 127.8 kB / 0.4895 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002585/0.8902, allocations: 83.91 kB / 0.4896 GB, free: 14.15 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.0004531/0.8907, allocations: 204.7 kB / 0.4898 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005029/0.8912, allocations: 185.7 kB / 0.49 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005651/0.8969, allocations: 2.09 MB / 0.492 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.167e-05/0.8969, allocations: 12 kB / 0.492 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.8969, allocations: 0 / 0.492 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-05/0.897, allocations: 7.969 kB / 0.492 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.9101, allocations: 4.799 MB / 0.4967 GB, free: 6.715 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.9102, allocations: 4 kB / 0.4967 GB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/0.9125, allocations: 287.5 kB / 0.497 GB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009325/0.9135, allocations: 203.5 kB / 0.4972 GB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.9136, allocations: 27.98 kB / 0.4972 GB, free: 6.191 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003437/0.9171, allocations: 2.959 MB / 0.5001 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.9171, allocations: 4.031 kB / 0.5001 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007771/0.9249, allocations: 3.338 MB / 0.5034 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.9264, allocations: 446.6 kB / 0.5038 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003875/0.9268, allocations: 24 kB / 0.5038 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.9286, allocations: 99.94 kB / 0.5039 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.9289, allocations: 84.95 kB / 0.504 GB, free: 14.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.929, allocations: 36 kB / 0.504 GB, free: 14.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002875/0.9319, allocations: 1.165 MB / 0.5052 GB, free: 13.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.865e-06/0.9319, allocations: 0 / 0.5052 GB, free: 13.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002869/0.9348, allocations: 0.5234 MB / 0.5057 GB, free: 13.14 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.0091/0.9439, allocations: 4.799 MB / 0.5104 GB, free: 8.254 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005768/0.9497, allocations: 2.31 MB / 0.5126 GB, free: 5.883 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.9498, allocations: 0 / 0.5126 GB, free: 5.883 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/0.9529, allocations: 1.341 MB / 0.5139 GB, free: 4.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/0.9566, allocations: 451.7 kB / 0.5144 GB, free: 4.039 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.304/1.261, allocations: 4.608 MB / 0.5189 GB, free: 105.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/1.263, allocations: 2.025 MB / 0.5208 GB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002296/1.266, allocations: 1.009 MB / 0.5218 GB, free: 105.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/1.266, allocations: 0 / 0.5218 GB, free: 105.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.971/5.237, allocations: 92.06 MB / 0.6117 GB, free: 56.66 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat