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 1.993/1.993, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.04e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2969, allocations: 44.5 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1831/0.4801, allocations: 104.3 MB / 398.6 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.4804, allocations: 83.95 kB / 398.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4943/0.9747, allocations: 52.1 MB / 450.7 MB, free: 92.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.9748, allocations: 3.938 kB / 450.7 MB, free: 92.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002941/0.9751, allocations: 79.38 kB / 450.8 MB, free: 92.63 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.008786/0.9839, allocations: 2.576 MB / 453.4 MB, free: 91.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.984, allocations: 10.19 kB / 453.4 MB, free: 91.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001986/0.986, allocations: 349.2 kB / 453.7 MB, free: 91.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006061/0.9921, allocations: 1.892 MB / 455.6 MB, free: 90.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.9922, allocations: 84.03 kB / 455.7 MB, free: 90.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008168/0.9931, allocations: 157.3 kB / 455.9 MB, free: 90.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006946/1, allocations: 2.341 MB / 458.2 MB, free: 89.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009159/1.009, allocations: 2.821 MB / 461 MB, free: 87.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001542/1.009, allocations: 14.67 kB / 461 MB, free: 87.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004092/1.01, allocations: 3.406 kB / 461.1 MB, free: 87.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/1.01, allocations: 119.6 kB / 461.2 MB, free: 87.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02265/1.033, allocations: 9.949 MB / 471.1 MB, free: 77.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/1.035, allocations: 1.379 MB / 472.5 MB, free: 75.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/1.037, allocations: 0.7309 MB / 473.2 MB, free: 75.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000432/1.037, allocations: 222.5 kB / 473.4 MB, free: 74.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/1.037, allocations: 43.88 kB / 473.5 MB, free: 74.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 3.397e-06/1.037, allocations: 4.562 kB / 473.5 MB, free: 74.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.01488/1.052, allocations: 5.17 MB / 478.7 MB, free: 69.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/1.052, allocations: 64.72 kB / 478.7 MB, free: 69.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/1.055, allocations: 1.288 MB / 480 MB, free: 68.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002728/1.055, allocations: 25.7 kB / 480 MB, free: 68.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007949/1.056, allocations: 1.224 MB / 481.3 MB, free: 67.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004467/1.056, allocations: 453.3 kB / 481.7 MB, free: 66.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/1.056, allocations: 4 kB / 481.7 MB, free: 66.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/1.057, allocations: 374.8 kB / 482.1 MB, free: 66.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.058, allocations: 0.7536 MB / 482.8 MB, free: 65.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/1.06, allocations: 1.265 MB / 484.1 MB, free: 63.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001991/1.062, allocations: 0.986 MB / 485.1 MB, free: 62.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/1.062, allocations: 4 kB / 485.1 MB, free: 62.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005262/1.067, allocations: 2.238 MB / 487.3 MB, free: 60.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/1.067, allocations: 12 kB / 487.3 MB, free: 60.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.029e-05/1.067, allocations: 24 kB / 487.4 MB, free: 60.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/1.068, allocations: 243.5 kB / 487.6 MB, free: 60.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/1.071, allocations: 443.3 kB / 488 MB, free: 60 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002752/1.074, allocations: 2.88 MB / 490.9 MB, free: 56.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/1.077, allocations: 95.67 kB / 491 MB, free: 56.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/1.077, allocations: 75.98 kB / 491.1 MB, free: 56.73 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.0003909/1.077, allocations: 164.2 kB / 491.2 MB, free: 56.56 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00416/1.081, allocations: 1.845 MB / 493.1 MB, free: 54.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/1.082, allocations: 173.8 kB / 493.2 MB, free: 54.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004625/1.087, allocations: 2.026 MB / 495.3 MB, free: 52.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/1.087, allocations: 15.95 kB / 495.3 MB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/1.087, allocations: 0 / 495.3 MB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/1.087, allocations: 7.984 kB / 495.3 MB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/1.097, allocations: 4.47 MB / 499.8 MB, free: 47.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/1.097, allocations: 4 kB / 499.8 MB, free: 47.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/1.1, allocations: 303.5 kB / 0.4883 GB, free: 47.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008272/1.101, allocations: 199.5 kB / 0.4885 GB, free: 47.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/1.101, allocations: 8 kB / 0.4885 GB, free: 47.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00265/1.103, allocations: 2.852 MB / 0.4913 GB, free: 44.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-06/1.103, allocations: 7.922 kB / 0.4913 GB, free: 44.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006243/1.11, allocations: 3.319 MB / 0.4946 GB, free: 40.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/1.111, allocations: 434.7 kB / 0.495 GB, free: 40.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004146/1.111, allocations: 3.984 kB / 0.495 GB, free: 40.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/1.113, allocations: 83.94 kB / 0.4951 GB, free: 40.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/1.114, allocations: 89.14 kB / 0.4952 GB, free: 40.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.114, allocations: 39.98 kB / 0.4952 GB, free: 40.22 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001819/1.116, allocations: 0.9577 MB / 0.4961 GB, free: 39.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.116, allocations: 0 / 0.4961 GB, free: 39.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002404/1.118, allocations: 464 kB / 0.4966 GB, free: 38.81 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.007026/1.125, allocations: 4.725 MB / 0.5012 GB, free: 34.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004879/1.13, allocations: 2.311 MB / 0.5035 GB, free: 31.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/1.13, allocations: 6.438 kB / 0.5035 GB, free: 31.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00281/1.133, allocations: 1.348 MB / 0.5048 GB, free: 30.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00339/1.136, allocations: 379.2 kB / 0.5051 GB, free: 29.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/1.149, allocations: 4.518 MB / 0.5095 GB, free: 25.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002055/1.151, allocations: 2.028 MB / 0.5115 GB, free: 23.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002175/1.153, allocations: 1.015 MB / 0.5125 GB, free: 22.17 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/1.153, allocations: 0 / 0.5125 GB, free: 22.17 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.06/5.213, allocations: 90.97 MB / 0.6014 GB, free: 104.4 MB / 394.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