Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.301/2.301, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.405e-05/2.423e-05, allocations: 2.75 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.09983, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5985/0.6983, allocations: 129.6 MB / 423.9 MB, free: 8.492 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.6987, allocations: 87.45 kB / 424 MB, free: 8.449 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9317/1.63, allocations: 128.8 MB / 0.5398 GB, free: 71.15 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.631, allocations: 0 / 0.5398 GB, free: 71.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006644/1.631, allocations: 152.6 kB / 0.5399 GB, free: 71.12 MB / 394.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.02509/1.656, allocations: 5.384 MB / 0.5452 GB, free: 69.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/1.656, allocations: 8.344 kB / 0.5452 GB, free: 69.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0104/1.667, allocations: 1.147 MB / 0.5463 GB, free: 68.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02062/1.687, allocations: 4.87 MB / 0.5511 GB, free: 67.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003905/1.688, allocations: 193.6 kB / 0.5513 GB, free: 67.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002376/1.69, allocations: 339.1 kB / 0.5516 GB, free: 67.88 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01865/1.709, allocations: 5.215 MB / 0.5567 GB, free: 67.22 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02412/1.733, allocations: 6.193 MB / 0.5627 GB, free: 64.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002712/1.733, allocations: 14.64 kB / 0.5627 GB, free: 64.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001485/1.735, allocations: 3.75 kB / 0.5627 GB, free: 64.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003324/1.735, allocations: 250.6 kB / 0.563 GB, free: 64.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0669/1.802, allocations: 22.74 MB / 0.5852 GB, free: 48.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/1.815, allocations: 8.486 MB / 0.5935 GB, free: 39.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005908/1.821, allocations: 2.133 MB / 0.5956 GB, free: 37.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/1.844, allocations: 6.763 MB / 0.6022 GB, free: 32.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/1.844, allocations: 64.52 kB / 0.6022 GB, free: 32.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=238): time 6.533e-06/1.844, allocations: 0 / 0.6022 GB, free: 32.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=289): time 0.04261/1.887, allocations: 10.26 MB / 0.6122 GB, free: 22.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/1.887, allocations: 81.66 kB / 0.6123 GB, free: 22.67 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006521/1.894, allocations: 2.38 MB / 0.6146 GB, free: 20.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006615/1.894, allocations: 25.7 kB / 0.6147 GB, free: 20.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.897, allocations: 2.668 MB / 0.6173 GB, free: 17.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/1.898, allocations: 0.9585 MB / 0.6182 GB, free: 16.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/1.899, allocations: 0 / 0.6182 GB, free: 16.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002834/1.899, allocations: 457.9 kB / 0.6186 GB, free: 16.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003841/1.903, allocations: 1.397 MB / 0.62 GB, free: 14.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004856/1.908, allocations: 2.555 MB / 0.6225 GB, free: 11.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006658/1.914, allocations: 2.028 MB / 0.6245 GB, free: 9.617 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.248e-05/1.914, allocations: 12 kB / 0.6245 GB, free: 9.605 MB / 394.7 MB Notification: Performance of matching and sorting (n=475) (initialization): time 0.01816/1.933, allocations: 5.116 MB / 0.6295 GB, free: 4.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.792e-05/1.933, allocations: 20 kB / 0.6295 GB, free: 4.391 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.855e-05/1.933, allocations: 40 kB / 0.6295 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004079/1.937, allocations: 0.8515 MB / 0.6304 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007491/1.944, allocations: 0.8619 MB / 0.6312 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02109/1.966, allocations: 9.359 MB / 0.6404 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006091/1.972, allocations: 163.6 kB / 0.6405 GB, free: 8.758 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001159/1.973, allocations: 164 kB / 0.6407 GB, free: 8.598 MB / 410.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.001247/1.974, allocations: 219.8 kB / 0.6409 GB, free: 8.375 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01698/1.991, allocations: 4.134 MB / 0.6449 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002158/1.993, allocations: 347.8 kB / 0.6452 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3777/2.371, allocations: 4.399 MB / 0.6495 GB, free: 77.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/2.371, allocations: 27.5 kB / 0.6496 GB, free: 77.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.055e-05/2.371, allocations: 12.41 kB / 0.6496 GB, free: 77.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001078/2.372, allocations: 14.12 kB / 0.6496 GB, free: 77.83 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03676/2.408, allocations: 9.129 MB / 0.6585 GB, free: 76.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01403/2.422, allocations: 3.778 MB / 0.6622 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005236/2.428, allocations: 0.5016 MB / 0.6627 GB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005183/2.433, allocations: 0.9602 MB / 0.6636 GB, free: 76.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007411/2.434, allocations: 34.77 kB / 0.6637 GB, free: 76.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02518/2.459, allocations: 14.2 MB / 0.6775 GB, free: 68.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/2.459, allocations: 6.719 kB / 0.6775 GB, free: 68.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02014/2.479, allocations: 6.835 MB / 0.6842 GB, free: 67.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003384/2.483, allocations: 0.7329 MB / 0.6849 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001722/2.484, allocations: 18.5 kB / 0.6849 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005049/2.489, allocations: 138.5 kB / 0.6851 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001233/2.491, allocations: 216.3 kB / 0.6853 GB, free: 67.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004239/2.491, allocations: 84.58 kB / 0.6854 GB, free: 67.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005444/2.497, allocations: 1.74 MB / 0.6871 GB, free: 67.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.91e-07/2.497, allocations: 0 / 0.6871 GB, free: 67.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007795/2.505, allocations: 1.023 MB / 0.6881 GB, free: 67.42 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.02293/2.527, allocations: 8.818 MB / 0.6967 GB, free: 63.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01269/2.54, allocations: 4.434 MB / 0.701 GB, free: 61.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/2.54, allocations: 3.969 kB / 0.701 GB, free: 61.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009239/2.55, allocations: 2.872 MB / 0.7038 GB, free: 60.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006876/2.557, allocations: 0.6047 MB / 0.7044 GB, free: 60.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03852/2.595, allocations: 9.62 MB / 0.7138 GB, free: 56.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008459/2.604, allocations: 3.597 MB / 0.7173 GB, free: 55.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00693/2.611, allocations: 0.8052 MB / 0.7181 GB, free: 55.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006156/2.617, allocations: 2.195 MB / 0.7202 GB, free: 53.19 MB / 410.7 MB Notification: Performance of SimCode: time 1.794e-06/2.617, allocations: 4 kB / 0.7202 GB, free: 53.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3563/2.973, allocations: 82.11 MB / 0.8004 GB, free: 8.242 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0005854/2.974, allocations: 178.8 kB / 0.8006 GB, free: 8.043 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.111/10.08, allocations: 0 / 0.8006 GB, free: 8.043 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat