Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.914/1.914, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.131e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2987, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2178/0.5165, allocations: 129.6 MB / 423.8 MB, free: 212 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/0.5169, allocations: 87.94 kB / 423.9 MB, free: 124 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6775/1.194, allocations: 128.8 MB / 0.5397 GB, free: 160 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.194, allocations: 0 / 0.5397 GB, free: 160 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000527/1.195, allocations: 143.9 kB / 0.5398 GB, free: 16 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02257/1.218, allocations: 5.381 MB / 0.5451 GB, free: 10.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/1.218, allocations: 8.031 kB / 0.5451 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009083/1.227, allocations: 1.152 MB / 0.5462 GB, free: 9.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01856/1.245, allocations: 4.871 MB / 0.551 GB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003418/1.246, allocations: 184 kB / 0.5512 GB, free: 4.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001935/1.248, allocations: 339.8 kB / 0.5515 GB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3017/1.549, allocations: 5.22 MB / 0.5566 GB, free: 32.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/1.572, allocations: 6.194 MB / 0.5626 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002775/1.572, allocations: 12.88 kB / 0.5626 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001265/1.574, allocations: 7.25 kB / 0.5626 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002811/1.574, allocations: 248.9 kB / 0.5629 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05642/1.63, allocations: 22.74 MB / 0.5851 GB, free: 27.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/1.641, allocations: 8.492 MB / 0.5934 GB, free: 21.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005121/1.646, allocations: 2.139 MB / 0.5955 GB, free: 21.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01892/1.665, allocations: 6.746 MB / 0.6021 GB, free: 20.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/1.665, allocations: 58 kB / 0.6021 GB, free: 20.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 5.711e-06/1.665, allocations: 3.656 kB / 0.6021 GB, free: 20.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=289): time 0.03293/1.698, allocations: 10.25 MB / 0.6121 GB, free: 18.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/1.698, allocations: 82.06 kB / 0.6122 GB, free: 18.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005199/1.704, allocations: 2.375 MB / 0.6145 GB, free: 18.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006087/1.704, allocations: 25.7 kB / 0.6145 GB, free: 18.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001816/1.706, allocations: 2.523 MB / 0.617 GB, free: 16.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/1.707, allocations: 0.9453 MB / 0.6179 GB, free: 16.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/1.708, allocations: 3.781 kB / 0.6179 GB, free: 16.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000222/1.708, allocations: 455.2 kB / 0.6184 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002978/1.711, allocations: 1.404 MB / 0.6197 GB, free: 15.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003664/1.715, allocations: 2.561 MB / 0.6222 GB, free: 13.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005416/1.72, allocations: 2.02 MB / 0.6242 GB, free: 12.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-05/1.72, allocations: 10.56 kB / 0.6242 GB, free: 12.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=475) (initialization): time 0.0134/1.734, allocations: 4.942 MB / 0.629 GB, free: 10.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.966e-05/1.734, allocations: 20.84 kB / 0.6291 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-05/1.734, allocations: 42.69 kB / 0.6291 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003295/1.737, allocations: 0.8437 MB / 0.6299 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006225/1.743, allocations: 0.8642 MB / 0.6308 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01479/1.758, allocations: 9.361 MB / 0.6399 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00492/1.763, allocations: 159.1 kB / 0.6401 GB, free: 4.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007132/1.764, allocations: 165 kB / 0.6402 GB, free: 4.023 MB / 378.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 (422): * Single equations (assignments): 413 * 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.0007634/1.765, allocations: 215.2 kB / 0.6404 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.011/1.776, allocations: 4.145 MB / 0.6445 GB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/1.777, allocations: 350.9 kB / 0.6448 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.789, allocations: 4.403 MB / 0.6491 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.469e-05/1.789, allocations: 25.66 kB / 0.6491 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.791e-05/1.789, allocations: 10.59 kB / 0.6491 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.484e-05/1.789, allocations: 13.73 kB / 0.6492 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0265/1.815, allocations: 9.212 MB / 0.6582 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0163/1.832, allocations: 3.782 MB / 0.6619 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005429/1.837, allocations: 0.4974 MB / 0.6623 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008629/1.846, allocations: 0.9638 MB / 0.6633 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007563/1.847, allocations: 31.27 kB / 0.6633 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03512/1.882, allocations: 14.21 MB / 0.6772 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-05/1.882, allocations: 8 kB / 0.6772 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.9, allocations: 6.825 MB / 0.6839 GB, free: 6.059 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002774/1.903, allocations: 0.7277 MB / 0.6846 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009364/1.904, allocations: 15.75 kB / 0.6846 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.907, allocations: 147.3 kB / 0.6847 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007678/1.908, allocations: 215.1 kB / 0.6849 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002961/1.908, allocations: 85.16 kB / 0.685 GB, free: 5.082 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004149/1.912, allocations: 1.741 MB / 0.6867 GB, free: 3.523 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.912, allocations: 0 / 0.6867 GB, free: 3.523 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006439/1.919, allocations: 1.028 MB / 0.6877 GB, free: 2.508 MB / 410.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.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 (226): * Single equations (assignments): 217 * 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.02291/1.942, allocations: 9.057 MB / 0.6966 GB, free: 10.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01106/1.953, allocations: 4.453 MB / 0.7009 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.953, allocations: 0 / 0.7009 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007508/1.96, allocations: 2.872 MB / 0.7037 GB, free: 4.039 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005297/1.966, allocations: 0.597 MB / 0.7043 GB, free: 3.562 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3812/2.347, allocations: 9.539 MB / 0.7136 GB, free: 73.21 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007251/2.354, allocations: 3.532 MB / 0.7171 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005234/2.36, allocations: 2.223 MB / 0.7192 GB, free: 72.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/2.36, allocations: 0 / 0.7192 GB, free: 72.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.095/7.455, allocations: 235.9 MB / 0.9496 GB, free: 65.05 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat