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 2.018/2.018, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.735e-05, allocations: 4 kB / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4688/0.4689, allocations: 44.49 MB / 294.3 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6006/1.07, allocations: 160.5 MB / 454.7 MB, free: 69.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003615/1.07, allocations: 97.34 kB / 454.8 MB, free: 69.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.922/2.992, allocations: 390.3 MB / 0.8253 GB, free: 26.17 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.445e-06/2.992, allocations: 3.938 kB / 0.8253 GB, free: 26.17 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009462/2.993, allocations: 263.8 kB / 0.8255 GB, free: 26.12 MB / 410.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.04956/3.043, allocations: 10.26 MB / 0.8356 GB, free: 17.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/3.043, allocations: 8.031 kB / 0.8356 GB, free: 17.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04151/3.085, allocations: 4.384 MB / 0.8398 GB, free: 13.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08469/3.169, allocations: 8.839 MB / 0.8485 GB, free: 4.434 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001441/3.171, allocations: 368 kB / 0.8488 GB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007917/3.179, allocations: 0.6405 MB / 0.8495 GB, free: 3.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0494/3.228, allocations: 13.25 MB / 0.8624 GB, free: 6.156 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.435/3.663, allocations: 15.52 MB / 0.8776 GB, free: 33.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000751/3.664, allocations: 17.53 kB / 0.8776 GB, free: 33.44 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004298/3.668, allocations: 10.62 kB / 0.8776 GB, free: 33.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001109/3.67, allocations: 0.687 MB / 0.8783 GB, free: 33.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1463/3.816, allocations: 56.59 MB / 0.9335 GB, free: 23.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03079/3.847, allocations: 17.59 MB / 0.9507 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0153/3.862, allocations: 6.286 MB / 0.9568 GB, free: 9.551 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05449/3.917, allocations: 19.18 MB / 0.9756 GB, free: 16.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.429e-05/3.917, allocations: 84.31 kB / 0.9756 GB, free: 16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=624): time 1.08e-05/3.917, allocations: 2.938 kB / 0.9756 GB, free: 16 MB / 442.7 MB Notification: Performance of matching and sorting (n=657): time 0.08897/4.006, allocations: 25.27 MB / 1 GB, free: 4.621 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/4.006, allocations: 135.3 kB / 1 GB, free: 4.523 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/4.017, allocations: 3.354 MB / 1.004 GB, free: 3.168 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001679/4.019, allocations: 25.7 kB / 1.004 GB, free: 3.137 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005638/4.024, allocations: 4.61 MB / 1.008 GB, free: 15.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004601/4.029, allocations: 2.121 MB / 1.01 GB, free: 13.97 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002131/4.031, allocations: 0 / 1.01 GB, free: 13.97 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001231/4.033, allocations: 0.616 MB / 1.011 GB, free: 13.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01243/4.045, allocations: 4.357 MB / 1.015 GB, free: 11.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/4.06, allocations: 6.342 MB / 1.021 GB, free: 7.254 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02193/4.082, allocations: 6.451 MB / 1.028 GB, free: 1.934 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001221/4.083, allocations: 24 kB / 1.028 GB, free: 1.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=995) (initialization): time 0.4536/4.536, allocations: 14.7 MB / 1.042 GB, free: 65.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.053e-05/4.536, allocations: 36.81 kB / 1.042 GB, free: 65.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000179/4.537, allocations: 60.22 kB / 1.042 GB, free: 65.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008982/4.545, allocations: 2.377 MB / 1.044 GB, free: 65.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/4.558, allocations: 1.551 MB / 1.046 GB, free: 65.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02009/4.578, allocations: 10.38 MB / 1.056 GB, free: 61.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01974/4.598, allocations: 437.6 kB / 1.057 GB, free: 61.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004234/4.602, allocations: 344.5 kB / 1.057 GB, free: 61.33 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smeeQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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 (790): * Single equations (assignments): 721 * 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.007013/4.609, allocations: 373.4 kB / 1.057 GB, free: 61.21 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04681/4.656, allocations: 11.25 MB / 1.068 GB, free: 60.73 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003434/4.66, allocations: 0.52 MB / 1.069 GB, free: 60.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0404/4.7, allocations: 12.17 MB / 1.081 GB, free: 60.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03348/4.734, allocations: 11 MB / 1.091 GB, free: 59.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.5e-05/4.734, allocations: 8.984 kB / 1.091 GB, free: 59.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001889/4.734, allocations: 28.22 kB / 1.091 GB, free: 59.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08374/4.818, allocations: 29.63 MB / 1.12 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-05/4.818, allocations: 6.969 kB / 1.12 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008102/4.826, allocations: 0.9149 MB / 1.121 GB, free: 52.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009125/4.835, allocations: 2.621 MB / 1.124 GB, free: 52.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001703/4.837, allocations: 78.27 kB / 1.124 GB, free: 52.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02398/4.861, allocations: 15.82 MB / 1.139 GB, free: 40.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004755/4.866, allocations: 2.732 MB / 1.142 GB, free: 38.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0469/4.913, allocations: 18.91 MB / 1.16 GB, free: 26.64 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005931/4.919, allocations: 1.572 MB / 1.162 GB, free: 25.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003154/4.922, allocations: 11.84 kB / 1.162 GB, free: 25.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007939/4.93, allocations: 284.2 kB / 1.162 GB, free: 25.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00262/4.933, allocations: 0.5041 MB / 1.163 GB, free: 24.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001235/4.934, allocations: 183.3 kB / 1.163 GB, free: 24.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006474/4.94, allocations: 2.427 MB / 1.165 GB, free: 22.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.92e-07/4.941, allocations: 0 / 1.165 GB, free: 22.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01279/4.953, allocations: 1.847 MB / 1.167 GB, free: 20.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (459): * Single equations (assignments): 391 * 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 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.04998/5.003, allocations: 21 MB / 1.188 GB, free: 1.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04028/5.044, allocations: 11.37 MB / 1.199 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/5.044, allocations: 1.125 kB / 1.199 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01828/5.062, allocations: 5.858 MB / 1.204 GB, free: 4.523 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009332/5.071, allocations: 0.8356 MB / 1.205 GB, free: 3.883 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5159/5.587, allocations: 22.21 MB / 1.227 GB, free: 81.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0232/5.611, allocations: 7.005 MB / 1.234 GB, free: 80.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01613/5.627, allocations: 1.688 MB / 1.235 GB, free: 80.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01527/5.642, allocations: 4.134 MB / 1.239 GB, free: 80.05 MB / 474.7 MB Notification: Performance of SimCode: time 1.924e-06/5.642, allocations: 0 / 1.239 GB, free: 80.05 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7971/6.439, allocations: 167.3 MB / 1.403 GB, free: 60.98 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/6.44, allocations: 207.5 kB / 1.403 GB, free: 60.69 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.012/15.45, allocations: 0 / 1.403 GB, free: 60.69 MB / 474.7 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