Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.051e-05/4.072e-05, allocations: 4 kB / 255.5 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 44.52 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.461/0.5866, allocations: 103.8 MB / 403.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.5869, allocations: 91.33 kB / 403.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2115/0.7985, allocations: 49.71 MB / 453.6 MB, free: 14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.7986, allocations: 0 / 453.6 MB, free: 14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003269/0.7989, allocations: 63.92 kB / 453.6 MB, free: 13.93 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.01058/0.8095, allocations: 2.341 MB / 456 MB, free: 11.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/0.8096, allocations: 12.03 kB / 456 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001161/0.8108, allocations: 322.1 kB / 456.3 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001881/0.8127, allocations: 320.6 kB / 456.6 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007425/0.8201, allocations: 1.669 MB / 458.3 MB, free: 9.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/0.8205, allocations: 167 kB / 458.4 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008357/0.8213, allocations: 223.7 kB / 458.6 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.8326, allocations: 2.806 MB / 461.5 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001271/0.8328, allocations: 7.906 kB / 461.5 MB, free: 6.742 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005379/0.8334, allocations: 95.98 kB / 461.6 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002631/0.8336, allocations: 104.3 kB / 461.7 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009852/0.8435, allocations: 2.192 MB / 463.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02821/0.8718, allocations: 9.093 MB / 472.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004106/0.8759, allocations: 1.678 MB / 474.6 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002274/0.8783, allocations: 0.8041 MB / 475.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005248/0.8788, allocations: 227.1 kB / 475.6 MB, free: 8.102 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.8789, allocations: 47.5 kB / 475.7 MB, free: 8.047 MB / 362.7 MB Notification: Performance of pre-optimization done (n=107): time 3.757e-06/0.8789, allocations: 0 / 475.7 MB, free: 8.047 MB / 362.7 MB Notification: Performance of matching and sorting (n=130): time 0.02639/0.9053, allocations: 6.351 MB / 482 MB, free: 1.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.9054, allocations: 64.72 kB / 482.1 MB, free: 1.566 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003319/0.9087, allocations: 1.321 MB / 483.4 MB, free: 244 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003371/0.9091, allocations: 49.7 kB / 483.5 MB, free: 188 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.9103, allocations: 1.088 MB / 484.6 MB, free: 15.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00071/0.9111, allocations: 461.3 kB / 485 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.9112, allocations: 28 kB / 485 MB, free: 14.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.9115, allocations: 365.9 kB / 485.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.9134, allocations: 0.7185 MB / 486.1 MB, free: 13.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/0.9158, allocations: 1.145 MB / 487.3 MB, free: 12.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.9182, allocations: 0.9028 MB / 488.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/0.9183, allocations: 4 kB / 488.2 MB, free: 11.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.007804/0.9261, allocations: 2.594 MB / 490.8 MB, free: 8.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.9262, allocations: 8 kB / 490.8 MB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.263e-05/0.9262, allocations: 16 kB / 490.8 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002645/0.9289, allocations: 0.5844 MB / 491.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/0.9317, allocations: 359.4 kB / 491.7 MB, free: 7.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/0.9457, allocations: 6.679 MB / 498.4 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/0.9481, allocations: 112 kB / 498.5 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/0.9484, allocations: 67.98 kB / 498.6 MB, free: 0.5781 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.000449/0.9489, allocations: 200.5 kB / 498.8 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004823/0.9494, allocations: 173.8 kB / 498.9 MB, free: 208 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007035/0.9564, allocations: 2.317 MB / 0.4895 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.189e-05/0.9565, allocations: 12 kB / 0.4895 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.9565, allocations: 12 kB / 0.4895 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.23e-05/0.9565, allocations: 11.95 kB / 0.4895 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.9709, allocations: 4.88 MB / 0.4943 GB, free: 8.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/0.971, allocations: 4 kB / 0.4943 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001893/0.9729, allocations: 224 kB / 0.4945 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003177/0.9761, allocations: 0.6391 MB / 0.4952 GB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002692/0.9764, allocations: 35.98 kB / 0.4952 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01624/0.9927, allocations: 8.371 MB / 0.5034 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.9927, allocations: 4 kB / 0.5034 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009167/1.002, allocations: 3.528 MB / 0.5068 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/1.003, allocations: 410.8 kB / 0.5072 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00039/1.004, allocations: 35.98 kB / 0.5072 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.006, allocations: 95.89 kB / 0.5073 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004332/1.006, allocations: 104.8 kB / 0.5074 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/1.006, allocations: 43.98 kB / 0.5075 GB, free: 10.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002552/1.009, allocations: 1.007 MB / 0.5085 GB, free: 9.785 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.009, allocations: 0 / 0.5085 GB, free: 9.785 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00293/1.012, allocations: 0.5468 MB / 0.509 GB, free: 9.238 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.01037/1.022, allocations: 5.062 MB / 0.5139 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006182/1.028, allocations: 2.325 MB / 0.5162 GB, free: 1.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/1.028, allocations: 0 / 0.5162 GB, free: 1.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004171/1.033, allocations: 1.49 MB / 0.5177 GB, free: 168 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2881/1.321, allocations: 432.7 kB / 0.5181 GB, free: 109.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.333, allocations: 4.44 MB / 0.5224 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.335, allocations: 1.925 MB / 0.5243 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002128/1.337, allocations: 373.9 kB / 0.5246 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/1.339, allocations: 0.88 MB / 0.5255 GB, free: 107.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.553e-06/1.339, allocations: 0 / 0.5255 GB, free: 107.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/1.457, allocations: 47.89 MB / 0.5723 GB, free: 97.35 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/1.457, allocations: 203.9 kB / 0.5725 GB, free: 97.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.246/5.703, allocations: 0 / 0.5725 GB, free: 97.12 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat