Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.95/1.95, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.038e-05, allocations: 4 kB / 255.5 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.5717, allocations: 116.9 MB / 416.9 MB, free: 7.277 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.572, allocations: 82.52 kB / 416.9 MB, free: 7.266 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.015/1.587, allocations: 192.8 MB / 0.5955 GB, free: 56.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/1.587, allocations: 0 / 0.5955 GB, free: 56.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008321/1.588, allocations: 203.5 kB / 0.5957 GB, free: 56.37 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03351/1.622, allocations: 7.896 MB / 0.6034 GB, free: 53.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.622, allocations: 7.906 kB / 0.6034 GB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004815/1.627, allocations: 1.169 MB / 0.6045 GB, free: 53.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/1.642, allocations: 1.904 MB / 0.6064 GB, free: 52.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02627/1.669, allocations: 7.039 MB / 0.6133 GB, free: 49.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008552/1.67, allocations: 0.6466 MB / 0.6139 GB, free: 49.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003684/1.673, allocations: 0.8348 MB / 0.6147 GB, free: 48.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0367/1.71, allocations: 10.9 MB / 0.6254 GB, free: 43.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005293/1.711, allocations: 11.91 kB / 0.6254 GB, free: 43.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003182/1.714, allocations: 371.5 kB / 0.6257 GB, free: 43.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004426/1.714, allocations: 374 kB / 0.6261 GB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02866/1.743, allocations: 8.711 MB / 0.6346 GB, free: 35.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09675/1.84, allocations: 35.99 MB / 0.6697 GB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3478/2.188, allocations: 16.73 MB / 0.6861 GB, free: 37.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009777/2.197, allocations: 3.358 MB / 0.6893 GB, free: 37.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/2.226, allocations: 9.496 MB / 0.6986 GB, free: 35.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.874e-05/2.226, allocations: 71.23 kB / 0.6987 GB, free: 35.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 6.201e-06/2.226, allocations: 0 / 0.6987 GB, free: 35.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=345): time 0.03601/2.262, allocations: 11.51 MB / 0.7099 GB, free: 33.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/2.262, allocations: 86.02 kB / 0.71 GB, free: 33.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01076/2.273, allocations: 3.831 MB / 0.7137 GB, free: 33.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007486/2.274, allocations: 84.7 kB / 0.7138 GB, free: 33.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003409/2.277, allocations: 3.887 MB / 0.7176 GB, free: 31.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001583/2.279, allocations: 1.177 MB / 0.7188 GB, free: 30.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004284/2.279, allocations: 87.97 kB / 0.7188 GB, free: 30.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002638/2.279, allocations: 487.2 kB / 0.7193 GB, free: 30.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004163/2.284, allocations: 1.71 MB / 0.721 GB, free: 30.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005236/2.289, allocations: 3.149 MB / 0.7241 GB, free: 28.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005638/2.294, allocations: 2.3 MB / 0.7263 GB, free: 28.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.206e-05/2.295, allocations: 12.28 kB / 0.7263 GB, free: 28.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.0162/2.311, allocations: 6.116 MB / 0.7323 GB, free: 26.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/2.311, allocations: 27.73 kB / 0.7323 GB, free: 26.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-05/2.311, allocations: 49.84 kB / 0.7324 GB, free: 26.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002954/2.314, allocations: 0.7401 MB / 0.7331 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007599/2.322, allocations: 1.042 MB / 0.7341 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/2.337, allocations: 10.06 MB / 0.7439 GB, free: 34.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006709/2.344, allocations: 248.1 kB / 0.7442 GB, free: 34.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/2.345, allocations: 202.3 kB / 0.7444 GB, free: 34.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (518): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001082/2.346, allocations: 386.2 kB / 0.7447 GB, free: 34.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001512/2.347, allocations: 481.4 kB / 0.7452 GB, free: 34.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/2.36, allocations: 5.044 MB / 0.7501 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.728e-05/2.36, allocations: 36.67 kB / 0.7501 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/2.36, allocations: 18.17 kB / 0.7502 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.765e-05/2.36, allocations: 17.05 kB / 0.7502 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03102/2.391, allocations: 12.41 MB / 0.7623 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.314e-05/2.392, allocations: 7.406 kB / 0.7623 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005045/2.397, allocations: 0.5941 MB / 0.7629 GB, free: 26.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003625/2.4, allocations: 0.8972 MB / 0.7638 GB, free: 26.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004484/2.401, allocations: 87.39 kB / 0.7638 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0272/2.428, allocations: 13.95 MB / 0.7775 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/2.428, allocations: 7.812 kB / 0.7775 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0261/2.454, allocations: 8.057 MB / 0.7853 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003954/2.458, allocations: 0.9535 MB / 0.7863 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/2.46, allocations: 73.94 kB / 0.7863 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00619/2.466, allocations: 207.8 kB / 0.7865 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/2.468, allocations: 270.8 kB / 0.7868 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/2.468, allocations: 95.61 kB / 0.7869 GB, free: 10.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007551/2.475, allocations: 2.89 MB / 0.7897 GB, free: 9.328 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.343e-06/2.476, allocations: 0 / 0.7897 GB, free: 9.328 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009263/2.485, allocations: 1.528 MB / 0.7912 GB, free: 9.18 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0216/2.506, allocations: 10.16 MB / 0.8011 GB, free: 1.266 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01458/2.521, allocations: 5.242 MB / 0.8062 GB, free: 12.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/2.521, allocations: 11.23 kB / 0.8063 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009678/2.531, allocations: 3.231 MB / 0.8094 GB, free: 9.172 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009608/2.541, allocations: 1.058 MB / 0.8104 GB, free: 8.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05166/2.592, allocations: 14.13 MB / 0.8242 GB, free: 11.92 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01191/2.604, allocations: 5.207 MB / 0.8293 GB, free: 8.078 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007614/2.612, allocations: 1.05 MB / 0.8304 GB, free: 7.363 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008466/2.62, allocations: 3.295 MB / 0.8336 GB, free: 4.289 MB / 458.7 MB Notification: Performance of SimCode: time 1.743e-06/2.62, allocations: 0 / 0.8336 GB, free: 4.289 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6131/3.233, allocations: 124.8 MB / 0.9555 GB, free: 43.42 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000278/3.234, allocations: 210.2 kB / 0.9557 GB, free: 43.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.222/11.46, allocations: 0 / 0.9557 GB, free: 43.2 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat