Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.9e-05, allocations: 0 / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09807, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5282/0.6263, allocations: 130.2 MB / 430.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003485/0.6267, allocations: 88.52 kB / 430.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.812/1.439, allocations: 130.5 MB / 0.5477 GB, free: 67.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.439, allocations: 0 / 0.5477 GB, free: 67.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006205/1.439, allocations: 145 kB / 0.5478 GB, free: 67.14 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02356/1.463, allocations: 5.383 MB / 0.553 GB, free: 65.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/1.463, allocations: 8.25 kB / 0.5531 GB, free: 65.12 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003474/1.467, allocations: 0.7679 MB / 0.5538 GB, free: 65.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009758/1.476, allocations: 1.146 MB / 0.5549 GB, free: 64.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01871/1.495, allocations: 4.874 MB / 0.5597 GB, free: 63.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006412/1.496, allocations: 423.2 kB / 0.5601 GB, free: 63.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002535/1.498, allocations: 0.5565 MB / 0.5606 GB, free: 63.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/1.523, allocations: 6.948 MB / 0.5674 GB, free: 63.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003151/1.523, allocations: 16.19 kB / 0.5674 GB, free: 63.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002008/1.525, allocations: 247.9 kB / 0.5677 GB, free: 63.24 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003133/1.525, allocations: 249.1 kB / 0.5679 GB, free: 63.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01835/1.544, allocations: 5.496 MB / 0.5733 GB, free: 63.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06636/1.61, allocations: 23.82 MB / 0.5965 GB, free: 53.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/1.622, allocations: 8.558 MB / 0.6049 GB, free: 45.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005564/1.628, allocations: 2.218 MB / 0.6071 GB, free: 45.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02117/1.649, allocations: 6.934 MB / 0.6138 GB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/1.649, allocations: 59.16 kB / 0.6139 GB, free: 41.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=234): time 5.711e-06/1.649, allocations: 0 / 0.6139 GB, free: 41.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=285): time 0.04893/1.698, allocations: 12.11 MB / 0.6257 GB, free: 35.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/1.698, allocations: 84.62 kB / 0.6258 GB, free: 35.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007769/1.706, allocations: 2.924 MB / 0.6286 GB, free: 33.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006707/1.707, allocations: 73.7 kB / 0.6287 GB, free: 33.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002599/1.709, allocations: 2.662 MB / 0.6313 GB, free: 30.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001393/1.711, allocations: 0.968 MB / 0.6323 GB, free: 29.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005096/1.711, allocations: 72 kB / 0.6323 GB, free: 29.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002856/1.712, allocations: 459.7 kB / 0.6328 GB, free: 29.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004029/1.716, allocations: 1.461 MB / 0.6342 GB, free: 28.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004979/1.721, allocations: 2.619 MB / 0.6367 GB, free: 25.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004926/1.726, allocations: 1.937 MB / 0.6386 GB, free: 23.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.285e-05/1.726, allocations: 12 kB / 0.6387 GB, free: 23.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01666/1.742, allocations: 5.266 MB / 0.6438 GB, free: 18.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/1.742, allocations: 24.09 kB / 0.6438 GB, free: 18.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.383e-05/1.743, allocations: 47.75 kB / 0.6439 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003725/1.746, allocations: 0.8707 MB / 0.6447 GB, free: 17.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006561/1.753, allocations: 0.8581 MB / 0.6456 GB, free: 17.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/1.769, allocations: 9.776 MB / 0.6551 GB, free: 7.863 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005614/1.775, allocations: 234.7 kB / 0.6553 GB, free: 7.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009153/1.776, allocations: 167.9 kB / 0.6555 GB, free: 7.516 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 409 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008614/1.777, allocations: 339.6 kB / 0.6558 GB, free: 7.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001267/1.778, allocations: 383.3 kB / 0.6562 GB, free: 6.801 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.79, allocations: 4.515 MB / 0.6606 GB, free: 2.855 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-05/1.791, allocations: 31.94 kB / 0.6606 GB, free: 2.824 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.004e-05/1.791, allocations: 8 kB / 0.6606 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.091e-05/1.791, allocations: 18.75 kB / 0.6606 GB, free: 2.816 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03041/1.821, allocations: 10.01 MB / 0.6704 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01118/1.832, allocations: 3.799 MB / 0.6741 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00456/1.837, allocations: 496.3 kB / 0.6746 GB, free: 6.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004773/1.842, allocations: 0.9816 MB / 0.6756 GB, free: 6.105 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007133/1.843, allocations: 70.98 kB / 0.6756 GB, free: 6.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3403/2.183, allocations: 14.85 MB / 0.6901 GB, free: 69.86 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/2.183, allocations: 10.55 kB / 0.6901 GB, free: 69.86 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02088/2.204, allocations: 7.096 MB / 0.6971 GB, free: 68.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003572/2.207, allocations: 0.7747 MB / 0.6978 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001947/2.21, allocations: 66.08 kB / 0.6979 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00511/2.215, allocations: 182.5 kB / 0.6981 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00125/2.216, allocations: 215.9 kB / 0.6983 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006582/2.217, allocations: 83.8 kB / 0.6983 GB, free: 68.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007056/2.224, allocations: 2.208 MB / 0.7005 GB, free: 68.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.224, allocations: 0 / 0.7005 GB, free: 68.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008073/2.232, allocations: 1.196 MB / 0.7017 GB, free: 68.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02575/2.258, allocations: 8.979 MB / 0.7104 GB, free: 65.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01651/2.274, allocations: 4.533 MB / 0.7149 GB, free: 64.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/2.274, allocations: 4.062 kB / 0.7149 GB, free: 64.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01057/2.285, allocations: 2.899 MB / 0.7177 GB, free: 63.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009303/2.294, allocations: 0.8197 MB / 0.7185 GB, free: 63.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04931/2.344, allocations: 9.931 MB / 0.7282 GB, free: 61.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01148/2.355, allocations: 3.609 MB / 0.7317 GB, free: 60.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009273/2.365, allocations: 0.834 MB / 0.7325 GB, free: 60.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008436/2.373, allocations: 2.22 MB / 0.7347 GB, free: 60.83 MB / 426.7 MB Notification: Performance of SimCode: time 2.144e-06/2.373, allocations: 0 / 0.7347 GB, free: 60.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2667/2.64, allocations: 96.84 MB / 0.8293 GB, free: 4.734 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/2.64, allocations: 197 kB / 0.8295 GB, free: 4.504 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/9.503, allocations: 64 / 0.8295 GB, free: 4.504 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat