Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.209/2.209, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.107e-05/3.105e-05, allocations: 3.938 kB / 249.8 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 44.5 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6264/0.732, allocations: 160.5 MB / 454.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004098/0.7325, allocations: 100.5 kB / 454.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.676/3.409, allocations: 390.3 MB / 0.8253 GB, free: 38.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.877e-06/3.409, allocations: 0 / 0.8253 GB, free: 38.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001479/3.41, allocations: 266.6 kB / 0.8256 GB, free: 38.05 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.05972/3.47, allocations: 10.26 MB / 0.8356 GB, free: 34.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/3.47, allocations: 9.969 kB / 0.8356 GB, free: 34.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04282/3.513, allocations: 4.377 MB / 0.8399 GB, free: 34.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03616/3.549, allocations: 8.848 MB / 0.8485 GB, free: 32.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/3.55, allocations: 373.3 kB / 0.8489 GB, free: 32.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005293/3.555, allocations: 0.6392 MB / 0.8495 GB, free: 32.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0427/3.598, allocations: 13.25 MB / 0.8625 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05759/3.656, allocations: 15.52 MB / 0.8776 GB, free: 31.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006889/3.657, allocations: 16.34 kB / 0.8776 GB, free: 31.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004455/3.661, allocations: 12.19 kB / 0.8776 GB, free: 31.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001207/3.662, allocations: 0.6915 MB / 0.8783 GB, free: 31.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1652/3.828, allocations: 56.59 MB / 0.9336 GB, free: 3.078 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0605/3.888, allocations: 17.75 MB / 0.9509 GB, free: 2.059 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4636/4.352, allocations: 6.731 MB / 0.9575 GB, free: 53.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06556/4.417, allocations: 19.16 MB / 0.9762 GB, free: 52.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/4.418, allocations: 88.31 kB / 0.9763 GB, free: 52.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=624): time 1.169e-05/4.418, allocations: 0 / 0.9763 GB, free: 52.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=657): time 0.09382/4.511, allocations: 25.28 MB / 1.001 GB, free: 48.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/4.512, allocations: 134.4 kB / 1.001 GB, free: 48.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/4.522, allocations: 3.358 MB / 1.004 GB, free: 48.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001639/4.524, allocations: 28.89 kB / 1.004 GB, free: 48.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004347/4.528, allocations: 4.613 MB / 1.009 GB, free: 46.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003891/4.532, allocations: 2.12 MB / 1.011 GB, free: 44.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/4.534, allocations: 0 / 1.011 GB, free: 44.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001024/4.535, allocations: 0.6116 MB / 1.012 GB, free: 44.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01279/4.548, allocations: 4.355 MB / 1.016 GB, free: 44.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/4.563, allocations: 6.347 MB / 1.022 GB, free: 42.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02252/4.586, allocations: 6.448 MB / 1.028 GB, free: 41.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001302/4.586, allocations: 16.47 kB / 1.028 GB, free: 41.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=995) (initialization): time 0.05036/4.636, allocations: 13.61 MB / 1.042 GB, free: 36.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.887e-05/4.636, allocations: 30.62 kB / 1.042 GB, free: 36.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/4.636, allocations: 60.75 kB / 1.042 GB, free: 36.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009544/4.646, allocations: 2.372 MB / 1.044 GB, free: 35.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01468/4.661, allocations: 1.551 MB / 1.046 GB, free: 35.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/4.679, allocations: 10.39 MB / 1.056 GB, free: 28.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01324/4.692, allocations: 435.6 kB / 1.056 GB, free: 28.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002867/4.695, allocations: 347.3 kB / 1.056 GB, free: 28.56 MB / 442.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.004697/4.7, allocations: 372.7 kB / 1.057 GB, free: 28.39 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04481/4.744, allocations: 11.25 MB / 1.068 GB, free: 23.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004215/4.749, allocations: 0.5155 MB / 1.068 GB, free: 23.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04558/4.794, allocations: 12.17 MB / 1.08 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03918/4.834, allocations: 11 MB / 1.091 GB, free: 5.973 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.405e-05/4.834, allocations: 4 kB / 1.091 GB, free: 5.969 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002071/4.834, allocations: 29.69 kB / 1.091 GB, free: 5.965 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5532/5.387, allocations: 30.07 MB / 1.12 GB, free: 61.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001152/5.387, allocations: 4.938 kB / 1.12 GB, free: 61.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01079/5.398, allocations: 0.9136 MB / 1.121 GB, free: 61.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01293/5.411, allocations: 2.626 MB / 1.124 GB, free: 61.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001856/5.413, allocations: 77.2 kB / 1.124 GB, free: 61.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03099/5.444, allocations: 15.81 MB / 1.139 GB, free: 54.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005793/5.45, allocations: 2.737 MB / 1.142 GB, free: 53.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05443/5.504, allocations: 18.9 MB / 1.16 GB, free: 51.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006812/5.511, allocations: 1.565 MB / 1.162 GB, free: 51.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003425/5.515, allocations: 9.219 kB / 1.162 GB, free: 51.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00937/5.524, allocations: 292.5 kB / 1.162 GB, free: 51.24 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003041/5.527, allocations: 0.5013 MB / 1.163 GB, free: 51.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001845/5.529, allocations: 179 kB / 1.163 GB, free: 51.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007982/5.537, allocations: 2.425 MB / 1.165 GB, free: 51.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.032e-06/5.537, allocations: 1.875 kB / 1.165 GB, free: 51.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01473/5.552, allocations: 1.852 MB / 1.167 GB, free: 51.05 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.0655/5.618, allocations: 21.01 MB / 1.188 GB, free: 47.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03257/5.65, allocations: 10.77 MB / 1.198 GB, free: 46.95 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/5.65, allocations: 0 / 1.198 GB, free: 46.95 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01972/5.67, allocations: 5.852 MB / 1.204 GB, free: 44.42 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/5.681, allocations: 0.8366 MB / 1.205 GB, free: 44.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08202/5.763, allocations: 21.63 MB / 1.226 GB, free: 35.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01841/5.782, allocations: 6.998 MB / 1.233 GB, free: 33.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01396/5.796, allocations: 1.69 MB / 1.234 GB, free: 32.23 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01308/5.809, allocations: 4.131 MB / 1.238 GB, free: 28.39 MB / 458.7 MB Notification: Performance of SimCode: time 1.903e-06/5.809, allocations: 0 / 1.238 GB, free: 28.39 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9231/6.732, allocations: 167.3 MB / 1.402 GB, free: 23.34 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002558/6.732, allocations: 207.1 kB / 1.402 GB, free: 23.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.47/17.2, allocations: 0 / 1.402 GB, free: 23.06 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat