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.665/1.665, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.111e-05/2.112e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2491, allocations: 38.76 MB / 258.3 MB, free: 12.07 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.424, allocations: 106.3 MB / 364.6 MB, free: 3.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.4244, allocations: 83.95 kB / 364.7 MB, free: 3.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.046/1.471, allocations: 179.1 MB / 0.531 GB, free: 19.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.471, allocations: 0 / 0.531 GB, free: 19.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007495/1.472, allocations: 202.3 kB / 0.5312 GB, free: 19.39 MB / 330.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.03072/1.502, allocations: 7.603 MB / 0.5386 GB, free: 16.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/1.502, allocations: 11.22 kB / 0.5387 GB, free: 16.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008928/1.511, allocations: 1.349 MB / 0.54 GB, free: 16.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.529, allocations: 5.85 MB / 0.5457 GB, free: 15.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004341/1.53, allocations: 268.3 kB / 0.5459 GB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002592/1.532, allocations: 482.6 kB / 0.5464 GB, free: 15.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02106/1.553, allocations: 7.254 MB / 0.5535 GB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/1.581, allocations: 8.963 MB / 0.5622 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002665/1.581, allocations: 10.58 kB / 0.5622 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001293/1.582, allocations: 7.562 kB / 0.5623 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003461/1.583, allocations: 336 kB / 0.5626 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07568/1.658, allocations: 31.51 MB / 0.5933 GB, free: 4.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009834/1.668, allocations: 5.829 MB / 0.599 GB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006983/1.675, allocations: 2.692 MB / 0.6017 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002867/1.676, allocations: 38.08 kB / 0.6017 GB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.961e-05/1.676, allocations: 72.77 kB / 0.6018 GB, free: 12.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=297): time 5.811e-06/1.676, allocations: 0 / 0.6018 GB, free: 12.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=355): time 0.03442/1.71, allocations: 10.97 MB / 0.6125 GB, free: 2.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.466e-05/1.71, allocations: 90.14 kB / 0.6126 GB, free: 2.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2725/1.983, allocations: 3.138 MB / 0.6156 GB, free: 46.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006649/1.983, allocations: 26.89 kB / 0.6157 GB, free: 46.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00278/1.986, allocations: 3.425 MB / 0.619 GB, free: 45.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001455/1.988, allocations: 1.154 MB / 0.6201 GB, free: 45.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003405/1.988, allocations: 0 / 0.6201 GB, free: 45.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002593/1.988, allocations: 477.5 kB / 0.6206 GB, free: 44.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003943/1.992, allocations: 1.635 MB / 0.6222 GB, free: 44.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004368/1.997, allocations: 2.877 MB / 0.625 GB, free: 43.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004636/2.001, allocations: 2.195 MB / 0.6271 GB, free: 43.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.768e-05/2.001, allocations: 12.72 kB / 0.6271 GB, free: 43.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=543) (initialization): time 0.01268/2.014, allocations: 5.391 MB / 0.6324 GB, free: 42.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.392e-05/2.014, allocations: 21.31 kB / 0.6324 GB, free: 42.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-05/2.014, allocations: 44.69 kB / 0.6325 GB, free: 42.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00331/2.018, allocations: 0.8911 MB / 0.6333 GB, free: 42.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006643/2.024, allocations: 0.9544 MB / 0.6343 GB, free: 42.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/2.042, allocations: 11.82 MB / 0.6458 GB, free: 37.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/2.047, allocations: 142 kB / 0.646 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000507/2.048, allocations: 178.1 kB / 0.6461 GB, free: 37.64 MB / 362.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 (471): * Single equations (assignments): 463 * 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,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008328/2.049, allocations: 223.4 kB / 0.6463 GB, free: 37.51 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01081/2.06, allocations: 4.672 MB / 0.6509 GB, free: 36.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/2.061, allocations: 433.7 kB / 0.6513 GB, free: 36.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/2.073, allocations: 4.901 MB / 0.6561 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.558e-05/2.073, allocations: 31.72 kB / 0.6561 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.996e-05/2.073, allocations: 16.41 kB / 0.6561 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.354e-05/2.073, allocations: 18.33 kB / 0.6562 GB, free: 36.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03033/2.103, allocations: 12.91 MB / 0.6688 GB, free: 33.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.555e-05/2.103, allocations: 11.09 kB / 0.6688 GB, free: 33.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004295/2.108, allocations: 0.5629 MB / 0.6693 GB, free: 33.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004001/2.112, allocations: 1.063 MB / 0.6704 GB, free: 33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003124/2.112, allocations: 31.88 kB / 0.6704 GB, free: 32.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02224/2.134, allocations: 15.15 MB / 0.6852 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.54e-05/2.134, allocations: 14.16 kB / 0.6852 GB, free: 22.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/2.149, allocations: 8.719 MB / 0.6937 GB, free: 16.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00299/2.153, allocations: 0.903 MB / 0.6946 GB, free: 16.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009986/2.154, allocations: 24.53 kB / 0.6946 GB, free: 16.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003611/2.157, allocations: 150 kB / 0.6948 GB, free: 16.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007983/2.158, allocations: 295.4 kB / 0.6951 GB, free: 16.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002985/2.158, allocations: 105.9 kB / 0.6952 GB, free: 16.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004634/2.163, allocations: 2.276 MB / 0.6974 GB, free: 15.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.683e-06/2.163, allocations: 0 / 0.6974 GB, free: 15.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007202/2.17, allocations: 1.26 MB / 0.6986 GB, free: 15.16 MB / 362.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 (264): * Single equations (assignments): 257 * 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.01684/2.187, allocations: 12.16 MB / 0.7105 GB, free: 6.898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01107/2.198, allocations: 5.186 MB / 0.7155 GB, free: 4.375 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.356e-05/2.198, allocations: 4.375 kB / 0.7155 GB, free: 4.375 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008615/2.207, allocations: 3.546 MB / 0.719 GB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006756/2.214, allocations: 0.774 MB / 0.7198 GB, free: 1.898 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04433/2.258, allocations: 13.59 MB / 0.733 GB, free: 6.172 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0118/2.27, allocations: 5.002 MB / 0.7379 GB, free: 2.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009766/2.28, allocations: 3.163 MB / 0.741 GB, free: 15.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/2.28, allocations: 0 / 0.741 GB, free: 15.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.59/7.869, allocations: 343 MB / 1.076 GB, free: 71.37 MB / 410.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