Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 205.8 MB / 218.9 MB, free: 9.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.849e-05/2.853e-05, allocations: 0 / 269.5 MB, free: 6.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.09978, allocations: 47.57 MB / 317 MB, free: 6.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5882/0.688, allocations: 167 MB / 484.1 MB, free: 1.957 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003536/0.6884, allocations: 95.31 kB / 484.2 MB, free: 1.906 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.231/2.92, allocations: 393.9 MB / 0.8575 GB, free: 27.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.574e-06/2.92, allocations: 4.344 kB / 0.8575 GB, free: 27.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001212/2.921, allocations: 262 kB / 0.8577 GB, free: 27.75 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.05301/2.974, allocations: 10.29 MB / 0.8678 GB, free: 24.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/2.974, allocations: 7.719 kB / 0.8678 GB, free: 24.47 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009785/2.984, allocations: 1.775 MB / 0.8695 GB, free: 24.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03774/3.022, allocations: 4.386 MB / 0.8738 GB, free: 23.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03331/3.055, allocations: 8.866 MB / 0.8824 GB, free: 22.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001245/3.056, allocations: 0.8295 MB / 0.8833 GB, free: 22.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005022/3.061, allocations: 1.082 MB / 0.8843 GB, free: 22.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05513/3.117, allocations: 17.11 MB / 0.901 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000729/3.117, allocations: 20.19 kB / 0.901 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00476/3.122, allocations: 473.4 kB / 0.9015 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001072/3.123, allocations: 0.6964 MB / 0.9022 GB, free: 21.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04421/3.167, allocations: 14.83 MB / 0.9167 GB, free: 21.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1591/3.327, allocations: 58.15 MB / 0.9734 GB, free: 10.61 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03153/3.358, allocations: 17 MB / 0.99 GB, free: 14.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01756/3.376, allocations: 6.182 MB / 0.9961 GB, free: 9.219 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06324/3.439, allocations: 19.2 MB / 1.015 GB, free: 10 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/3.439, allocations: 93.66 kB / 1.015 GB, free: 9.902 MB / 490.7 MB Notification: Performance of pre-optimization done (n=626): time 1.079e-05/3.439, allocations: 0 / 1.015 GB, free: 9.902 MB / 490.7 MB Notification: Performance of matching and sorting (n=659): time 0.4548/3.894, allocations: 23.88 MB / 1.038 GB, free: 68.74 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005532/3.9, allocations: 2.934 MB / 1.041 GB, free: 67.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/3.911, allocations: 3.896 MB / 1.045 GB, free: 66.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001541/3.912, allocations: 116.4 kB / 1.045 GB, free: 66.77 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003969/3.916, allocations: 4.605 MB / 1.05 GB, free: 64.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003705/3.92, allocations: 2.199 MB / 1.052 GB, free: 63.44 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/3.921, allocations: 145.1 kB / 1.052 GB, free: 63.44 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007008/3.922, allocations: 0.6113 MB / 1.052 GB, free: 63.12 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01109/3.933, allocations: 4.368 MB / 1.057 GB, free: 63.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01352/3.947, allocations: 6.35 MB / 1.063 GB, free: 60.84 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01386/3.961, allocations: 5.502 MB / 1.068 GB, free: 60.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/3.961, allocations: 14.62 kB / 1.068 GB, free: 60.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=997) (initialization): time 0.0363/3.997, allocations: 12.94 MB / 1.081 GB, free: 60.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.483e-05/3.997, allocations: 30.97 kB / 1.081 GB, free: 60.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/3.997, allocations: 61.44 kB / 1.081 GB, free: 60.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007941/4.005, allocations: 2.403 MB / 1.083 GB, free: 59.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01232/4.018, allocations: 1.525 MB / 1.085 GB, free: 59.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/4.033, allocations: 10.39 MB / 1.095 GB, free: 55.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0118/4.044, allocations: 0.5411 MB / 1.095 GB, free: 55.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002254/4.047, allocations: 341.1 kB / 1.096 GB, free: 55.16 MB / 490.7 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 (792): * Single equations (assignments): 723 * 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.002963/4.05, allocations: 0.5106 MB / 1.096 GB, free: 55.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002208/4.052, allocations: 0.548 MB / 1.097 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03395/4.086, allocations: 11.72 MB / 1.108 GB, free: 54.11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02825/4.114, allocations: 10.36 MB / 1.118 GB, free: 50.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.695e-05/4.114, allocations: 9.891 kB / 1.118 GB, free: 50.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001438/4.114, allocations: 29.06 kB / 1.118 GB, free: 50.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08185/4.196, allocations: 30.42 MB / 1.148 GB, free: 36.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.139e-05/4.196, allocations: 6.281 kB / 1.148 GB, free: 36.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008271/4.205, allocations: 0.8788 MB / 1.149 GB, free: 36.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009876/4.215, allocations: 2.651 MB / 1.152 GB, free: 35.63 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001765/4.216, allocations: 149.3 kB / 1.152 GB, free: 35.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02403/4.241, allocations: 15.87 MB / 1.167 GB, free: 24.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00479/4.245, allocations: 2.826 MB / 1.17 GB, free: 21.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04448/4.29, allocations: 18.36 MB / 1.188 GB, free: 4.711 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006241/4.296, allocations: 1.572 MB / 1.189 GB, free: 3.285 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003131/4.299, allocations: 104.8 kB / 1.19 GB, free: 3.184 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008485/4.308, allocations: 337.2 kB / 1.19 GB, free: 2.953 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002663/4.311, allocations: 0.5076 MB / 1.19 GB, free: 2.629 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001587/4.312, allocations: 179.5 kB / 1.191 GB, free: 2.473 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008557/4.321, allocations: 2.926 MB / 1.193 GB, free: 0 / 490.7 MB Notification: Performance of sort global known variables: time 1.002e-06/4.321, allocations: 336 / 1.193 GB, free: 0 / 490.7 MB Notification: Performance of remove unused functions: time 0.01528/4.336, allocations: 2.122 MB / 1.196 GB, free: 13.95 MB / 0.4948 GB 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 (461): * Single equations (assignments): 393 * 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.4608/4.797, allocations: 22.06 MB / 1.217 GB, free: 82.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03159/4.829, allocations: 10.75 MB / 1.228 GB, free: 81.74 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/4.829, allocations: 1.812 kB / 1.228 GB, free: 81.74 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01738/4.846, allocations: 5.822 MB / 1.233 GB, free: 81.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01048/4.857, allocations: 1.074 MB / 1.234 GB, free: 81.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07163/4.928, allocations: 22 MB / 1.256 GB, free: 77.65 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01515/4.944, allocations: 7.01 MB / 1.263 GB, free: 76.73 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01085/4.954, allocations: 1.705 MB / 1.264 GB, free: 76.63 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01055/4.965, allocations: 4.153 MB / 1.268 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/4.965, allocations: 3.969 kB / 1.268 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8031/5.768, allocations: 181.9 MB / 1.446 GB, free: 61.53 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/5.768, allocations: 243.3 kB / 1.446 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.492/15.26, allocations: 0 / 1.446 GB, free: 61.21 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat