Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.912e-05/2.922e-05, allocations: 4 kB / 249.8 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.329, allocations: 44.5 MB / 294.3 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5621/0.8912, allocations: 155.5 MB / 449.8 MB, free: 68.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003811/0.8916, allocations: 99.2 kB / 449.9 MB, free: 68.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.932/2.824, allocations: 392.4 MB / 0.8225 GB, free: 24.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.896e-06/2.824, allocations: 0 / 0.8225 GB, free: 24.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001051/2.825, allocations: 296.9 kB / 0.8228 GB, free: 24.4 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.05397/2.879, allocations: 11.31 MB / 0.8338 GB, free: 16.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/2.879, allocations: 8.031 kB / 0.8339 GB, free: 16.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05536/2.935, allocations: 6.407 MB / 0.8401 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03736/2.972, allocations: 9.653 MB / 0.8495 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001221/2.973, allocations: 420 kB / 0.8499 GB, free: 244 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006192/2.979, allocations: 0.738 MB / 0.8507 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.4463/3.426, allocations: 16.4 MB / 0.8667 GB, free: 33.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06554/3.491, allocations: 18.62 MB / 0.8849 GB, free: 32.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007711/3.492, allocations: 26.8 kB / 0.8849 GB, free: 32.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004795/3.497, allocations: 9.656 kB / 0.8849 GB, free: 32.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001312/3.498, allocations: 0.8477 MB / 0.8857 GB, free: 32.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2127/3.711, allocations: 64.67 MB / 0.9489 GB, free: 17.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05985/3.771, allocations: 45.58 MB / 0.9934 GB, free: 9.434 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01772/3.789, allocations: 7.746 MB / 1.001 GB, free: 6.148 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08419/3.873, allocations: 24.45 MB / 1.025 GB, free: 10.95 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/3.873, allocations: 101.7 kB / 1.025 GB, free: 10.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=775): time 1.768e-05/3.873, allocations: 0 / 1.025 GB, free: 10.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=819): time 0.5436/4.417, allocations: 31.11 MB / 1.055 GB, free: 79.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.814e-05/4.417, allocations: 123 kB / 1.055 GB, free: 79.58 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04055/4.458, allocations: 3.238 MB / 1.059 GB, free: 79.26 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002426/4.46, allocations: 25.7 kB / 1.059 GB, free: 79.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006992/4.467, allocations: 5.085 MB / 1.064 GB, free: 76.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006328/4.474, allocations: 2.625 MB / 1.066 GB, free: 74.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002976/4.477, allocations: 0 / 1.066 GB, free: 74.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00167/4.478, allocations: 0.6743 MB / 1.067 GB, free: 74.57 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01865/4.497, allocations: 5.13 MB / 1.072 GB, free: 74.55 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02184/4.519, allocations: 7.555 MB / 1.079 GB, free: 71.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03392/4.553, allocations: 7.559 MB / 1.087 GB, free: 71.66 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001863/4.553, allocations: 28.78 kB / 1.087 GB, free: 71.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.07624/4.629, allocations: 16.32 MB / 1.103 GB, free: 71.06 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001423/4.63, allocations: 37.75 kB / 1.103 GB, free: 71.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000244/4.63, allocations: 73.81 kB / 1.103 GB, free: 71.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01961/4.65, allocations: 4.075 MB / 1.107 GB, free: 70.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01367/4.663, allocations: 1.726 MB / 1.108 GB, free: 70.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/4.683, allocations: 12.38 MB / 1.12 GB, free: 66.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01069/4.693, allocations: 340.3 kB / 1.121 GB, free: 66.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002728/4.696, allocations: 398.5 kB / 1.121 GB, free: 66.34 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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] 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[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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] 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[1].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[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] smpmQS.stator.resistor.resistor[2].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[3].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[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] currentRMSSensorQS.currentSensor[2].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[1].y.re:VARIABLE() "Real 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.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary 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[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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real 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[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] 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[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[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (876): * Single equations (assignments): 820 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004507/4.701, allocations: 453.2 kB / 1.122 GB, free: 66.17 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04466/4.745, allocations: 13.94 MB / 1.135 GB, free: 62.97 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003726/4.749, allocations: 0.5888 MB / 1.136 GB, free: 62.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04779/4.797, allocations: 15.12 MB / 1.15 GB, free: 56.62 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000266/4.797, allocations: 196.7 kB / 1.151 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/4.797, allocations: 0 / 1.151 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001649/4.798, allocations: 39.33 kB / 1.151 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07998/4.878, allocations: 28.25 MB / 1.178 GB, free: 39.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.322e-05/4.878, allocations: 6.484 kB / 1.178 GB, free: 39.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01025/4.888, allocations: 1.116 MB / 1.179 GB, free: 38.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01218/4.9, allocations: 3.94 MB / 1.183 GB, free: 35.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001944/4.902, allocations: 85.47 kB / 1.183 GB, free: 35.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/4.921, allocations: 12.23 MB / 1.195 GB, free: 23.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/4.921, allocations: 10.44 kB / 1.195 GB, free: 23.83 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4883/5.409, allocations: 22.97 MB / 1.218 GB, free: 73.81 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008461/5.418, allocations: 1.786 MB / 1.219 GB, free: 73.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003886/5.422, allocations: 10.52 kB / 1.219 GB, free: 73.72 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008795/5.431, allocations: 264.3 kB / 1.22 GB, free: 73.72 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003088/5.434, allocations: 0.5808 MB / 1.22 GB, free: 73.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00214/5.436, allocations: 224.4 kB / 1.22 GB, free: 73.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00688/5.443, allocations: 2.346 MB / 1.223 GB, free: 73.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.764e-06/5.443, allocations: 0 / 1.223 GB, free: 73.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01556/5.459, allocations: 1.938 MB / 1.225 GB, free: 73.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (555): * Single equations (assignments): 499 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * 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.06453/5.523, allocations: 24.83 MB / 1.249 GB, free: 70.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03461/5.558, allocations: 13 MB / 1.262 GB, free: 70.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/5.558, allocations: 4.281 kB / 1.262 GB, free: 70.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01961/5.577, allocations: 6.776 MB / 1.268 GB, free: 69.78 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/5.589, allocations: 1.03 MB / 1.269 GB, free: 69.76 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08669/5.676, allocations: 25.45 MB / 1.294 GB, free: 64.29 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01848/5.694, allocations: 8.072 MB / 1.302 GB, free: 61.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01349/5.708, allocations: 2.013 MB / 1.304 GB, free: 61.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01317/5.721, allocations: 4.723 MB / 1.309 GB, free: 57.41 MB / 474.7 MB Notification: Performance of SimCode: time 3.146e-06/5.721, allocations: 4 kB / 1.309 GB, free: 57.41 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8668/6.588, allocations: 198.2 MB / 1.502 GB, free: 26.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00024/6.588, allocations: 218.4 kB / 1.502 GB, free: 25.91 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.954/16.54, allocations: 1.031 kB / 1.502 GB, free: 25.91 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat