Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.231/2.231, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.495e-05/3.497e-05, allocations: 1.969 kB / 249.8 MB, free: 5.246 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6207/0.732, allocations: 149.4 MB / 443.8 MB, free: 4.922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004156/0.7324, allocations: 104.2 kB / 443.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.617/3.349, allocations: 381.4 MB / 0.8059 GB, free: 21.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.555e-06/3.349, allocations: 1.062 kB / 0.8059 GB, free: 21.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001805/3.351, allocations: 295.2 kB / 0.8062 GB, free: 21.01 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.06537/3.417, allocations: 11.03 MB / 0.817 GB, free: 17.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.372e-05/3.417, allocations: 10.53 kB / 0.817 GB, free: 17.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06529/3.482, allocations: 6.33 MB / 0.8232 GB, free: 16.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06158/3.544, allocations: 9.432 MB / 0.8324 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002053/3.546, allocations: 416.8 kB / 0.8328 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01011/3.556, allocations: 0.7133 MB / 0.8335 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05917/3.615, allocations: 16.17 MB / 0.8493 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09466/3.71, allocations: 18.32 MB / 0.8672 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001078/3.711, allocations: 20.73 kB / 0.8672 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006554/3.718, allocations: 10.03 kB / 0.8672 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00176/3.719, allocations: 0.8369 MB / 0.868 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2138/3.933, allocations: 62.89 MB / 0.9294 GB, free: 2.078 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5404/4.474, allocations: 46.43 MB / 0.9748 GB, free: 30 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02462/4.498, allocations: 7.671 MB / 0.9823 GB, free: 29.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08438/4.583, allocations: 24.05 MB / 1.006 GB, free: 28.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000146/4.583, allocations: 100.1 kB / 1.006 GB, free: 28.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=763): time 1.516e-05/4.583, allocations: 0 / 1.006 GB, free: 28.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=805): time 0.1432/4.726, allocations: 29.35 MB / 1.035 GB, free: 26.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001612/4.727, allocations: 120.6 kB / 1.035 GB, free: 26.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0176/4.744, allocations: 3.079 MB / 1.038 GB, free: 26.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003311/4.748, allocations: 28.33 kB / 1.038 GB, free: 26.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006053/4.754, allocations: 4.919 MB / 1.042 GB, free: 23.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005186/4.759, allocations: 2.58 MB / 1.045 GB, free: 21.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002548/4.762, allocations: 0 / 1.045 GB, free: 21.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001306/4.763, allocations: 0.6646 MB / 1.046 GB, free: 21.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01545/4.778, allocations: 5.081 MB / 1.051 GB, free: 20.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01837/4.797, allocations: 7.427 MB / 1.058 GB, free: 14.99 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0272/4.824, allocations: 7.452 MB / 1.065 GB, free: 12.22 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001435/4.824, allocations: 20 kB / 1.065 GB, free: 12.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=1150) (initialization): time 0.0594/4.884, allocations: 16.09 MB / 1.081 GB, free: 6.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/4.884, allocations: 39.28 kB / 1.081 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001876/4.884, allocations: 70.12 kB / 1.081 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01632/4.9, allocations: 4.064 MB / 1.085 GB, free: 5.004 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01643/4.917, allocations: 1.675 MB / 1.087 GB, free: 4.957 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03237/4.949, allocations: 12.59 MB / 1.099 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01285/4.962, allocations: 331.1 kB / 1.099 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003159/4.965, allocations: 393.1 kB / 1.1 GB, free: 11.46 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.005722/4.971, allocations: 432.2 kB / 1.1 GB, free: 11.2 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06078/5.032, allocations: 13.82 MB / 1.113 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005597/5.038, allocations: 0.5565 MB / 1.114 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08495/5.123, allocations: 14.97 MB / 1.129 GB, free: 2.324 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005743/5.123, allocations: 199.1 kB / 1.129 GB, free: 2.156 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.221e-05/5.123, allocations: 3.953 kB / 1.129 GB, free: 2.152 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000223/5.124, allocations: 35.3 kB / 1.129 GB, free: 2.152 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5841/5.708, allocations: 28.91 MB / 1.157 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001018/5.708, allocations: 5.734 kB / 1.157 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01273/5.721, allocations: 1.082 MB / 1.158 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01589/5.737, allocations: 3.945 MB / 1.162 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002164/5.739, allocations: 81.64 kB / 1.162 GB, free: 106 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/5.762, allocations: 12.2 MB / 1.174 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.689e-06/5.762, allocations: 3.906 kB / 1.174 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06435/5.826, allocations: 22.66 MB / 1.196 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007328/5.834, allocations: 1.751 MB / 1.198 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003847/5.837, allocations: 9.656 kB / 1.198 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009065/5.847, allocations: 259.8 kB / 1.198 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003192/5.85, allocations: 0.5715 MB / 1.199 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001943/5.852, allocations: 216.6 kB / 1.199 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006238/5.858, allocations: 2.236 MB / 1.201 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.11e-07/5.858, allocations: 0 / 1.201 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01481/5.873, allocations: 1.879 MB / 1.203 GB, free: 100.2 MB / 0.4948 GB 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.07251/5.945, allocations: 24.26 MB / 1.227 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03848/5.984, allocations: 12.87 MB / 1.239 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/5.984, allocations: 2.625 kB / 1.239 GB, free: 94.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0218/6.006, allocations: 6.719 MB / 1.246 GB, free: 91.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01234/6.018, allocations: 0.9359 MB / 1.247 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0933/6.112, allocations: 25.06 MB / 1.271 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01961/6.131, allocations: 7.961 MB / 1.279 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01521/6.147, allocations: 1.979 MB / 1.281 GB, free: 71.09 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0139/6.161, allocations: 4.531 MB / 1.285 GB, free: 66.88 MB / 0.4948 GB Notification: Performance of SimCode: time 1.593e-06/6.161, allocations: 4 kB / 1.285 GB, free: 66.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.076/7.236, allocations: 192.5 MB / 1.473 GB, free: 49.91 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003581/7.237, allocations: 222.7 kB / 1.473 GB, free: 49.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.21/18.44, allocations: 0 / 1.473 GB, free: 49.61 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat