Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.577/1.577, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.41e-05/4.439e-05, allocations: 4 kB / 225.1 MB, free: 2.68 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2742, allocations: 38.75 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.421/0.6953, allocations: 122.1 MB / 386 MB, free: 53.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.6956, allocations: 81.12 kB / 386 MB, free: 53.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4569/1.152, allocations: 124.1 MB / 0.4982 GB, free: 4.102 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.153, allocations: 0 / 0.4982 GB, free: 4.102 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006568/1.153, allocations: 143.7 kB / 0.4984 GB, free: 3.961 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.2828/1.436, allocations: 5.236 MB / 0.5035 GB, free: 35.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/1.436, allocations: 9.812 kB / 0.5035 GB, free: 35.95 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00322/1.439, allocations: 0.7345 MB / 0.5042 GB, free: 35.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006173/1.446, allocations: 0.8887 MB / 0.5051 GB, free: 35.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/1.459, allocations: 3.935 MB / 0.5089 GB, free: 35.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004552/1.459, allocations: 403.5 kB / 0.5093 GB, free: 35.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002153/1.461, allocations: 0.5315 MB / 0.5098 GB, free: 35.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.021/1.483, allocations: 6.698 MB / 0.5164 GB, free: 34.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002871/1.483, allocations: 16.92 kB / 0.5164 GB, free: 34.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001313/1.484, allocations: 229.3 kB / 0.5166 GB, free: 34.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002672/1.484, allocations: 234.5 kB / 0.5168 GB, free: 34.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/1.501, allocations: 5.132 MB / 0.5218 GB, free: 34.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0553/1.556, allocations: 22.49 MB / 0.5438 GB, free: 29.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006678/1.563, allocations: 4.299 MB / 0.548 GB, free: 27.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004749/1.568, allocations: 1.972 MB / 0.5499 GB, free: 27.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005813/1.568, allocations: 155.9 kB / 0.5501 GB, free: 27.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/1.568, allocations: 62.16 kB / 0.5501 GB, free: 27.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=245): time 5.51e-06/1.568, allocations: 3.469 kB / 0.5501 GB, free: 27.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=299): time 0.04814/1.617, allocations: 12.37 MB / 0.5622 GB, free: 23.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/1.617, allocations: 87.95 kB / 0.5623 GB, free: 23.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008908/1.626, allocations: 2.841 MB / 0.5651 GB, free: 22.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007519/1.626, allocations: 77.08 kB / 0.5651 GB, free: 22.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002458/1.629, allocations: 2.338 MB / 0.5674 GB, free: 20.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/1.631, allocations: 1.019 MB / 0.5684 GB, free: 19.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/1.631, allocations: 74.03 kB / 0.5685 GB, free: 19.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002945/1.631, allocations: 458.9 kB / 0.5689 GB, free: 19.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004908/1.636, allocations: 1.497 MB / 0.5704 GB, free: 18.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00592/1.642, allocations: 2.567 MB / 0.5729 GB, free: 16.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006276/1.648, allocations: 1.967 MB / 0.5748 GB, free: 16.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.959e-05/1.649, allocations: 7.156 kB / 0.5748 GB, free: 16.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=464) (initialization): time 0.01819/1.667, allocations: 5.207 MB / 0.5799 GB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-05/1.667, allocations: 23.42 kB / 0.5799 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/1.667, allocations: 39.25 kB / 0.58 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005048/1.672, allocations: 0.9396 MB / 0.5809 GB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0071/1.679, allocations: 0.8305 MB / 0.5817 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01866/1.698, allocations: 10.74 MB / 0.5922 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005141/1.703, allocations: 225.3 kB / 0.5924 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008196/1.704, allocations: 157.8 kB / 0.5925 GB, free: 22.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 153 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 394 * 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,(4,93.8%) 19,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001033/1.705, allocations: 319.6 kB / 0.5928 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.706, allocations: 388.6 kB / 0.5932 GB, free: 22.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/1.718, allocations: 4.678 MB / 0.5978 GB, free: 20.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/1.718, allocations: 32.8 kB / 0.5978 GB, free: 20.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-05/1.718, allocations: 15.06 kB / 0.5978 GB, free: 20.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.657e-05/1.718, allocations: 15.38 kB / 0.5978 GB, free: 20.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02864/1.747, allocations: 11 MB / 0.6086 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01056/1.758, allocations: 3.778 MB / 0.6123 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004216/1.762, allocations: 0.4945 MB / 0.6128 GB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00475/1.767, allocations: 1.039 MB / 0.6138 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004655/1.767, allocations: 71.17 kB / 0.6138 GB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02668/1.794, allocations: 14.31 MB / 0.6278 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.6e-05/1.794, allocations: 15.94 kB / 0.6278 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01878/1.813, allocations: 7.705 MB / 0.6353 GB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003149/1.816, allocations: 0.7822 MB / 0.6361 GB, free: 3.371 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/1.817, allocations: 67.94 kB / 0.6362 GB, free: 3.309 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00404/1.821, allocations: 191.8 kB / 0.6364 GB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008551/1.822, allocations: 233.9 kB / 0.6366 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003199/1.822, allocations: 91.5 kB / 0.6367 GB, free: 2.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006017/1.828, allocations: 2.151 MB / 0.6388 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.828, allocations: 0 / 0.6388 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008078/1.836, allocations: 1.234 MB / 0.64 GB, free: 0 / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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,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 (232): * Single equations (assignments): 224 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2875/2.124, allocations: 10.46 MB / 0.6502 GB, free: 58.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01178/2.136, allocations: 4.779 MB / 0.6549 GB, free: 57.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/2.136, allocations: 3.094 kB / 0.6549 GB, free: 57.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0081/2.144, allocations: 3.055 MB / 0.6578 GB, free: 56.62 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006472/2.151, allocations: 0.8376 MB / 0.6587 GB, free: 56.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02808/2.179, allocations: 9.872 MB / 0.6683 GB, free: 54.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005035/2.184, allocations: 3.502 MB / 0.6717 GB, free: 53.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004568/2.188, allocations: 2.139 MB / 0.6738 GB, free: 53.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.613e-06/2.188, allocations: 3.406 kB / 0.6738 GB, free: 53.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.007/7.196, allocations: 221.1 MB / 0.8897 GB, free: 17.85 MB / 394.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_res.mat does not exist to compare? outputFormat=mat