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.629/2.629, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.788e-05, allocations: 2.75 kB / 249.8 MB, free: 5.242 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 44.5 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6703/0.7766, allocations: 160.5 MB / 454.8 MB, free: 9.895 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004488/0.7771, allocations: 100.9 kB / 454.9 MB, free: 9.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.922/3.699, allocations: 392.3 MB / 0.8273 GB, free: 38.63 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.246e-06/3.699, allocations: 3.812 kB / 0.8273 GB, free: 38.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001188/3.7, allocations: 254 kB / 0.8275 GB, free: 38.61 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.07532/3.776, allocations: 10.27 MB / 0.8376 GB, free: 35.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.088e-05/3.776, allocations: 10.75 kB / 0.8376 GB, free: 35.31 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0128/3.788, allocations: 1.33 MB / 0.8389 GB, free: 35.17 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06136/3.85, allocations: 4.382 MB / 0.8431 GB, free: 34.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0605/3.91, allocations: 8.84 MB / 0.8518 GB, free: 33.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002083/3.913, allocations: 489.2 kB / 0.8522 GB, free: 33.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008551/3.921, allocations: 0.6333 MB / 0.8529 GB, free: 33.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05219/3.973, allocations: 13.25 MB / 0.8658 GB, free: 33.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06347/4.037, allocations: 15.53 MB / 0.881 GB, free: 31.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008035/4.038, allocations: 17.06 kB / 0.881 GB, free: 31.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00519/4.043, allocations: 10.97 kB / 0.881 GB, free: 31.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00132/4.044, allocations: 0.6893 MB / 0.8817 GB, free: 31.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1862/4.231, allocations: 56.59 MB / 0.9369 GB, free: 492 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5425/4.773, allocations: 17.62 MB / 0.9541 GB, free: 45.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02697/4.8, allocations: 6.281 MB / 0.9603 GB, free: 45.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09062/4.891, allocations: 19.17 MB / 0.979 GB, free: 44.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/4.891, allocations: 91.19 kB / 0.9791 GB, free: 44.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=624): time 2.395e-05/4.891, allocations: 5.188 kB / 0.9791 GB, free: 44.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=657): time 0.1501/5.041, allocations: 25.26 MB / 1.004 GB, free: 40.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/5.041, allocations: 135 kB / 1.004 GB, free: 40.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/5.052, allocations: 3.359 MB / 1.007 GB, free: 40.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001691/5.053, allocations: 28.77 kB / 1.007 GB, free: 40.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004417/5.058, allocations: 4.613 MB / 1.012 GB, free: 38.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004052/5.062, allocations: 2.116 MB / 1.014 GB, free: 36.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001739/5.064, allocations: 0 / 1.014 GB, free: 36.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009219/5.065, allocations: 0.6157 MB / 1.014 GB, free: 36.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01346/5.078, allocations: 4.355 MB / 1.019 GB, free: 36.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01637/5.095, allocations: 6.336 MB / 1.025 GB, free: 34.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02523/5.12, allocations: 6.46 MB / 1.031 GB, free: 32.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/5.12, allocations: 16.38 kB / 1.031 GB, free: 32.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=995) (initialization): time 0.05731/5.177, allocations: 13.6 MB / 1.044 GB, free: 27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.968e-05/5.178, allocations: 36.53 kB / 1.044 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/5.178, allocations: 60 kB / 1.045 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01063/5.188, allocations: 2.371 MB / 1.047 GB, free: 26.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01601/5.204, allocations: 1.554 MB / 1.048 GB, free: 26.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01872/5.223, allocations: 10.38 MB / 1.058 GB, free: 18.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01333/5.237, allocations: 437 kB / 1.059 GB, free: 18.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002647/5.239, allocations: 341.3 kB / 1.059 GB, free: 18.9 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.004448/5.244, allocations: 384.5 kB / 1.06 GB, free: 18.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003169/5.247, allocations: 0.5149 MB / 1.06 GB, free: 18.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04484/5.292, allocations: 12.19 MB / 1.072 GB, free: 13.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05156/5.344, allocations: 11 MB / 1.083 GB, free: 6.207 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.361e-05/5.344, allocations: 4 kB / 1.083 GB, free: 6.203 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002093/5.344, allocations: 26.86 kB / 1.083 GB, free: 6.203 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1581/5.502, allocations: 29.71 MB / 1.112 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001332/5.502, allocations: 7.391 kB / 1.112 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0199/5.522, allocations: 0.9109 MB / 1.113 GB, free: 14.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02375/5.546, allocations: 2.633 MB / 1.115 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00252/5.549, allocations: 71.41 kB / 1.115 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5664/6.115, allocations: 15.82 MB / 1.131 GB, free: 76.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007711/6.123, allocations: 2.714 MB / 1.133 GB, free: 74.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07122/6.194, allocations: 18.99 MB / 1.152 GB, free: 72.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007372/6.201, allocations: 1.565 MB / 1.153 GB, free: 72.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003295/6.205, allocations: 10.47 kB / 1.154 GB, free: 72.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01008/6.215, allocations: 293 kB / 1.154 GB, free: 72.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003087/6.218, allocations: 0.5075 MB / 1.154 GB, free: 72.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00189/6.22, allocations: 182.9 kB / 1.154 GB, free: 72.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007862/6.228, allocations: 2.421 MB / 1.157 GB, free: 72.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.413e-06/6.228, allocations: 0 / 1.157 GB, free: 72.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01492/6.243, allocations: 1.848 MB / 1.159 GB, free: 72.52 MB / 474.7 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 (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 {5 12,6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.05776/6.301, allocations: 21.08 MB / 1.179 GB, free: 69.19 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03228/6.333, allocations: 10.78 MB / 1.19 GB, free: 68.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/6.333, allocations: 3.938 kB / 1.19 GB, free: 68.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01943/6.353, allocations: 5.855 MB / 1.195 GB, free: 68.11 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0111/6.364, allocations: 0.8398 MB / 1.196 GB, free: 68.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0806/6.444, allocations: 21.62 MB / 1.217 GB, free: 61.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01738/6.462, allocations: 7.003 MB / 1.224 GB, free: 59.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01324/6.475, allocations: 1.692 MB / 1.226 GB, free: 59.46 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01251/6.488, allocations: 4.131 MB / 1.23 GB, free: 55.95 MB / 474.7 MB Notification: Performance of SimCode: time 1.914e-06/6.488, allocations: 0 / 1.23 GB, free: 55.95 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9793/7.467, allocations: 172 MB / 1.398 GB, free: 63.19 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003384/7.467, allocations: 203.7 kB / 1.398 GB, free: 62.91 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.86/19.33, allocations: 0 / 1.398 GB, free: 62.91 MB / 474.7 MB