Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.125/2.125, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.225e-05, allocations: 3.25 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 44.5 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.608/0.7114, allocations: 155.5 MB / 449.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004109/0.7118, allocations: 101.8 kB / 449.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.558/3.269, allocations: 392.4 MB / 0.8226 GB, free: 36.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.976e-06/3.27, allocations: 0 / 0.8226 GB, free: 36.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001222/3.271, allocations: 304.6 kB / 0.8229 GB, free: 36.71 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.06017/3.331, allocations: 11.3 MB / 0.8339 GB, free: 33.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/3.331, allocations: 12.41 kB / 0.8339 GB, free: 33.06 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0643/3.395, allocations: 6.405 MB / 0.8402 GB, free: 32.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04291/3.438, allocations: 9.647 MB / 0.8496 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00129/3.44, allocations: 426.7 kB / 0.85 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006997/3.447, allocations: 0.7348 MB / 0.8507 GB, free: 31.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05843/3.505, allocations: 16.41 MB / 0.8667 GB, free: 31.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07174/3.577, allocations: 18.63 MB / 0.8849 GB, free: 29.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009126/3.578, allocations: 26.22 kB / 0.8849 GB, free: 29.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005587/3.584, allocations: 11.53 kB / 0.885 GB, free: 29.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001564/3.585, allocations: 0.849 MB / 0.8858 GB, free: 29.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2251/3.81, allocations: 64.68 MB / 0.9489 GB, free: 4.508 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4919/4.302, allocations: 45.82 MB / 0.9937 GB, free: 14.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02451/4.327, allocations: 7.748 MB / 1.001 GB, free: 14.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1035/4.431, allocations: 24.34 MB / 1.025 GB, free: 29.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/4.431, allocations: 100.1 kB / 1.025 GB, free: 29.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=775): time 1.64e-05/4.431, allocations: 5.719 kB / 1.025 GB, free: 29.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=819): time 0.1215/4.552, allocations: 29.86 MB / 1.054 GB, free: 25.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/4.552, allocations: 127.4 kB / 1.054 GB, free: 25.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01261/4.565, allocations: 3.239 MB / 1.058 GB, free: 24.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002289/4.567, allocations: 31.5 kB / 1.058 GB, free: 24.32 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006346/4.574, allocations: 5.088 MB / 1.063 GB, free: 20.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006091/4.58, allocations: 2.622 MB / 1.065 GB, free: 18.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00238/4.582, allocations: 0 / 1.065 GB, free: 18.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001633/4.584, allocations: 0.6742 MB / 1.066 GB, free: 17.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02156/4.606, allocations: 5.13 MB / 1.071 GB, free: 15.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02132/4.627, allocations: 7.562 MB / 1.078 GB, free: 10.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02843/4.656, allocations: 7.559 MB / 1.086 GB, free: 7.789 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/4.656, allocations: 20.34 kB / 1.086 GB, free: 7.789 MB / 458.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.05779/4.714, allocations: 16.32 MB / 1.102 GB, free: 1.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-05/4.714, allocations: 39.78 kB / 1.102 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/4.714, allocations: 76.03 kB / 1.102 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01596/4.73, allocations: 4.073 MB / 1.106 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01637/4.746, allocations: 1.721 MB / 1.107 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02562/4.772, allocations: 12.39 MB / 1.119 GB, free: 2.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01186/4.784, allocations: 338.7 kB / 1.12 GB, free: 2.016 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002972/4.787, allocations: 408.9 kB / 1.12 GB, free: 1.648 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.004656/4.792, allocations: 443.7 kB / 1.121 GB, free: 1.379 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4696/5.261, allocations: 15.15 MB / 1.135 GB, free: 77.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003858/5.265, allocations: 0.5829 MB / 1.136 GB, free: 77.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05766/5.323, allocations: 15.12 MB / 1.151 GB, free: 77.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003539/5.323, allocations: 199.5 kB / 1.151 GB, free: 77.07 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.079e-05/5.323, allocations: 0 / 1.151 GB, free: 77.07 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001953/5.323, allocations: 33.89 kB / 1.151 GB, free: 77.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09256/5.416, allocations: 28.26 MB / 1.178 GB, free: 76.19 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.302e-05/5.416, allocations: 2.469 kB / 1.178 GB, free: 76.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01207/5.428, allocations: 1.116 MB / 1.18 GB, free: 76.19 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01455/5.443, allocations: 3.95 MB / 1.183 GB, free: 76.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00213/5.445, allocations: 83.61 kB / 1.184 GB, free: 76.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/5.467, allocations: 12.23 MB / 1.195 GB, free: 71.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/5.467, allocations: 3.875 kB / 1.195 GB, free: 71.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06792/5.535, allocations: 22.94 MB / 1.218 GB, free: 61.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007725/5.543, allocations: 1.799 MB / 1.22 GB, free: 60.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00387/5.547, allocations: 6 kB / 1.22 GB, free: 60.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009432/5.556, allocations: 273.8 kB / 1.22 GB, free: 60.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003472/5.56, allocations: 0.5786 MB / 1.22 GB, free: 60.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002258/5.562, allocations: 222.1 kB / 1.221 GB, free: 59.99 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007811/5.57, allocations: 2.352 MB / 1.223 GB, free: 59.03 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.372e-06/5.57, allocations: 0 / 1.223 GB, free: 59.03 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01505/5.585, allocations: 1.933 MB / 1.225 GB, free: 59.01 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.0687/5.654, allocations: 24.81 MB / 1.249 GB, free: 42.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03799/5.692, allocations: 13.01 MB / 1.262 GB, free: 31.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/5.692, allocations: 0 / 1.262 GB, free: 31.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02716/5.719, allocations: 6.784 MB / 1.268 GB, free: 24.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0166/5.736, allocations: 1.025 MB / 1.269 GB, free: 24.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5203/6.256, allocations: 25.45 MB / 1.294 GB, free: 72.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0232/6.279, allocations: 8.074 MB / 1.302 GB, free: 71.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01474/6.294, allocations: 2.016 MB / 1.304 GB, free: 71.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01349/6.307, allocations: 4.726 MB / 1.309 GB, free: 71.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.405e-06/6.307, allocations: 0 / 1.309 GB, free: 71.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9577/7.265, allocations: 198.2 MB / 1.502 GB, free: 72.05 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002877/7.266, allocations: 208.1 kB / 1.503 GB, free: 71.77 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.07/18.33, allocations: 3.625 kB / 1.503 GB, free: 71.77 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat