Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.989e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 44.52 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.5953, allocations: 103.8 MB / 403.8 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.5956, allocations: 83.42 kB / 403.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2008/0.7965, allocations: 49.71 MB / 453.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.7965, allocations: 0 / 453.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002969/0.7969, allocations: 59.94 kB / 453.6 MB, free: 14.06 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.009417/0.8063, allocations: 2.342 MB / 456 MB, free: 11.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/0.8064, allocations: 12.03 kB / 456 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001252/0.8076, allocations: 328.1 kB / 456.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001659/0.8093, allocations: 312.6 kB / 456.6 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.8152, allocations: 1.671 MB / 458.3 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/0.8155, allocations: 164.4 kB / 458.4 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009363/0.8165, allocations: 222.8 kB / 458.6 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008892/0.8254, allocations: 2.782 MB / 461.4 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.8255, allocations: 7.906 kB / 461.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003748/0.8259, allocations: 92 kB / 461.5 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001855/0.8261, allocations: 100.3 kB / 461.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007654/0.8338, allocations: 2.176 MB / 463.8 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/0.8591, allocations: 9.093 MB / 472.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003645/0.8628, allocations: 1.668 MB / 474.6 MB, free: 9.578 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.8649, allocations: 0.8002 MB / 475.4 MB, free: 8.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005025/0.8654, allocations: 219.1 kB / 475.6 MB, free: 8.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.8655, allocations: 47.56 kB / 475.6 MB, free: 8.473 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 3.967e-06/0.8655, allocations: 3.938 kB / 475.6 MB, free: 8.469 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02525/0.8908, allocations: 6.34 MB / 482 MB, free: 2.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.8909, allocations: 64.72 kB / 482 MB, free: 2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003083/0.894, allocations: 1.321 MB / 483.3 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.8942, allocations: 49.7 kB / 483.4 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001034/0.8953, allocations: 1.042 MB / 484.4 MB, free: 15.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005864/0.8959, allocations: 457.3 kB / 484.9 MB, free: 15.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.896, allocations: 36 kB / 484.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002412/0.8963, allocations: 374.8 kB / 485.3 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.8982, allocations: 0.7146 MB / 486 MB, free: 13.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.9005, allocations: 1.126 MB / 487.1 MB, free: 12.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00224/0.9027, allocations: 0.9144 MB / 488 MB, free: 11.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-05/0.9028, allocations: 4 kB / 488 MB, free: 11.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.006968/0.9097, allocations: 2.447 MB / 490.5 MB, free: 9.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.9098, allocations: 12 kB / 490.5 MB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.9098, allocations: 12 kB / 490.5 MB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/0.9124, allocations: 0.5882 MB / 491.1 MB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002556/0.915, allocations: 351.5 kB / 491.4 MB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.9286, allocations: 6.691 MB / 498.1 MB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.931, allocations: 115.9 kB / 498.3 MB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.9312, allocations: 63.98 kB / 498.3 MB, free: 1.199 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004416/0.9317, allocations: 196.5 kB / 498.5 MB, free: 1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004245/0.9321, allocations: 169.9 kB / 498.7 MB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006847/0.939, allocations: 2.332 MB / 0.4893 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.939, allocations: 12 kB / 0.4893 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/0.939, allocations: 8 kB / 0.4893 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.9391, allocations: 7.984 kB / 0.4893 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/0.9525, allocations: 4.868 MB / 0.494 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.9525, allocations: 3.984 kB / 0.494 GB, free: 9.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/0.9544, allocations: 216.1 kB / 0.4943 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003031/0.9574, allocations: 0.6463 MB / 0.4949 GB, free: 8.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.9576, allocations: 31.98 kB / 0.4949 GB, free: 8.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01607/0.9737, allocations: 8.375 MB / 0.5031 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/0.9737, allocations: 11.92 kB / 0.5031 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0091/0.9828, allocations: 3.524 MB / 0.5065 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.9841, allocations: 414.8 kB / 0.5069 GB, free: 11.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003777/0.9845, allocations: 32 kB / 0.507 GB, free: 11.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.9863, allocations: 95.83 kB / 0.5071 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/0.9867, allocations: 108.8 kB / 0.5072 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001487/0.9869, allocations: 44.17 kB / 0.5072 GB, free: 11.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002496/0.9894, allocations: 1.007 MB / 0.5082 GB, free: 10.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.9894, allocations: 0 / 0.5082 GB, free: 10.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002661/0.992, allocations: 0.5507 MB / 0.5087 GB, free: 9.859 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01026/1.002, allocations: 5.069 MB / 0.5137 GB, free: 4.688 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006199/1.009, allocations: 2.26 MB / 0.5159 GB, free: 2.387 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.009, allocations: 0 / 0.5159 GB, free: 2.387 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004185/1.013, allocations: 1.458 MB / 0.5173 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/1.016, allocations: 425.4 kB / 0.5177 GB, free: 488 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2749/1.291, allocations: 4.48 MB / 0.5221 GB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002339/1.294, allocations: 1.891 MB / 0.5239 GB, free: 107.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/1.296, allocations: 0.8849 MB / 0.5248 GB, free: 107.7 MB / 410.7 MB Notification: Performance of SimCode: time 2.685e-06/1.296, allocations: 1.156 kB / 0.5248 GB, free: 107.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.648/4.944, allocations: 72.1 MB / 0.5952 GB, free: 74.91 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_Inverter_res.mat does not exist to compare? outputFormat=mat