Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.296/2.296, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.395e-05/2.394e-05, allocations: 0 / 249.8 MB, free: 14.74 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3505, allocations: 44.49 MB / 294.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2644/0.6149, allocations: 129.3 MB / 423.6 MB, free: 396 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004283/0.6154, allocations: 103.9 kB / 423.7 MB, free: 292 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.248/2.863, allocations: 328.8 MB / 0.7349 GB, free: 45.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.474e-06/2.863, allocations: 0 / 0.7349 GB, free: 45.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009974/2.864, allocations: 212.5 kB / 0.7351 GB, free: 45.13 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.0502/2.914, allocations: 8.745 MB / 0.7436 GB, free: 42.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.325e-05/2.915, allocations: 9.219 kB / 0.7436 GB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05751/2.972, allocations: 5.841 MB / 0.7493 GB, free: 41.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03042/3.003, allocations: 7.438 MB / 0.7566 GB, free: 40.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001015/3.004, allocations: 324.8 kB / 0.7569 GB, free: 40.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005312/3.009, allocations: 0.5529 MB / 0.7575 GB, free: 40.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04423/3.053, allocations: 13.65 MB / 0.7708 GB, free: 40.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05744/3.111, allocations: 15.25 MB / 0.7857 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007086/3.112, allocations: 11.44 kB / 0.7857 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004466/3.116, allocations: 3.562 kB / 0.7857 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001366/3.117, allocations: 0.7162 MB / 0.7864 GB, free: 38.79 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1762/3.294, allocations: 52.24 MB / 0.8374 GB, free: 3.527 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5411/3.835, allocations: 41.26 MB / 0.8777 GB, free: 24.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02993/3.865, allocations: 7.008 MB / 0.8846 GB, free: 24.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07505/3.94, allocations: 22.35 MB / 0.9064 GB, free: 23.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001138/3.94, allocations: 104.5 kB / 0.9065 GB, free: 23.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=688): time 1.3e-05/3.94, allocations: 0 / 0.9065 GB, free: 23.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=696): time 0.08222/4.022, allocations: 25.5 MB / 0.9314 GB, free: 20.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/4.023, allocations: 108.3 kB / 0.9315 GB, free: 20.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005691/4.028, allocations: 2.156 MB / 0.9336 GB, free: 19.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001924/4.03, allocations: 25.7 kB / 0.9336 GB, free: 19.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003389/4.034, allocations: 3.641 MB / 0.9372 GB, free: 17.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004062/4.038, allocations: 2.218 MB / 0.9393 GB, free: 15.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/4.04, allocations: 0 / 0.9393 GB, free: 15.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009405/4.041, allocations: 0.6066 MB / 0.9399 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0121/4.053, allocations: 4.54 MB / 0.9444 GB, free: 12.93 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01449/4.067, allocations: 6.308 MB / 0.9505 GB, free: 8.887 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02204/4.089, allocations: 6.67 MB / 0.957 GB, free: 6.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.95e-05/4.09, allocations: 17.09 kB / 0.957 GB, free: 6.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.05063/4.14, allocations: 14.3 MB / 0.971 GB, free: 1.047 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.99e-05/4.14, allocations: 29.84 kB / 0.971 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/4.141, allocations: 54.31 kB / 0.9711 GB, free: 1.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01992/4.161, allocations: 3.951 MB / 0.975 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01782/4.178, allocations: 1.28 MB / 0.9762 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0323/4.211, allocations: 9.943 MB / 0.9859 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01036/4.221, allocations: 271.1 kB / 0.9862 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002684/4.224, allocations: 311.3 kB / 0.9865 GB, free: 10.27 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starMQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real smpmQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real resistorQS.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[3].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.re:VARIABLE(flow=true unit = "A" ) "Real 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[1].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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[3].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] starQS.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: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (647): * Single equations (assignments): 595 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004499/4.228, allocations: 390.8 kB / 0.9868 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0542/4.283, allocations: 12.73 MB / 0.9993 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003259/4.286, allocations: 438.5 kB / 0.9997 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0556/4.342, allocations: 13.71 MB / 1.013 GB, free: 3.594 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003861/4.342, allocations: 189.1 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.65e-05/4.342, allocations: 0 / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001609/4.342, allocations: 28.22 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.479/4.821, allocations: 24.64 MB / 1.037 GB, free: 99.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001056/4.822, allocations: 6.625 kB / 1.037 GB, free: 99.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01015/4.832, allocations: 0.8636 MB / 1.038 GB, free: 99.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01579/4.848, allocations: 3.847 MB / 1.042 GB, free: 99.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001941/4.85, allocations: 85.05 kB / 1.042 GB, free: 99.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/4.871, allocations: 9.821 MB / 1.052 GB, free: 97.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/4.871, allocations: 4.688 kB / 1.052 GB, free: 97.25 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06334/4.934, allocations: 20.53 MB / 1.072 GB, free: 96.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006481/4.941, allocations: 1.516 MB / 1.073 GB, free: 96.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00302/4.944, allocations: 11.09 kB / 1.073 GB, free: 96.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007707/4.951, allocations: 225.1 kB / 1.073 GB, free: 96.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002943/4.954, allocations: 0.5036 MB / 1.074 GB, free: 96.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001827/4.956, allocations: 196.2 kB / 1.074 GB, free: 96.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00436/4.961, allocations: 1.573 MB / 1.076 GB, free: 95.94 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.322e-06/4.961, allocations: 1.469 kB / 1.076 GB, free: 95.94 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01213/4.973, allocations: 1.506 MB / 1.077 GB, free: 95.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.06421/5.037, allocations: 22.31 MB / 1.099 GB, free: 92.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03507/5.072, allocations: 11.11 MB / 1.11 GB, free: 88.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/5.072, allocations: 0 / 1.11 GB, free: 88.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02241/5.095, allocations: 5.734 MB / 1.115 GB, free: 86.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01399/5.109, allocations: 0.6848 MB / 1.116 GB, free: 85.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1141/5.223, allocations: 20.65 MB / 1.136 GB, free: 78.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02488/5.248, allocations: 6.54 MB / 1.143 GB, free: 73.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01763/5.266, allocations: 1.567 MB / 1.144 GB, free: 72.03 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01561/5.281, allocations: 3.37 MB / 1.147 GB, free: 68.91 MB / 474.7 MB Notification: Performance of SimCode: time 2.655e-06/5.281, allocations: 4 kB / 1.147 GB, free: 68.91 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8309/6.112, allocations: 161.6 MB / 1.305 GB, free: 68.79 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002515/6.113, allocations: 213.7 kB / 1.305 GB, free: 68.51 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.652/14.76, allocations: 7.859 kB / 1.305 GB, free: 68.5 MB / 474.7 MB