Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.087/2.087, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.829e-05, allocations: 4 kB / 249.8 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3294, allocations: 44.49 MB / 294.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2349/0.5644, allocations: 129.3 MB / 423.6 MB, free: 436 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003578/0.5648, allocations: 95.94 kB / 423.7 MB, free: 340 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.923/2.488, allocations: 328.8 MB / 0.7348 GB, free: 45.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.495e-06/2.488, allocations: 0 / 0.7348 GB, free: 45.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008394/2.489, allocations: 213.8 kB / 0.735 GB, free: 45.02 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.04409/2.533, allocations: 8.742 MB / 0.7436 GB, free: 42.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/2.533, allocations: 7.469 kB / 0.7436 GB, free: 42.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04925/2.583, allocations: 5.844 MB / 0.7493 GB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0264/2.609, allocations: 7.433 MB / 0.7566 GB, free: 40.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008764/2.61, allocations: 325.8 kB / 0.7569 GB, free: 40.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004547/2.615, allocations: 0.5593 MB / 0.7574 GB, free: 40.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03788/2.652, allocations: 13.65 MB / 0.7707 GB, free: 40.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04995/2.702, allocations: 15.25 MB / 0.7856 GB, free: 39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005851/2.703, allocations: 17.47 kB / 0.7856 GB, free: 38.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004001/2.707, allocations: 12.94 kB / 0.7857 GB, free: 38.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001136/2.708, allocations: 0.716 MB / 0.7864 GB, free: 38.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/2.847, allocations: 52.23 MB / 0.8374 GB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4235/3.271, allocations: 41.28 MB / 0.8777 GB, free: 23.96 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0176/3.289, allocations: 7.008 MB / 0.8845 GB, free: 23.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0623/3.351, allocations: 22.35 MB / 0.9063 GB, free: 23.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.083e-05/3.351, allocations: 100.2 kB / 0.9064 GB, free: 22.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=688): time 1.133e-05/3.351, allocations: 0 / 0.9064 GB, free: 22.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=696): time 0.07533/3.426, allocations: 25.5 MB / 0.9313 GB, free: 20.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.073e-05/3.427, allocations: 111.1 kB / 0.9314 GB, free: 20.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004563/3.431, allocations: 2.154 MB / 0.9335 GB, free: 19.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00155/3.433, allocations: 25.7 kB / 0.9336 GB, free: 19.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002663/3.435, allocations: 3.641 MB / 0.9371 GB, free: 16.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003612/3.439, allocations: 2.222 MB / 0.9393 GB, free: 15.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/3.441, allocations: 3.641 kB / 0.9393 GB, free: 15.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008499/3.441, allocations: 0.5977 MB / 0.9399 GB, free: 14.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0112/3.453, allocations: 4.539 MB / 0.9443 GB, free: 12.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01285/3.466, allocations: 6.314 MB / 0.9505 GB, free: 8.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01981/3.485, allocations: 6.667 MB / 0.957 GB, free: 6.293 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.099e-05/3.486, allocations: 14.34 kB / 0.957 GB, free: 6.293 MB / 426.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.04241/3.528, allocations: 14.3 MB / 0.971 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.288e-05/3.528, allocations: 25.66 kB / 0.971 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/3.528, allocations: 57.69 kB / 0.9711 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01244/3.541, allocations: 3.948 MB / 0.9749 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01087/3.552, allocations: 1.272 MB / 0.9761 GB, free: 15.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02259/3.574, allocations: 9.94 MB / 0.9859 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008443/3.583, allocations: 273 kB / 0.9861 GB, free: 10.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004032/3.587, allocations: 320 kB / 0.9864 GB, free: 10.13 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.005929/3.593, allocations: 380 kB / 0.9868 GB, free: 9.961 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.07587/3.669, allocations: 12.77 MB / 0.9993 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006556/3.675, allocations: 438.1 kB / 0.9997 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08858/3.764, allocations: 13.71 MB / 1.013 GB, free: 3.594 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003185/3.764, allocations: 183.4 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/3.764, allocations: 0 / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001421/3.765, allocations: 38.12 kB / 1.013 GB, free: 3.434 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4384/4.203, allocations: 24.65 MB / 1.037 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001111/4.203, allocations: 6.766 kB / 1.037 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00876/4.212, allocations: 0.8583 MB / 1.038 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01393/4.226, allocations: 3.854 MB / 1.042 GB, free: 99.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00191/4.228, allocations: 80.62 kB / 1.042 GB, free: 99.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01932/4.247, allocations: 9.827 MB / 1.052 GB, free: 96.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/4.247, allocations: 4.781 kB / 1.052 GB, free: 96.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05476/4.302, allocations: 20.53 MB / 1.072 GB, free: 95.92 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006072/4.308, allocations: 1.514 MB / 1.073 GB, free: 95.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003/4.311, allocations: 10.47 kB / 1.073 GB, free: 95.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007154/4.318, allocations: 222.2 kB / 1.073 GB, free: 95.82 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002874/4.321, allocations: 0.5083 MB / 1.074 GB, free: 95.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002027/4.324, allocations: 191.4 kB / 1.074 GB, free: 95.82 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004613/4.328, allocations: 1.575 MB / 1.076 GB, free: 95.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.563e-06/4.328, allocations: 0 / 1.076 GB, free: 95.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01173/4.34, allocations: 1.506 MB / 1.077 GB, free: 95.67 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.05813/4.398, allocations: 22.3 MB / 1.099 GB, free: 92.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03001/4.428, allocations: 11.11 MB / 1.11 GB, free: 88.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/4.428, allocations: 7.5 kB / 1.11 GB, free: 88.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01686/4.445, allocations: 5.725 MB / 1.115 GB, free: 85.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00836/4.454, allocations: 0.6882 MB / 1.116 GB, free: 85.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08202/4.536, allocations: 20.65 MB / 1.136 GB, free: 77.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02086/4.557, allocations: 6.534 MB / 1.143 GB, free: 73.03 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01499/4.572, allocations: 1.571 MB / 1.144 GB, free: 71.94 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01074/4.582, allocations: 3.372 MB / 1.147 GB, free: 68.82 MB / 474.7 MB Notification: Performance of SimCode: time 2.114e-06/4.583, allocations: 2.625 kB / 1.147 GB, free: 68.82 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7213/5.304, allocations: 161.6 MB / 1.305 GB, free: 68.63 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/5.304, allocations: 200.4 kB / 1.305 GB, free: 68.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/12.87, allocations: 0 / 1.305 GB, free: 68.36 MB / 474.7 MB