Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.866e-05, allocations: 4 kB / 249.8 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3591, allocations: 44.5 MB / 294.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5038/0.8629, allocations: 149.4 MB / 443.7 MB, free: 68.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.8633, allocations: 105.6 kB / 443.8 MB, free: 68.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.818/2.681, allocations: 381.4 MB / 0.8059 GB, free: 38.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.604e-06/2.681, allocations: 0 / 0.8059 GB, free: 38.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009843/2.682, allocations: 292.3 kB / 0.8061 GB, free: 38.77 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05636/2.738, allocations: 11.03 MB / 0.8169 GB, free: 35.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/2.738, allocations: 7.438 kB / 0.8169 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05227/2.791, allocations: 6.333 MB / 0.8231 GB, free: 34.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03379/2.825, allocations: 9.44 MB / 0.8323 GB, free: 32.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001098/2.826, allocations: 420 kB / 0.8327 GB, free: 32.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005803/2.832, allocations: 0.7148 MB / 0.8334 GB, free: 32.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04838/2.88, allocations: 16.16 MB / 0.8492 GB, free: 25.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06694/2.947, allocations: 18.32 MB / 0.8671 GB, free: 9.004 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008828/2.948, allocations: 23.75 kB / 0.8671 GB, free: 8.984 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005688/2.954, allocations: 8 kB / 0.8671 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00166/2.955, allocations: 0.8362 MB / 0.8679 GB, free: 8.223 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5328/3.488, allocations: 62.89 MB / 0.9294 GB, free: 35.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05492/3.543, allocations: 45.25 MB / 0.9735 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01798/3.561, allocations: 7.678 MB / 0.981 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07106/3.632, allocations: 24.06 MB / 1.005 GB, free: 17.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/3.632, allocations: 103 kB / 1.005 GB, free: 17.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=763): time 1.169e-05/3.632, allocations: 0 / 1.005 GB, free: 17.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=805): time 0.1285/3.761, allocations: 29.35 MB / 1.033 GB, free: 1.688 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/3.761, allocations: 120.8 kB / 1.033 GB, free: 1.555 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01728/3.778, allocations: 3.193 MB / 1.037 GB, free: 15.09 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002399/3.781, allocations: 25.7 kB / 1.037 GB, free: 15.06 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.008344/3.789, allocations: 4.924 MB / 1.041 GB, free: 10.68 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00528/3.795, allocations: 2.578 MB / 1.044 GB, free: 8.305 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002133/3.797, allocations: 0 / 1.044 GB, free: 8.305 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001199/3.798, allocations: 0.6696 MB / 1.045 GB, free: 7.73 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01434/3.813, allocations: 5.076 MB / 1.049 GB, free: 3.199 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3838/4.196, allocations: 7.947 MB / 1.057 GB, free: 83.09 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02442/4.221, allocations: 7.45 MB / 1.065 GB, free: 83 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002432/4.221, allocations: 18.56 kB / 1.065 GB, free: 83 MB / 474.7 MB Notification: Performance of matching and sorting (n=1150) (initialization): time 0.05717/4.278, allocations: 16.08 MB / 1.08 GB, free: 82.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/4.279, allocations: 38.25 kB / 1.08 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/4.279, allocations: 75.56 kB / 1.08 GB, free: 82.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/4.292, allocations: 4.064 MB / 1.084 GB, free: 82.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01329/4.305, allocations: 1.678 MB / 1.086 GB, free: 82.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01884/4.324, allocations: 12.39 MB / 1.098 GB, free: 78.13 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01/4.334, allocations: 325.3 kB / 1.098 GB, free: 78.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002787/4.337, allocations: 386 kB / 1.099 GB, free: 78.13 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[3].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[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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smrQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real smrQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real 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[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.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] smrQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smrQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smrQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real 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[2].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] currentRMSSensorQS.currentSensor[1].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[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] 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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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.re:VARIABLE(flow=true unit = "A" ) "Real 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[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[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: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (852): * Single equations (assignments): 796 * 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.00436/4.342, allocations: 441.9 kB / 1.099 GB, free: 78.01 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04013/4.382, allocations: 13.74 MB / 1.113 GB, free: 77.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00319/4.385, allocations: 0.5577 MB / 1.113 GB, free: 77.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0488/4.434, allocations: 14.97 MB / 1.128 GB, free: 75.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003025/4.434, allocations: 192.5 kB / 1.128 GB, free: 75.49 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/4.434, allocations: 3.156 kB / 1.128 GB, free: 75.49 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001711/4.434, allocations: 37.28 kB / 1.128 GB, free: 75.49 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08593/4.52, allocations: 27.92 MB / 1.155 GB, free: 63.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.751e-05/4.52, allocations: 384 / 1.155 GB, free: 63.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01013/4.531, allocations: 1.093 MB / 1.156 GB, free: 63.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01394/4.545, allocations: 3.93 MB / 1.16 GB, free: 62.42 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002299/4.547, allocations: 90.61 kB / 1.16 GB, free: 62.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01904/4.566, allocations: 12.19 MB / 1.172 GB, free: 52.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/4.566, allocations: 10.27 kB / 1.172 GB, free: 52.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06143/4.628, allocations: 22.66 MB / 1.194 GB, free: 32.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007431/4.635, allocations: 1.753 MB / 1.196 GB, free: 30.99 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003364/4.638, allocations: 4 kB / 1.196 GB, free: 30.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008003/4.647, allocations: 268.4 kB / 1.196 GB, free: 30.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002962/4.65, allocations: 0.5665 MB / 1.197 GB, free: 30.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00182/4.651, allocations: 211.6 kB / 1.197 GB, free: 30.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005693/4.657, allocations: 2.238 MB / 1.199 GB, free: 28.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/4.657, allocations: 4 kB / 1.199 GB, free: 28.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01343/4.671, allocations: 1.879 MB / 1.201 GB, free: 26.43 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (539): * Single equations (assignments): 483 * 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.453/5.124, allocations: 26.16 MB / 1.227 GB, free: 82.93 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03512/5.159, allocations: 12.87 MB / 1.239 GB, free: 82.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/5.159, allocations: 0 / 1.239 GB, free: 82.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01873/5.178, allocations: 6.719 MB / 1.246 GB, free: 81.75 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01002/5.188, allocations: 0.9333 MB / 1.247 GB, free: 81.73 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08109/5.269, allocations: 25.05 MB / 1.271 GB, free: 78.02 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01887/5.288, allocations: 7.962 MB / 1.279 GB, free: 76.97 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01209/5.3, allocations: 1.973 MB / 1.281 GB, free: 76.77 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01346/5.313, allocations: 4.531 MB / 1.285 GB, free: 76.76 MB / 474.7 MB Notification: Performance of SimCode: time 2.965e-06/5.314, allocations: 4 kB / 1.285 GB, free: 76.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8163/6.13, allocations: 192.4 MB / 1.473 GB, free: 77.3 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003021/6.13, allocations: 208 kB / 1.473 GB, free: 77.01 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.308/15.44, allocations: 2.406 kB / 1.473 GB, free: 77.01 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.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat