Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.052/2.052, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.982e-05, allocations: 4 kB / 292.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 50.41 MB / 342.7 MB, free: 5.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5712/0.6757, allocations: 137.5 MB / 480.2 MB, free: 5.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004355/0.6762, allocations: 91.53 kB / 480.3 MB, free: 5.32 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8164/1.493, allocations: 131.6 MB / 0.5975 GB, free: 93.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.493, allocations: 4 kB / 0.5975 GB, free: 93.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005587/1.493, allocations: 134.7 kB / 0.5976 GB, free: 93.06 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0215/1.515, allocations: 5.434 MB / 0.603 GB, free: 89.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/1.515, allocations: 12.03 kB / 0.603 GB, free: 89 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002871/1.518, allocations: 0.77 MB / 0.6037 GB, free: 88.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008949/1.527, allocations: 1.147 MB / 0.6048 GB, free: 87.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01741/1.544, allocations: 4.91 MB / 0.6096 GB, free: 82.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004668/1.545, allocations: 427.5 kB / 0.61 GB, free: 81.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002092/1.547, allocations: 0.5579 MB / 0.6106 GB, free: 81.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/1.567, allocations: 6.976 MB / 0.6174 GB, free: 74.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002845/1.567, allocations: 19.83 kB / 0.6174 GB, free: 74.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001659/1.569, allocations: 238 kB / 0.6176 GB, free: 73.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002922/1.569, allocations: 255.3 kB / 0.6179 GB, free: 73.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/1.587, allocations: 5.528 MB / 0.6233 GB, free: 68.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06266/1.65, allocations: 23.93 MB / 0.6466 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.662, allocations: 8.607 MB / 0.6551 GB, free: 34.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005921/1.668, allocations: 2.235 MB / 0.6572 GB, free: 31.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02119/1.689, allocations: 6.955 MB / 0.664 GB, free: 24.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.047e-05/1.689, allocations: 60.56 kB / 0.6641 GB, free: 24.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 6.603e-06/1.689, allocations: 0 / 0.6641 GB, free: 24.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.04994/1.739, allocations: 12.14 MB / 0.6759 GB, free: 12.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/1.739, allocations: 77.64 kB / 0.676 GB, free: 12.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007357/1.747, allocations: 2.938 MB / 0.6789 GB, free: 9.512 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006727/1.747, allocations: 77.7 kB / 0.679 GB, free: 9.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002272/1.75, allocations: 2.67 MB / 0.6816 GB, free: 6.738 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.751, allocations: 0.9944 MB / 0.6825 GB, free: 5.754 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003865/1.752, allocations: 72 kB / 0.6826 GB, free: 5.684 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002316/1.752, allocations: 449.9 kB / 0.683 GB, free: 5.238 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003424/1.755, allocations: 1.472 MB / 0.6845 GB, free: 3.766 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003933/1.759, allocations: 2.633 MB / 0.687 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4049/2.164, allocations: 1.943 MB / 0.6889 GB, free: 83.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.569e-05/2.164, allocations: 10.94 kB / 0.6889 GB, free: 83.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.02487/2.189, allocations: 5.293 MB / 0.6941 GB, free: 83.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.051e-05/2.189, allocations: 20.5 kB / 0.6941 GB, free: 83.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/2.189, allocations: 43.19 kB / 0.6942 GB, free: 83.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00566/2.195, allocations: 0.8609 MB / 0.695 GB, free: 83.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006812/2.202, allocations: 0.8623 MB / 0.6959 GB, free: 83.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/2.22, allocations: 9.792 MB / 0.7054 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005686/2.226, allocations: 240.6 kB / 0.7057 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/2.227, allocations: 168 kB / 0.7058 GB, free: 79.43 MB / 442.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 (421): * Single equations (assignments): 412 * 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.001354/2.229, allocations: 332.5 kB / 0.7061 GB, free: 79.33 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001505/2.23, allocations: 399.5 kB / 0.7065 GB, free: 79.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/2.244, allocations: 4.538 MB / 0.7109 GB, free: 78.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-05/2.244, allocations: 32.23 kB / 0.711 GB, free: 78.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.522e-05/2.244, allocations: 15.25 kB / 0.711 GB, free: 78.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.878e-05/2.244, allocations: 11.91 kB / 0.711 GB, free: 78.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02835/2.273, allocations: 9.977 MB / 0.7207 GB, free: 77.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01018/2.283, allocations: 3.822 MB / 0.7245 GB, free: 77.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00444/2.288, allocations: 0.4933 MB / 0.725 GB, free: 77.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004296/2.292, allocations: 0.9777 MB / 0.7259 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006399/2.293, allocations: 71.75 kB / 0.726 GB, free: 77.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02172/2.314, allocations: 14.78 MB / 0.7404 GB, free: 66.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/2.314, allocations: 5 kB / 0.7404 GB, free: 66.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/2.332, allocations: 7.143 MB / 0.7474 GB, free: 62.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002983/2.335, allocations: 0.7852 MB / 0.7482 GB, free: 62.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001419/2.336, allocations: 60.67 kB / 0.7482 GB, free: 62.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004626/2.341, allocations: 201.5 kB / 0.7484 GB, free: 62.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009879/2.342, allocations: 210.8 kB / 0.7486 GB, free: 62.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003125/2.342, allocations: 87.14 kB / 0.7487 GB, free: 62.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005742/2.348, allocations: 2.214 MB / 0.7509 GB, free: 61.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.348, allocations: 3.375 kB / 0.7509 GB, free: 61.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006763/2.355, allocations: 1.197 MB / 0.752 GB, free: 61.25 MB / 442.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.stray.Phi.re,smeeM.stator.stray.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 (227): * Single equations (assignments): 218 * 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.01726/2.372, allocations: 9.064 MB / 0.7609 GB, free: 56.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01074/2.383, allocations: 4.543 MB / 0.7653 GB, free: 54.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/2.383, allocations: 1.406 kB / 0.7653 GB, free: 54.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007508/2.391, allocations: 2.918 MB / 0.7682 GB, free: 52.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006996/2.398, allocations: 0.8266 MB / 0.769 GB, free: 51.99 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03089/2.429, allocations: 9.959 MB / 0.7787 GB, free: 43.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006552/2.435, allocations: 3.63 MB / 0.7822 GB, free: 40.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005548/2.441, allocations: 0.8344 MB / 0.7831 GB, free: 39.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005022/2.446, allocations: 2.226 MB / 0.7852 GB, free: 37.91 MB / 442.7 MB Notification: Performance of SimCode: time 2.385e-06/2.446, allocations: 0 / 0.7852 GB, free: 37.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6195/3.066, allocations: 97.68 MB / 0.8806 GB, free: 102.3 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/3.066, allocations: 215.8 kB / 0.8808 GB, free: 102.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.745/9.811, allocations: 7.5 kB / 0.8808 GB, free: 102.1 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat