Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.897e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2618, allocations: 38.77 MB / 263.8 MB, free: 9.781 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/0.704, allocations: 116.8 MB / 380.7 MB, free: 52.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.7043, allocations: 86.86 kB / 380.8 MB, free: 52.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.449/1.153, allocations: 118.6 MB / 499.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.153, allocations: 0 / 499.4 MB, free: 14.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006999/1.154, allocations: 143.8 kB / 499.5 MB, free: 14.72 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02275/1.177, allocations: 4.96 MB / 0.4926 GB, free: 9.691 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/1.177, allocations: 8.031 kB / 0.4926 GB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00336/1.18, allocations: 0.7039 MB / 0.4933 GB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00569/1.186, allocations: 0.7816 MB / 0.4941 GB, free: 8.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/1.201, allocations: 3.644 MB / 0.4977 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006607/1.201, allocations: 390.3 kB / 0.498 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002464/1.204, allocations: 0.5154 MB / 0.4985 GB, free: 3.562 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2914/1.495, allocations: 6.515 MB / 0.5049 GB, free: 42.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003975/1.496, allocations: 9.406 kB / 0.5049 GB, free: 42.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001957/1.498, allocations: 216.3 kB / 0.5051 GB, free: 42.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000341/1.498, allocations: 236.9 kB / 0.5053 GB, free: 42.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01748/1.516, allocations: 5.009 MB / 0.5102 GB, free: 42.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05748/1.573, allocations: 21.09 MB / 0.5308 GB, free: 37.99 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007308/1.581, allocations: 4.012 MB / 0.5347 GB, free: 36.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004766/1.585, allocations: 1.812 MB / 0.5365 GB, free: 36.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006443/1.586, allocations: 150.3 kB / 0.5366 GB, free: 36.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.277e-05/1.586, allocations: 66.17 kB / 0.5367 GB, free: 36.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=226): time 5.27e-06/1.586, allocations: 0 / 0.5367 GB, free: 36.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=275): time 0.04886/1.635, allocations: 11.74 MB / 0.5482 GB, free: 34.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.65e-05/1.635, allocations: 80.2 kB / 0.5482 GB, free: 34.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007209/1.642, allocations: 2.593 MB / 0.5508 GB, free: 34.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006259/1.643, allocations: 71.48 kB / 0.5508 GB, free: 34.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/1.645, allocations: 2.211 MB / 0.553 GB, free: 33.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001356/1.647, allocations: 0.9298 MB / 0.5539 GB, free: 32.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003853/1.647, allocations: 68.22 kB / 0.554 GB, free: 32.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002802/1.647, allocations: 449.1 kB / 0.5544 GB, free: 32.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004/1.651, allocations: 1.402 MB / 0.5558 GB, free: 32.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004759/1.656, allocations: 2.333 MB / 0.5581 GB, free: 30.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/1.661, allocations: 1.837 MB / 0.5599 GB, free: 29.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.876e-05/1.661, allocations: 6.812 kB / 0.5599 GB, free: 29.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=424) (initialization): time 0.01503/1.676, allocations: 4.924 MB / 0.5647 GB, free: 27.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/1.676, allocations: 19.12 kB / 0.5647 GB, free: 27.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.967e-05/1.676, allocations: 30.47 kB / 0.5647 GB, free: 27.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004227/1.681, allocations: 0.9931 MB / 0.5657 GB, free: 27.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005587/1.686, allocations: 0.7202 MB / 0.5664 GB, free: 27.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02173/1.708, allocations: 13.51 MB / 0.5796 GB, free: 17.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00471/1.713, allocations: 181.1 kB / 0.5798 GB, free: 17.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008308/1.714, allocations: 144.1 kB / 0.5799 GB, free: 17.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (364): * Single equations (assignments): 357 * 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: 5 * 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: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001232/1.715, allocations: 302 kB / 0.5802 GB, free: 17.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.716, allocations: 349.8 kB / 0.5805 GB, free: 17.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.73, allocations: 4.527 MB / 0.5849 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.127e-05/1.73, allocations: 27.16 kB / 0.585 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.959e-05/1.73, allocations: 12.66 kB / 0.585 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.879e-05/1.73, allocations: 13.03 kB / 0.585 GB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03184/1.762, allocations: 10.63 MB / 0.5954 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-05/1.762, allocations: 10.72 kB / 0.5954 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003704/1.766, allocations: 422.3 kB / 0.5958 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004899/1.771, allocations: 1.069 MB / 0.5968 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006267/1.771, allocations: 76.59 kB / 0.5969 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0265/1.798, allocations: 16.91 MB / 0.6134 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/1.798, allocations: 10.34 kB / 0.6134 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01938/1.817, allocations: 7.051 MB / 0.6203 GB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003161/1.821, allocations: 0.7311 MB / 0.621 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001492/1.822, allocations: 67.23 kB / 0.6211 GB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004117/1.826, allocations: 156.7 kB / 0.6212 GB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/1.827, allocations: 205 kB / 0.6214 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004846/1.828, allocations: 82.66 kB / 0.6215 GB, free: 5.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006225/1.834, allocations: 1.959 MB / 0.6234 GB, free: 3.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.834, allocations: 4 kB / 0.6234 GB, free: 3.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006885/1.841, allocations: 1.085 MB / 0.6245 GB, free: 2.242 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 206 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 23,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.02187/1.863, allocations: 9.535 MB / 0.6338 GB, free: 9.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01394/1.877, allocations: 4.643 MB / 0.6383 GB, free: 4.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.672e-05/1.877, allocations: 4 kB / 0.6383 GB, free: 4.766 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009456/1.887, allocations: 3.02 MB / 0.6413 GB, free: 1.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007674/1.894, allocations: 0.8638 MB / 0.6421 GB, free: 1.254 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3097/2.204, allocations: 9.847 MB / 0.6518 GB, free: 68.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007117/2.211, allocations: 3.466 MB / 0.6551 GB, free: 67.34 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005134/2.216, allocations: 2.05 MB / 0.6571 GB, free: 67.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/2.216, allocations: 2.875 kB / 0.6571 GB, free: 67.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.405/7.621, allocations: 260.5 MB / 0.9116 GB, free: 168 kB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat