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.044/2.044, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.352e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3178, allocations: 44.5 MB / 294.2 MB, free: 14.44 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2169/0.5348, allocations: 129.6 MB / 423.8 MB, free: 240 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.5351, allocations: 83.95 kB / 423.9 MB, free: 156 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7096/1.245, allocations: 128.8 MB / 0.5397 GB, free: 256 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.245, allocations: 3.938 kB / 0.5397 GB, free: 252 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005849/1.245, allocations: 139.9 kB / 0.5399 GB, free: 112 kB / 362.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.0243/1.27, allocations: 5.381 MB / 0.5451 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/1.27, allocations: 12.02 kB / 0.5451 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009628/1.279, allocations: 1.144 MB / 0.5463 GB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/1.299, allocations: 4.871 MB / 0.551 GB, free: 4.543 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004437/1.3, allocations: 184 kB / 0.5512 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002263/1.302, allocations: 339.8 kB / 0.5515 GB, free: 4.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.332/1.634, allocations: 5.223 MB / 0.5566 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02335/1.658, allocations: 6.191 MB / 0.5627 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002819/1.658, allocations: 6.281 kB / 0.5627 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001438/1.659, allocations: 9.125 kB / 0.5627 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002927/1.66, allocations: 253.7 kB / 0.5629 GB, free: 33.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05821/1.718, allocations: 22.73 MB / 0.5851 GB, free: 28.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/1.729, allocations: 8.494 MB / 0.5934 GB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0049/1.734, allocations: 2.135 MB / 0.5955 GB, free: 22.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01707/1.751, allocations: 6.752 MB / 0.6021 GB, free: 21.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.561e-05/1.751, allocations: 57.69 kB / 0.6021 GB, free: 21.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 5.41e-06/1.751, allocations: 2.219 kB / 0.6021 GB, free: 21.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=289): time 0.03213/1.783, allocations: 10.24 MB / 0.6121 GB, free: 19.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/1.783, allocations: 78.41 kB / 0.6122 GB, free: 19.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005352/1.789, allocations: 2.378 MB / 0.6145 GB, free: 19.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006095/1.789, allocations: 25.7 kB / 0.6146 GB, free: 19.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002061/1.791, allocations: 2.675 MB / 0.6172 GB, free: 17.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.793, allocations: 0.9475 MB / 0.6181 GB, free: 16.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003234/1.793, allocations: 0 / 0.6181 GB, free: 16.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002312/1.793, allocations: 453.1 kB / 0.6185 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003064/1.796, allocations: 1.4 MB / 0.6199 GB, free: 16.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00386/1.8, allocations: 2.557 MB / 0.6224 GB, free: 14.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005372/1.806, allocations: 2.031 MB / 0.6244 GB, free: 13.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.152e-05/1.806, allocations: 9.781 kB / 0.6244 GB, free: 13.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=475) (initialization): time 0.01479/1.82, allocations: 5.125 MB / 0.6294 GB, free: 11.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/1.821, allocations: 20.44 kB / 0.6294 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.39e-05/1.821, allocations: 43.31 kB / 0.6295 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003453/1.824, allocations: 0.8544 MB / 0.6303 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006211/1.83, allocations: 0.8596 MB / 0.6311 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01498/1.845, allocations: 9.356 MB / 0.6403 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005004/1.85, allocations: 158.5 kB / 0.6404 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000864/1.851, allocations: 173.2 kB / 0.6406 GB, free: 4.855 MB / 378.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 (422): * Single equations (assignments): 413 * 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.0008292/1.852, allocations: 218.9 kB / 0.6408 GB, free: 4.719 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01159/1.864, allocations: 4.139 MB / 0.6448 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001554/1.865, allocations: 355.1 kB / 0.6452 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01215/1.878, allocations: 4.399 MB / 0.6495 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.006e-05/1.878, allocations: 25.22 kB / 0.6495 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.879e-05/1.878, allocations: 10.47 kB / 0.6495 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.46e-05/1.878, allocations: 14.44 kB / 0.6495 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02582/1.904, allocations: 9.155 MB / 0.6585 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0105/1.914, allocations: 3.783 MB / 0.6622 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004255/1.918, allocations: 0.4976 MB / 0.6626 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004365/1.923, allocations: 0.965 MB / 0.6636 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005129/1.923, allocations: 27.08 kB / 0.6636 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/1.947, allocations: 14.21 MB / 0.6775 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.205e-05/1.947, allocations: 7 kB / 0.6775 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01833/1.966, allocations: 6.822 MB / 0.6842 GB, free: 6.809 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/1.969, allocations: 0.7319 MB / 0.6849 GB, free: 6.137 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001241/1.97, allocations: 16 kB / 0.6849 GB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0039/1.974, allocations: 147.9 kB / 0.685 GB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008912/1.975, allocations: 214.4 kB / 0.6852 GB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003179/1.975, allocations: 82.16 kB / 0.6853 GB, free: 5.828 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004497/1.98, allocations: 1.742 MB / 0.687 GB, free: 4.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.98, allocations: 0 / 0.687 GB, free: 4.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006956/1.987, allocations: 1.025 MB / 0.688 GB, free: 3.258 MB / 410.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 (226): * Single equations (assignments): 217 * 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.01997/2.007, allocations: 8.811 MB / 0.6966 GB, free: 11.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0118/2.019, allocations: 4.449 MB / 0.701 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/2.019, allocations: 0 / 0.701 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008265/2.027, allocations: 2.872 MB / 0.7038 GB, free: 4.152 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00565/2.033, allocations: 0.606 MB / 0.7044 GB, free: 3.676 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3665/2.399, allocations: 9.601 MB / 0.7137 GB, free: 74.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006868/2.406, allocations: 3.608 MB / 0.7173 GB, free: 73.92 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005123/2.411, allocations: 0.8006 MB / 0.718 GB, free: 73.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005147/2.416, allocations: 2.195 MB / 0.7202 GB, free: 73.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.734e-06/2.416, allocations: 0 / 0.7202 GB, free: 73.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2288/2.645, allocations: 82.1 MB / 0.8004 GB, free: 53.57 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/2.646, allocations: 173 kB / 0.8005 GB, free: 53.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.835/8.48, allocations: 2.078 kB / 0.8005 GB, free: 53.38 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