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.696/1.696, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.832e-05, allocations: 4 kB / 225.1 MB, free: 2.129 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2457, allocations: 38.77 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.6736, allocations: 122.1 MB / 386 MB, free: 53.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.6739, allocations: 84.25 kB / 386.1 MB, free: 53.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4444/1.118, allocations: 124.1 MB / 0.4982 GB, free: 4.078 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/1.118, allocations: 0 / 0.4982 GB, free: 4.078 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006208/1.119, allocations: 147.7 kB / 0.4984 GB, free: 3.934 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.2741/1.393, allocations: 5.234 MB / 0.5035 GB, free: 35.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.529e-05/1.393, allocations: 12.19 kB / 0.5035 GB, free: 35.93 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002878/1.396, allocations: 0.7374 MB / 0.5042 GB, free: 35.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005701/1.402, allocations: 0.8876 MB / 0.5051 GB, free: 35.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/1.415, allocations: 3.937 MB / 0.5089 GB, free: 35.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005183/1.416, allocations: 407.7 kB / 0.5093 GB, free: 35.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/1.418, allocations: 0.5301 MB / 0.5098 GB, free: 35.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01872/1.437, allocations: 6.697 MB / 0.5164 GB, free: 34.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002055/1.437, allocations: 17.89 kB / 0.5164 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000833/1.438, allocations: 228.3 kB / 0.5166 GB, free: 34.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002634/1.438, allocations: 235.1 kB / 0.5168 GB, free: 34.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01524/1.453, allocations: 5.13 MB / 0.5218 GB, free: 34.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05238/1.506, allocations: 22.48 MB / 0.5438 GB, free: 29.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006634/1.513, allocations: 4.305 MB / 0.548 GB, free: 27.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004556/1.517, allocations: 1.977 MB / 0.5499 GB, free: 27.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005067/1.518, allocations: 153.4 kB / 0.5501 GB, free: 27.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/1.518, allocations: 67.91 kB / 0.5501 GB, free: 27.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=245): time 5.139e-06/1.518, allocations: 3.75 kB / 0.5502 GB, free: 27.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=299): time 0.04648/1.564, allocations: 12.36 MB / 0.5622 GB, free: 23.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/1.564, allocations: 83.7 kB / 0.5623 GB, free: 23.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00597/1.57, allocations: 2.84 MB / 0.5651 GB, free: 22.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006455/1.571, allocations: 76.89 kB / 0.5652 GB, free: 22.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/1.573, allocations: 2.528 MB / 0.5676 GB, free: 20.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00132/1.574, allocations: 1.016 MB / 0.5686 GB, free: 19.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003567/1.575, allocations: 69.5 kB / 0.5687 GB, free: 19.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002258/1.575, allocations: 453.8 kB / 0.5691 GB, free: 19.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003496/1.578, allocations: 1.498 MB / 0.5706 GB, free: 18.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003969/1.582, allocations: 2.57 MB / 0.5731 GB, free: 16.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004416/1.587, allocations: 1.961 MB / 0.575 GB, free: 16.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.991e-05/1.587, allocations: 10.62 kB / 0.575 GB, free: 16.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=464) (initialization): time 0.01344/1.6, allocations: 5.443 MB / 0.5803 GB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/1.601, allocations: 22.06 kB / 0.5803 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.539e-05/1.601, allocations: 39.28 kB / 0.5804 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003629/1.604, allocations: 0.9303 MB / 0.5813 GB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005864/1.61, allocations: 0.8334 MB / 0.5821 GB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01828/1.628, allocations: 10.73 MB / 0.5926 GB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004948/1.633, allocations: 235.4 kB / 0.5928 GB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004619/1.634, allocations: 153.8 kB / 0.593 GB, free: 6.633 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.0008071/1.635, allocations: 329.3 kB / 0.5933 GB, free: 6.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/1.636, allocations: 388.6 kB / 0.5936 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01169/1.647, allocations: 4.683 MB / 0.5982 GB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/1.648, allocations: 32.8 kB / 0.5982 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.738e-05/1.648, allocations: 8.812 kB / 0.5983 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.103e-05/1.648, allocations: 17 kB / 0.5983 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02782/1.675, allocations: 10.99 MB / 0.609 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01012/1.686, allocations: 3.783 MB / 0.6127 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004153/1.69, allocations: 0.4905 MB / 0.6132 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004693/1.695, allocations: 1.036 MB / 0.6142 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003932/1.695, allocations: 74.94 kB / 0.6143 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02619/1.721, allocations: 14.31 MB / 0.6282 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.516e-05/1.721, allocations: 11.94 kB / 0.6282 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/1.739, allocations: 7.705 MB / 0.6358 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002959/1.742, allocations: 0.7867 MB / 0.6365 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008902/1.743, allocations: 74.84 kB / 0.6366 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003522/1.746, allocations: 175.8 kB / 0.6368 GB, free: 2.852 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007229/1.747, allocations: 235.1 kB / 0.637 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002944/1.748, allocations: 91.89 kB / 0.6371 GB, free: 2.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00522/1.753, allocations: 2.152 MB / 0.6392 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.763e-06/1.753, allocations: 0 / 0.6392 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01011/1.763, allocations: 1.399 MB / 0.6406 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.2781/2.041, allocations: 10.46 MB / 0.6508 GB, free: 58.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/2.052, allocations: 4.782 MB / 0.6554 GB, free: 57.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/2.052, allocations: 3.906 kB / 0.6554 GB, free: 57.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007673/2.06, allocations: 3.062 MB / 0.6584 GB, free: 56.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006099/2.066, allocations: 0.8308 MB / 0.6592 GB, free: 56.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02654/2.093, allocations: 9.938 MB / 0.6689 GB, free: 54.41 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004514/2.097, allocations: 3.585 MB / 0.6724 GB, free: 53.59 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004493/2.102, allocations: 0.771 MB / 0.6732 GB, free: 53.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004149/2.106, allocations: 2.116 MB / 0.6753 GB, free: 53.49 MB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/2.106, allocations: 0 / 0.6753 GB, free: 53.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2185/2.324, allocations: 97.02 MB / 0.77 GB, free: 11.07 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/2.325, allocations: 205.8 kB / 0.7702 GB, free: 10.83 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.34/8.665, allocations: 0 / 0.7702 GB, free: 10.83 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