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.635/2.635, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.463e-05/4.497e-05, allocations: 3.391 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1543, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7254/0.8798, allocations: 129.3 MB / 423.6 MB, free: 8.402 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004524/0.8803, allocations: 102 kB / 423.7 MB, free: 8.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.127/3.008, allocations: 330.5 MB / 0.7365 GB, free: 47.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/3.008, allocations: 0 / 0.7365 GB, free: 47.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00114/3.009, allocations: 220 kB / 0.7367 GB, free: 47.43 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.05387/3.063, allocations: 8.736 MB / 0.7453 GB, free: 43.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/3.063, allocations: 11.16 kB / 0.7453 GB, free: 43.58 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007932/3.071, allocations: 1.029 MB / 0.7463 GB, free: 43.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06658/3.137, allocations: 5.848 MB / 0.752 GB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03364/3.171, allocations: 7.436 MB / 0.7592 GB, free: 35.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001233/3.172, allocations: 419.5 kB / 0.7596 GB, free: 35.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005694/3.178, allocations: 0.5545 MB / 0.7602 GB, free: 34.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0489/3.227, allocations: 13.66 MB / 0.7735 GB, free: 20.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06766/3.295, allocations: 15.23 MB / 0.7884 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007899/3.296, allocations: 19.83 kB / 0.7884 GB, free: 5.375 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004992/3.301, allocations: 8 kB / 0.7884 GB, free: 5.367 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001759/3.302, allocations: 0.7151 MB / 0.7891 GB, free: 4.648 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5981/3.901, allocations: 52.23 MB / 0.8401 GB, free: 44.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05233/3.953, allocations: 40.77 MB / 0.88 GB, free: 25.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02126/3.974, allocations: 7.01 MB / 0.8868 GB, free: 22.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1407/4.115, allocations: 22.36 MB / 0.9086 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/4.115, allocations: 93.11 kB / 0.9087 GB, free: 11.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=688): time 2.623e-05/4.116, allocations: 0 / 0.9087 GB, free: 11.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=696): time 0.1404/4.256, allocations: 25.79 MB / 0.9339 GB, free: 13.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/4.256, allocations: 111.9 kB / 0.934 GB, free: 13.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008246/4.264, allocations: 2.151 MB / 0.9361 GB, free: 11.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001914/4.266, allocations: 25.7 kB / 0.9361 GB, free: 11.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004857/4.271, allocations: 3.647 MB / 0.9397 GB, free: 8.598 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005378/4.277, allocations: 2.221 MB / 0.9419 GB, free: 6.551 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002086/4.279, allocations: 0 / 0.9419 GB, free: 6.551 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001268/4.28, allocations: 0.6011 MB / 0.9425 GB, free: 6.031 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01586/4.296, allocations: 4.545 MB / 0.9469 GB, free: 2.004 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5532/4.849, allocations: 7.073 MB / 0.9538 GB, free: 76.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02775/4.877, allocations: 6.656 MB / 0.9603 GB, free: 76.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001596/4.877, allocations: 16.16 kB / 0.9603 GB, free: 76.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.05645/4.934, allocations: 14.31 MB / 0.9743 GB, free: 76.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.09e-05/4.934, allocations: 27.97 kB / 0.9743 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/4.934, allocations: 53.78 kB / 0.9744 GB, free: 76.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0163/4.95, allocations: 3.944 MB / 0.9782 GB, free: 76.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0131/4.964, allocations: 1.269 MB / 0.9795 GB, free: 76.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02437/4.988, allocations: 9.951 MB / 0.9892 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01027/4.998, allocations: 270.3 kB / 0.9894 GB, free: 74.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002909/5.001, allocations: 316.8 kB / 0.9897 GB, free: 74.16 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.00504/5.006, allocations: 384.8 kB / 0.9901 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003414/5.01, allocations: 443 kB / 0.9905 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05418/5.064, allocations: 13.72 MB / 1.004 GB, free: 73.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003524/5.065, allocations: 179.2 kB / 1.004 GB, free: 73.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.446e-05/5.065, allocations: 3.047 kB / 1.004 GB, free: 73.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000179/5.065, allocations: 27 kB / 1.004 GB, free: 73.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08945/5.154, allocations: 24.48 MB / 1.028 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001053/5.154, allocations: 6.656 kB / 1.028 GB, free: 65.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01045/5.165, allocations: 0.855 MB / 1.029 GB, free: 65.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01618/5.181, allocations: 3.852 MB / 1.033 GB, free: 64.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002104/5.183, allocations: 78.58 kB / 1.033 GB, free: 64.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02409/5.207, allocations: 9.834 MB / 1.042 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.419e-05/5.208, allocations: 6.047 kB / 1.042 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06641/5.274, allocations: 20.53 MB / 1.062 GB, free: 42.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006859/5.281, allocations: 1.512 MB / 1.064 GB, free: 41.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003073/5.284, allocations: 12.06 kB / 1.064 GB, free: 41.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008241/5.292, allocations: 222.6 kB / 1.064 GB, free: 41.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003097/5.295, allocations: 0.5119 MB / 1.065 GB, free: 40.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002288/5.298, allocations: 192.9 kB / 1.065 GB, free: 40.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00502/5.303, allocations: 1.571 MB / 1.066 GB, free: 39.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.405e-06/5.303, allocations: 0 / 1.066 GB, free: 39.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01275/5.316, allocations: 1.503 MB / 1.068 GB, free: 37.72 MB / 442.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.07713/5.393, allocations: 22.31 MB / 1.09 GB, free: 17.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03625/5.429, allocations: 11.12 MB / 1.1 GB, free: 8.043 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/5.429, allocations: 0 / 1.1 GB, free: 8.043 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02052/5.45, allocations: 5.723 MB / 1.106 GB, free: 3.008 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009643/5.459, allocations: 0.6866 MB / 1.107 GB, free: 2.484 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5521/6.012, allocations: 21.87 MB / 1.128 GB, free: 74.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02089/6.033, allocations: 6.527 MB / 1.134 GB, free: 74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0143/6.047, allocations: 1.577 MB / 1.136 GB, free: 73.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01297/6.06, allocations: 3.368 MB / 1.139 GB, free: 73.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.893e-06/6.06, allocations: 0 / 1.139 GB, free: 73.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.007/7.067, allocations: 166 MB / 1.301 GB, free: 77.17 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004045/7.068, allocations: 200 kB / 1.302 GB, free: 76.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.02/17.09, allocations: 0 / 1.302 GB, free: 76.91 MB / 458.7 MB