Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.66/1.66, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.1e-05/3.106e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.251, allocations: 38.77 MB / 263.9 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.409/0.66, allocations: 106.9 MB / 370.8 MB, free: 48.1 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/0.6604, allocations: 85.81 kB / 370.9 MB, free: 48.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.955/1.615, allocations: 181.3 MB / 0.5393 GB, free: 44.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.616, allocations: 4 kB / 0.5393 GB, free: 44.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00145/1.617, allocations: 204.6 kB / 0.5395 GB, free: 44.68 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.04362/1.661, allocations: 7.61 MB / 0.5469 GB, free: 42.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.217e-05/1.661, allocations: 10.91 kB / 0.5469 GB, free: 42.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005706/1.666, allocations: 1.099 MB / 0.548 GB, free: 42.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01258/1.679, allocations: 1.342 MB / 0.5493 GB, free: 41.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02317/1.702, allocations: 5.851 MB / 0.555 GB, free: 40.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008213/1.703, allocations: 0.6018 MB / 0.5556 GB, free: 40.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00361/1.707, allocations: 0.7943 MB / 0.5564 GB, free: 40.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03546/1.742, allocations: 10.06 MB / 0.5662 GB, free: 39.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005017/1.743, allocations: 18.7 kB / 0.5662 GB, free: 39.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003026/1.746, allocations: 347.8 kB / 0.5666 GB, free: 39.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004164/1.746, allocations: 336.9 kB / 0.5669 GB, free: 39.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02622/1.773, allocations: 7.627 MB / 0.5743 GB, free: 39.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08819/1.861, allocations: 33.08 MB / 0.6066 GB, free: 22.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009891/1.871, allocations: 5.926 MB / 0.6124 GB, free: 18.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007587/1.879, allocations: 2.776 MB / 0.6151 GB, free: 17.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004037/1.879, allocations: 37.45 kB / 0.6152 GB, free: 17.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/1.879, allocations: 71.72 kB / 0.6152 GB, free: 17.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=295): time 6.151e-06/1.879, allocations: 0 / 0.6152 GB, free: 17.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=353): time 0.04381/1.923, allocations: 11.62 MB / 0.6266 GB, free: 7.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.698e-05/1.923, allocations: 86.17 kB / 0.6267 GB, free: 7.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01228/1.935, allocations: 3.744 MB / 0.6303 GB, free: 4.059 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007904/1.936, allocations: 89.7 kB / 0.6304 GB, free: 3.965 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004017/1.94, allocations: 3.37 MB / 0.6337 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002154/1.942, allocations: 1.2 MB / 0.6349 GB, free: 15.82 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006914/1.943, allocations: 80 kB / 0.6349 GB, free: 15.74 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004756/1.944, allocations: 475.9 kB / 0.6354 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005584/1.949, allocations: 1.722 MB / 0.6371 GB, free: 13.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007153/1.956, allocations: 2.954 MB / 0.64 GB, free: 10.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006946/1.963, allocations: 2.278 MB / 0.6422 GB, free: 8.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.711e-05/1.964, allocations: 15.94 kB / 0.6422 GB, free: 8.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=541) (initialization): time 0.0208/1.984, allocations: 5.724 MB / 0.6478 GB, free: 3.223 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.627e-05/1.984, allocations: 24.78 kB / 0.6478 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001063/1.985, allocations: 40 kB / 0.6479 GB, free: 3.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00429/1.989, allocations: 0.9286 MB / 0.6488 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007538/1.997, allocations: 0.948 MB / 0.6497 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3216/2.318, allocations: 12.25 MB / 0.6616 GB, free: 49.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006523/2.325, allocations: 228.3 kB / 0.6619 GB, free: 49.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/2.326, allocations: 179.9 kB / 0.662 GB, free: 49.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (469): * Single equations (assignments): 461 * 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 {(4,93.8%) 19,(1,100.0%) 5,(4,93.8%) 19,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001733/2.328, allocations: 368 kB / 0.6624 GB, free: 49.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001844/2.33, allocations: 480.8 kB / 0.6628 GB, free: 49.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/2.346, allocations: 5.242 MB / 0.668 GB, free: 48.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.055e-05/2.347, allocations: 33.94 kB / 0.668 GB, free: 48.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.409e-05/2.347, allocations: 20.56 kB / 0.668 GB, free: 48.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001057/2.347, allocations: 23.58 kB / 0.668 GB, free: 48.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04356/2.39, allocations: 14.29 MB / 0.682 GB, free: 47.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.754e-05/2.39, allocations: 12.94 kB / 0.682 GB, free: 47.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004797/2.395, allocations: 0.5606 MB / 0.6825 GB, free: 47.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004652/2.4, allocations: 1.074 MB / 0.6836 GB, free: 47.24 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007959/2.401, allocations: 83.97 kB / 0.6837 GB, free: 47.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0265/2.427, allocations: 15.72 MB / 0.699 GB, free: 40.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/2.427, allocations: 18.52 kB / 0.699 GB, free: 40.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02065/2.448, allocations: 9.32 MB / 0.7081 GB, free: 37.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003867/2.452, allocations: 0.9627 MB / 0.7091 GB, free: 37.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002122/2.454, allocations: 81.33 kB / 0.7092 GB, free: 37.36 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005502/2.46, allocations: 212.2 kB / 0.7094 GB, free: 37.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001292/2.461, allocations: 287.6 kB / 0.7096 GB, free: 37.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005927/2.462, allocations: 105.8 kB / 0.7097 GB, free: 37.35 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008274/2.47, allocations: 2.847 MB / 0.7125 GB, free: 36.33 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.12e-07/2.47, allocations: 0 / 0.7125 GB, free: 36.33 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009236/2.479, allocations: 1.46 MB / 0.7139 GB, free: 36.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * 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,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.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 (263): * Single equations (assignments): 256 * 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 {(4,93.8%) 19,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02271/2.502, allocations: 12.64 MB / 0.7263 GB, free: 27.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01433/2.516, allocations: 5.325 MB / 0.7315 GB, free: 25.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.949e-05/2.517, allocations: 5.938 kB / 0.7315 GB, free: 25.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01015/2.527, allocations: 3.597 MB / 0.735 GB, free: 23.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009057/2.536, allocations: 1.074 MB / 0.7361 GB, free: 23.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04973/2.586, allocations: 13.92 MB / 0.7496 GB, free: 17.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/2.597, allocations: 5.002 MB / 0.7545 GB, free: 16.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007997/2.605, allocations: 3.155 MB / 0.7576 GB, free: 13.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/2.605, allocations: 0 / 0.7576 GB, free: 13.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.909/8.513, allocations: 348.2 MB / 1.098 GB, free: 6.531 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat does not exist to compare? outputFormat=mat