Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.651/1.651, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.986e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2532, allocations: 38.76 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.6968, allocations: 122.1 MB / 386 MB, free: 53.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.6971, allocations: 85.33 kB / 386.1 MB, free: 53.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.487/1.184, allocations: 124.1 MB / 0.4983 GB, free: 4.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.184, allocations: 0 / 0.4983 GB, free: 4.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000673/1.185, allocations: 143.7 kB / 0.4984 GB, free: 3.926 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: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.2876/1.472, allocations: 5.242 MB / 0.5035 GB, free: 35.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/1.473, allocations: 9.125 kB / 0.5035 GB, free: 35.72 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003149/1.476, allocations: 0.735 MB / 0.5043 GB, free: 35.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006353/1.482, allocations: 0.8873 MB / 0.5051 GB, free: 35.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/1.496, allocations: 3.936 MB / 0.509 GB, free: 34.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005683/1.497, allocations: 407.8 kB / 0.5094 GB, free: 34.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002296/1.499, allocations: 0.5271 MB / 0.5099 GB, free: 34.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02282/1.522, allocations: 6.628 MB / 0.5163 GB, free: 34.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003737/1.522, allocations: 21.77 kB / 0.5164 GB, free: 34.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/1.524, allocations: 227.7 kB / 0.5166 GB, free: 34.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003203/1.524, allocations: 231.4 kB / 0.5168 GB, free: 34.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/1.541, allocations: 5.069 MB / 0.5217 GB, free: 34.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05669/1.598, allocations: 22.48 MB / 0.5437 GB, free: 29.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006719/1.605, allocations: 4.289 MB / 0.5479 GB, free: 27.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004776/1.61, allocations: 1.968 MB / 0.5498 GB, free: 27.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/1.61, allocations: 155 kB / 0.55 GB, free: 27.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/1.61, allocations: 56.25 kB / 0.55 GB, free: 27.17 MB / 362.7 MB Notification: Performance of pre-optimization done (n=245): time 5.3e-06/1.61, allocations: 0 / 0.55 GB, free: 27.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=299): time 0.04861/1.659, allocations: 12.37 MB / 0.5621 GB, free: 23.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/1.659, allocations: 82.89 kB / 0.5622 GB, free: 23.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006459/1.666, allocations: 2.845 MB / 0.5649 GB, free: 22.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006433/1.666, allocations: 75.77 kB / 0.565 GB, free: 22.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/1.669, allocations: 2.524 MB / 0.5675 GB, free: 20.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.67, allocations: 1.021 MB / 0.5685 GB, free: 19.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003958/1.671, allocations: 69.19 kB / 0.5685 GB, free: 19.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002683/1.671, allocations: 453.3 kB / 0.569 GB, free: 19.17 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/1.675, allocations: 1.497 MB / 0.5704 GB, free: 18.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004563/1.679, allocations: 2.548 MB / 0.5729 GB, free: 16.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005033/1.684, allocations: 1.961 MB / 0.5748 GB, free: 15.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.878e-05/1.685, allocations: 18.12 kB / 0.5749 GB, free: 15.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=464) (initialization): time 0.01582/1.7, allocations: 5.351 MB / 0.5801 GB, free: 13.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/1.7, allocations: 19.16 kB / 0.5801 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.082e-05/1.701, allocations: 38.73 kB / 0.5801 GB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003932/1.705, allocations: 0.9353 MB / 0.5811 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/1.711, allocations: 0.8258 MB / 0.5819 GB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01885/1.73, allocations: 10.75 MB / 0.5924 GB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005449/1.735, allocations: 225.4 kB / 0.5926 GB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000838/1.736, allocations: 157.3 kB / 0.5927 GB, free: 6.504 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 394 * 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,(4,93.8%) 19,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008578/1.737, allocations: 326.1 kB / 0.593 GB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/1.738, allocations: 389 kB / 0.5934 GB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01321/1.752, allocations: 4.675 MB / 0.598 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.521e-05/1.752, allocations: 34.34 kB / 0.598 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-05/1.752, allocations: 13.44 kB / 0.598 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.527e-05/1.752, allocations: 14.77 kB / 0.598 GB, free: 20.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04005/1.792, allocations: 10.98 MB / 0.6088 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01664/1.809, allocations: 3.774 MB / 0.6124 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006187/1.815, allocations: 0.493 MB / 0.6129 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00683/1.822, allocations: 1.023 MB / 0.6139 GB, free: 9.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007483/1.823, allocations: 74.66 kB / 0.614 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03322/1.856, allocations: 14.31 MB / 0.628 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.067e-05/1.856, allocations: 17.53 kB / 0.628 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01905/1.875, allocations: 7.697 MB / 0.6355 GB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003194/1.878, allocations: 0.7821 MB / 0.6363 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00112/1.879, allocations: 73.75 kB / 0.6363 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003908/1.883, allocations: 186.7 kB / 0.6365 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007161/1.884, allocations: 235.4 kB / 0.6367 GB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003117/1.884, allocations: 91.89 kB / 0.6368 GB, free: 2.691 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005596/1.89, allocations: 2.152 MB / 0.6389 GB, free: 0.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.89, allocations: 0 / 0.6389 GB, free: 0.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009905/1.9, allocations: 1.355 MB / 0.6403 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.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 (232): * Single equations (assignments): 224 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3278/2.228, allocations: 10.46 MB / 0.6505 GB, free: 56.92 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0112/2.239, allocations: 4.685 MB / 0.655 GB, free: 56.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.317e-05/2.239, allocations: 2.844 kB / 0.655 GB, free: 56.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007987/2.247, allocations: 2.984 MB / 0.658 GB, free: 55.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00681/2.254, allocations: 0.8357 MB / 0.6588 GB, free: 55.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02782/2.282, allocations: 9.92 MB / 0.6685 GB, free: 53.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005582/2.287, allocations: 3.583 MB / 0.672 GB, free: 52.56 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004726/2.292, allocations: 0.7721 MB / 0.6727 GB, free: 52.47 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004602/2.297, allocations: 2.119 MB / 0.6748 GB, free: 52.47 MB / 394.7 MB Notification: Performance of SimCode: time 1.833e-06/2.297, allocations: 4 kB / 0.6748 GB, free: 52.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2094/2.506, allocations: 96.51 MB / 0.769 GB, free: 10.65 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002327/2.507, allocations: 196.7 kB / 0.7692 GB, free: 10.42 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.219/8.726, allocations: 0 / 0.7692 GB, free: 10.42 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat