Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.248/2.248, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.961e-05, allocations: 3.625 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5931/0.6977, allocations: 151.1 MB / 445.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004362/0.6983, allocations: 96.81 kB / 445.5 MB, free: 3.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.48/3.179, allocations: 385.1 MB / 0.8111 GB, free: 27.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.036e-06/3.179, allocations: 0 / 0.8111 GB, free: 27.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001591/3.18, allocations: 291.8 kB / 0.8114 GB, free: 27.26 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.06554/3.246, allocations: 11.22 MB / 0.8224 GB, free: 23.74 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/3.246, allocations: 14.58 kB / 0.8224 GB, free: 23.74 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05375/3.3, allocations: 5.189 MB / 0.8275 GB, free: 23.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04046/3.34, allocations: 9.623 MB / 0.8369 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001218/3.342, allocations: 402 kB / 0.8372 GB, free: 21.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006594/3.348, allocations: 0.6952 MB / 0.8379 GB, free: 21.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05271/3.401, allocations: 15.14 MB / 0.8527 GB, free: 21.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07215/3.473, allocations: 17.45 MB / 0.8697 GB, free: 20.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008355/3.474, allocations: 25.7 kB / 0.8698 GB, free: 20.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005648/3.48, allocations: 7.562 kB / 0.8698 GB, free: 20.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001507/3.481, allocations: 0.7701 MB / 0.8705 GB, free: 20.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1992/3.681, allocations: 61.72 MB / 0.9308 GB, free: 12.49 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05356/3.734, allocations: 22.44 MB / 0.9527 GB, free: 8.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02399/3.758, allocations: 7.34 MB / 0.9599 GB, free: 1.602 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5129/4.271, allocations: 23.37 MB / 0.9827 GB, free: 58.59 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/4.271, allocations: 101.2 kB / 0.9828 GB, free: 58.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=743): time 1.469e-05/4.271, allocations: 0 / 0.9828 GB, free: 58.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=753): time 0.1042/4.376, allocations: 28.42 MB / 1.011 GB, free: 55.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/4.376, allocations: 143.3 kB / 1.011 GB, free: 54.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009973/4.386, allocations: 3.276 MB / 1.014 GB, free: 54.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001902/4.388, allocations: 25.7 kB / 1.014 GB, free: 54.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004686/4.392, allocations: 4.764 MB / 1.019 GB, free: 52.3 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004474/4.397, allocations: 2.413 MB / 1.021 GB, free: 50.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001904/4.399, allocations: 0 / 1.021 GB, free: 50.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001068/4.4, allocations: 0.6326 MB / 1.022 GB, free: 50.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01444/4.414, allocations: 4.709 MB / 1.026 GB, free: 50.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01647/4.431, allocations: 6.52 MB / 1.033 GB, free: 48.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02527/4.456, allocations: 7.011 MB / 1.039 GB, free: 48.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/4.456, allocations: 15.59 kB / 1.039 GB, free: 48.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.05322/4.51, allocations: 14.95 MB / 1.054 GB, free: 43.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.817e-05/4.51, allocations: 31.52 kB / 1.054 GB, free: 43.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/4.51, allocations: 54.66 kB / 1.054 GB, free: 43.28 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01288/4.523, allocations: 3.314 MB / 1.057 GB, free: 42.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01416/4.537, allocations: 1.514 MB / 1.059 GB, free: 42.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02208/4.559, allocations: 13.88 MB / 1.072 GB, free: 32.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/4.57, allocations: 283 kB / 1.073 GB, free: 32.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002725/4.573, allocations: 341.5 kB / 1.073 GB, free: 32.2 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.rotorCage.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [2] smpmQS.rotorCage.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [2] smpmQS.rotorCage.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [2] smpmQS.rotorCage.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [2] 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] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary 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[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] 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[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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[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.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: currentQuasiRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.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: powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real 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[3].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.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.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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smpmQS.rotorCage.star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [2] smpmQS.rotorCage.star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [2] smpmQS.rotorCage.star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [2] smpmQS.rotorCage.star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [2] 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 (782): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.004919/4.578, allocations: 412.1 kB / 1.073 GB, free: 32.02 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04523/4.623, allocations: 13.07 MB / 1.086 GB, free: 26.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003691/4.627, allocations: 0.549 MB / 1.087 GB, free: 26.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05075/4.678, allocations: 14.14 MB / 1.1 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04244/4.72, allocations: 11.1 MB / 1.111 GB, free: 4.582 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.866e-05/4.72, allocations: 4 kB / 1.111 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002374/4.72, allocations: 33.77 kB / 1.111 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.602/5.323, allocations: 28.07 MB / 1.139 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001119/5.323, allocations: 7.922 kB / 1.139 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01059/5.333, allocations: 0.9729 MB / 1.14 GB, free: 68.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01359/5.347, allocations: 3.414 MB / 1.143 GB, free: 68.65 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001913/5.349, allocations: 80.92 kB / 1.143 GB, free: 68.65 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02969/5.379, allocations: 18.09 MB / 1.161 GB, free: 59.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/5.379, allocations: 7.656 kB / 1.161 GB, free: 59.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06272/5.441, allocations: 21.48 MB / 1.182 GB, free: 57.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00734/5.449, allocations: 1.712 MB / 1.183 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003774/5.453, allocations: 20.19 kB / 1.183 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008749/5.461, allocations: 243.6 kB / 1.184 GB, free: 57.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003103/5.465, allocations: 0.5486 MB / 1.184 GB, free: 57.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002037/5.467, allocations: 206.3 kB / 1.184 GB, free: 57.59 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007328/5.474, allocations: 2.396 MB / 1.187 GB, free: 57.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.52e-07/5.474, allocations: 0 / 1.187 GB, free: 57.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01872/5.493, allocations: 1.882 MB / 1.189 GB, free: 57.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (502): * Single equations (assignments): 436 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {4 4,6 9,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.08692/5.58, allocations: 23.53 MB / 1.212 GB, free: 54.29 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03257/5.612, allocations: 11.84 MB / 1.223 GB, free: 51.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/5.613, allocations: 4.438 kB / 1.223 GB, free: 51.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01944/5.632, allocations: 6.516 MB / 1.229 GB, free: 48.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01208/5.644, allocations: 1.02 MB / 1.23 GB, free: 47.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08403/5.728, allocations: 24.35 MB / 1.254 GB, free: 34.71 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0182/5.746, allocations: 7.765 MB / 1.262 GB, free: 28.89 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01311/5.76, allocations: 1.772 MB / 1.264 GB, free: 27.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.012/5.772, allocations: 4.43 MB / 1.268 GB, free: 23.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.382e-06/5.772, allocations: 0 / 1.268 GB, free: 23.54 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.945/6.717, allocations: 186.8 MB / 1.45 GB, free: 2.324 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004258/6.717, allocations: 206.3 kB / 1.45 GB, free: 2.035 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 11.13/17.85, allocations: 2.078 kB / 1.45 GB, free: 2.035 MB / 474.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_Mains_res.mat does not exist to compare? outputFormat=mat