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.017/2.017, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.1e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09769, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.476/0.5738, allocations: 105 MB / 404.9 MB, free: 10.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.5741, allocations: 87.56 kB / 405 MB, free: 10.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2196/0.7937, allocations: 52.84 MB / 457.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.7937, allocations: 0 / 457.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003338/0.7941, allocations: 67.94 kB / 457.9 MB, free: 10.3 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.01002/0.8041, allocations: 2.579 MB / 460.5 MB, free: 7.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.8042, allocations: 8.031 kB / 460.5 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001349/0.8055, allocations: 361.5 kB / 460.9 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001556/0.8071, allocations: 344.1 kB / 461.2 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007606/0.8147, allocations: 1.908 MB / 463.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003031/0.8151, allocations: 189 kB / 463.3 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.8163, allocations: 256 kB / 463.6 MB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00943/0.8257, allocations: 3.174 MB / 466.7 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.8259, allocations: 11.89 kB / 466.7 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/0.8263, allocations: 107.9 kB / 466.8 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001989/0.8265, allocations: 120.9 kB / 467 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008329/0.8348, allocations: 2.515 MB / 469.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02935/0.8642, allocations: 10.44 MB / 479.9 MB, free: 4.234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003516/0.8678, allocations: 1.413 MB / 481.3 MB, free: 2.754 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.8699, allocations: 0.7457 MB / 482.1 MB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005162/0.8704, allocations: 219.1 kB / 482.3 MB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/0.8705, allocations: 43.56 kB / 482.3 MB, free: 1.703 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 4.018e-06/0.8705, allocations: 0 / 482.3 MB, free: 1.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02477/0.8953, allocations: 6.134 MB / 488.5 MB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.8954, allocations: 64.72 kB / 488.5 MB, free: 11.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004142/0.8996, allocations: 1.53 MB / 490.1 MB, free: 9.895 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003795/0.9, allocations: 53.7 kB / 490.1 MB, free: 9.836 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/0.9013, allocations: 1.189 MB / 491.3 MB, free: 8.633 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008081/0.9021, allocations: 453.5 kB / 491.7 MB, free: 8.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.9023, allocations: 32 kB / 491.8 MB, free: 8.152 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002454/0.9026, allocations: 378.7 kB / 492.1 MB, free: 7.773 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/0.9047, allocations: 0.7732 MB / 492.9 MB, free: 7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002628/0.9074, allocations: 1.292 MB / 494.2 MB, free: 5.484 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002725/0.9101, allocations: 0.9925 MB / 495.2 MB, free: 4.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.751e-05/0.9102, allocations: 4 kB / 495.2 MB, free: 4.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.006648/0.9169, allocations: 2.363 MB / 497.6 MB, free: 2.105 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.917, allocations: 16.62 kB / 497.6 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.766e-05/0.917, allocations: 16 kB / 497.6 MB, free: 2.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.9181, allocations: 243.2 kB / 497.8 MB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.9214, allocations: 431.3 kB / 498.3 MB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/0.9255, allocations: 3.002 MB / 0.4895 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/0.9282, allocations: 127.8 kB / 0.4896 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003438/0.9286, allocations: 83.92 kB / 0.4897 GB, free: 13.92 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.00049/0.9291, allocations: 204.7 kB / 0.4899 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006194/0.9297, allocations: 185.7 kB / 0.4901 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006193/0.9359, allocations: 2.082 MB / 0.4921 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.936, allocations: 19.94 kB / 0.4921 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.9361, allocations: 0 / 0.4921 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-05/0.9361, allocations: 7.984 kB / 0.4921 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.9511, allocations: 4.815 MB / 0.4968 GB, free: 6.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.9512, allocations: 3.984 kB / 0.4969 GB, free: 6.477 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002414/0.9536, allocations: 279.6 kB / 0.4971 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009562/0.9546, allocations: 207.5 kB / 0.4973 GB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.9547, allocations: 24 kB / 0.4973 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.9584, allocations: 2.963 MB / 0.5002 GB, free: 2.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-06/0.9585, allocations: 7.938 kB / 0.5002 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008193/0.9667, allocations: 3.342 MB / 0.5035 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001523/0.9683, allocations: 446.5 kB / 0.5039 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/0.9686, allocations: 28.06 kB / 0.504 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.9704, allocations: 91.88 kB / 0.504 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.9707, allocations: 80.89 kB / 0.5041 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.9708, allocations: 35.98 kB / 0.5042 GB, free: 14.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002924/0.9738, allocations: 1.169 MB / 0.5053 GB, free: 13.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.9738, allocations: 0 / 0.5053 GB, free: 13.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002607/0.9764, allocations: 0.5234 MB / 0.5058 GB, free: 12.91 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.009283/0.9857, allocations: 4.799 MB / 0.5105 GB, free: 8.008 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005868/0.9916, allocations: 2.352 MB / 0.5128 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.9917, allocations: 0 / 0.5128 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003142/0.9948, allocations: 1.358 MB / 0.5141 GB, free: 4.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003542/0.9984, allocations: 449.7 kB / 0.5145 GB, free: 3.719 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3061/1.305, allocations: 4.616 MB / 0.5191 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003011/1.308, allocations: 2.023 MB / 0.521 GB, free: 105.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002406/1.31, allocations: 1.01 MB / 0.522 GB, free: 105.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/1.31, allocations: 0 / 0.522 GB, free: 105.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.692/5.003, allocations: 92.32 MB / 0.6122 GB, free: 56.04 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