Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.316e-05, allocations: 4 kB / 255.5 MB, free: 2.59 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09484, allocations: 44.51 MB / 300 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5367/0.6316, allocations: 161.1 MB / 461.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000357/0.632, allocations: 98.44 kB / 461.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.886/2.518, allocations: 394.9 MB / 0.8361 GB, free: 10.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.699e-06/2.518, allocations: 4 kB / 0.8361 GB, free: 10.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001043/2.519, allocations: 261.6 kB / 0.8364 GB, free: 10.11 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.7199/3.239, allocations: 10.26 MB / 0.8464 GB, free: 24.71 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/3.24, allocations: 8.531 kB / 0.8464 GB, free: 24.71 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008747/3.248, allocations: 1.775 MB / 0.8481 GB, free: 24.57 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04028/3.289, allocations: 4.384 MB / 0.8524 GB, free: 24 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03542/3.324, allocations: 8.859 MB / 0.8611 GB, free: 23.47 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001452/3.326, allocations: 0.8313 MB / 0.8619 GB, free: 23.45 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005638/3.331, allocations: 1.085 MB / 0.8629 GB, free: 23.44 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05881/3.39, allocations: 17.1 MB / 0.8796 GB, free: 22.16 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006745/3.391, allocations: 15.34 kB / 0.8796 GB, free: 22.15 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004776/3.396, allocations: 478 kB / 0.8801 GB, free: 22.15 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001144/3.397, allocations: 0.6904 MB / 0.8808 GB, free: 22.12 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04629/3.443, allocations: 14.82 MB / 0.8952 GB, free: 22.07 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1497/3.593, allocations: 58.11 MB / 0.952 GB, free: 13.38 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03157/3.625, allocations: 16.98 MB / 0.9686 GB, free: 1.422 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01897/3.644, allocations: 6.305 MB / 0.9747 GB, free: 15.33 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05902/3.703, allocations: 18.91 MB / 0.9932 GB, free: 3.695 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/3.703, allocations: 88.72 kB / 0.9933 GB, free: 3.602 MB / 458.8 MB Notification: Performance of pre-optimization done (n=625): time 1.173e-05/3.703, allocations: 0 / 0.9933 GB, free: 3.602 MB / 458.8 MB Notification: Performance of matching and sorting (n=658): time 0.5144/4.217, allocations: 23.51 MB / 1.016 GB, free: 68.84 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005775/4.223, allocations: 2.933 MB / 1.019 GB, free: 67.29 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/4.236, allocations: 3.882 MB / 1.023 GB, free: 67 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001645/4.238, allocations: 115.3 kB / 1.023 GB, free: 66.97 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004759/4.242, allocations: 4.611 MB / 1.028 GB, free: 66.07 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003956/4.246, allocations: 2.197 MB / 1.03 GB, free: 64.66 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00205/4.249, allocations: 141.7 kB / 1.03 GB, free: 64.66 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0009249/4.25, allocations: 0.6151 MB / 1.03 GB, free: 64.34 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01254/4.262, allocations: 4.365 MB / 1.035 GB, free: 64.33 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01434/4.276, allocations: 6.345 MB / 1.041 GB, free: 62.07 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01406/4.291, allocations: 5.496 MB / 1.046 GB, free: 61.95 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001322/4.291, allocations: 20.34 kB / 1.046 GB, free: 61.95 MB / 474.8 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03825/4.329, allocations: 12.93 MB / 1.059 GB, free: 61.27 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.411e-05/4.329, allocations: 33.69 kB / 1.059 GB, free: 61.27 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/4.329, allocations: 62.19 kB / 1.059 GB, free: 61.27 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00818/4.338, allocations: 2.391 MB / 1.061 GB, free: 61.21 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/4.35, allocations: 1.524 MB / 1.063 GB, free: 61.21 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/4.366, allocations: 10.39 MB / 1.073 GB, free: 56.41 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01172/4.377, allocations: 0.527 MB / 1.073 GB, free: 56.39 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002307/4.38, allocations: 343 kB / 1.074 GB, free: 56.39 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 722 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.003568/4.383, allocations: 0.5158 MB / 1.074 GB, free: 56.25 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002603/4.386, allocations: 0.5465 MB / 1.075 GB, free: 55.95 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03432/4.42, allocations: 11.72 MB / 1.086 GB, free: 55.34 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0313/4.452, allocations: 10.36 MB / 1.096 GB, free: 53.57 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.466e-05/4.452, allocations: 3.031 kB / 1.096 GB, free: 53.57 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001826/4.452, allocations: 31.08 kB / 1.096 GB, free: 53.57 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08974/4.542, allocations: 30.41 MB / 1.126 GB, free: 40 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000118/4.542, allocations: 6.625 kB / 1.126 GB, free: 40 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008552/4.55, allocations: 0.8757 MB / 1.127 GB, free: 39.98 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01022/4.561, allocations: 2.65 MB / 1.13 GB, free: 39.18 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002126/4.563, allocations: 153.9 kB / 1.13 GB, free: 39.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02512/4.588, allocations: 15.88 MB / 1.145 GB, free: 27.8 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004956/4.593, allocations: 2.803 MB / 1.148 GB, free: 25.64 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04845/4.642, allocations: 18.32 MB / 1.166 GB, free: 13 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00634/4.648, allocations: 1.585 MB / 1.167 GB, free: 11.57 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003078/4.651, allocations: 107.9 kB / 1.167 GB, free: 11.46 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008344/4.66, allocations: 336.9 kB / 1.168 GB, free: 11.23 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002645/4.662, allocations: 0.4949 MB / 1.168 GB, free: 10.92 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001542/4.664, allocations: 190.8 kB / 1.168 GB, free: 10.76 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007724/4.672, allocations: 2.882 MB / 1.171 GB, free: 8.168 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.052e-06/4.672, allocations: 0 / 1.171 GB, free: 8.168 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0136/4.685, allocations: 2.095 MB / 1.173 GB, free: 6.09 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (460): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {5 12,6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.4561/5.141, allocations: 20.51 MB / 1.193 GB, free: 64.91 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02843/5.17, allocations: 10.73 MB / 1.204 GB, free: 64.38 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/5.17, allocations: 3.281 kB / 1.204 GB, free: 64.38 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01667/5.187, allocations: 5.82 MB / 1.21 GB, free: 63.83 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01079/5.198, allocations: 1.077 MB / 1.211 GB, free: 63.8 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0749/5.272, allocations: 21.92 MB / 1.232 GB, free: 60.28 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01698/5.29, allocations: 7 MB / 1.239 GB, free: 59.35 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01235/5.302, allocations: 1.711 MB / 1.24 GB, free: 59.21 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01154/5.314, allocations: 4.143 MB / 1.245 GB, free: 59.21 MB / 474.8 MB Notification: Performance of SimCode: time 1.373e-06/5.314, allocations: 0 / 1.245 GB, free: 59.21 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8101/6.124, allocations: 181.6 MB / 1.422 GB, free: 66.13 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003328/6.124, allocations: 246.4 kB / 1.422 GB, free: 65.8 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.911/16.04, allocations: 0 / 1.422 GB, free: 65.8 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat