Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.497/2.497, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.365e-05/2.402e-05, allocations: 0 / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3054, allocations: 44.5 MB / 294.3 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5346/0.8401, allocations: 151.1 MB / 445.4 MB, free: 68.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003552/0.8405, allocations: 102.6 kB / 445.5 MB, free: 68.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854/2.695, allocations: 385.1 MB / 0.8111 GB, free: 34.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.286e-06/2.695, allocations: 4 kB / 0.8111 GB, free: 34.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001195/2.696, allocations: 282.3 kB / 0.8113 GB, free: 34.09 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.06422/2.76, allocations: 11.23 MB / 0.8223 GB, free: 29.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/2.761, allocations: 10 kB / 0.8223 GB, free: 29.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07441/2.835, allocations: 5.188 MB / 0.8274 GB, free: 25.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04927/2.884, allocations: 9.63 MB / 0.8368 GB, free: 17.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001692/2.886, allocations: 400 kB / 0.8372 GB, free: 16.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007583/2.894, allocations: 0.699 MB / 0.8379 GB, free: 15.94 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06483/2.959, allocations: 15.14 MB / 0.8526 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4559/3.415, allocations: 17.44 MB / 0.8697 GB, free: 38.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009191/3.416, allocations: 18.47 kB / 0.8697 GB, free: 38.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005446/3.421, allocations: 9.938 kB / 0.8697 GB, free: 38.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001705/3.423, allocations: 0.7697 MB / 0.8705 GB, free: 38.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1698/3.593, allocations: 61.68 MB / 0.9307 GB, free: 26.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03902/3.632, allocations: 22.43 MB / 0.9526 GB, free: 26.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01798/3.65, allocations: 7.342 MB / 0.9598 GB, free: 23.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0691/3.719, allocations: 23.07 MB / 0.9823 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/3.719, allocations: 103.8 kB / 0.9824 GB, free: 12.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=743): time 1.291e-05/3.719, allocations: 0 / 0.9824 GB, free: 12.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=753): time 0.09475/3.814, allocations: 28.42 MB / 1.01 GB, free: 15.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/3.814, allocations: 140.5 kB / 1.01 GB, free: 15.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009569/3.824, allocations: 3.275 MB / 1.013 GB, free: 13.79 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001928/3.826, allocations: 28.42 kB / 1.014 GB, free: 13.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00526/3.831, allocations: 4.759 MB / 1.018 GB, free: 10.17 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004909/3.836, allocations: 2.412 MB / 1.021 GB, free: 8.254 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/3.838, allocations: 0 / 1.021 GB, free: 8.254 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001074/3.839, allocations: 0.641 MB / 1.021 GB, free: 7.797 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01311/3.852, allocations: 4.707 MB / 1.026 GB, free: 5.082 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01619/3.868, allocations: 6.52 MB / 1.032 GB, free: 14.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02324/3.892, allocations: 7.008 MB / 1.039 GB, free: 8.668 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/3.892, allocations: 16 kB / 1.039 GB, free: 8.652 MB / 474.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.4692/4.361, allocations: 15.81 MB / 1.054 GB, free: 87.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.07e-05/4.361, allocations: 34.19 kB / 1.054 GB, free: 87.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/4.361, allocations: 52.97 kB / 1.054 GB, free: 87.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01245/4.374, allocations: 3.326 MB / 1.058 GB, free: 87.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01255/4.387, allocations: 1.512 MB / 1.059 GB, free: 87.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01925/4.406, allocations: 13.88 MB / 1.073 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009656/4.416, allocations: 284.3 kB / 1.073 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002614/4.418, allocations: 334.5 kB / 1.073 GB, free: 81.12 MB / 474.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.004607/4.423, allocations: 409.9 kB / 1.074 GB, free: 80.99 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04112/4.464, allocations: 13.08 MB / 1.087 GB, free: 80.47 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00395/4.468, allocations: 0.5496 MB / 1.087 GB, free: 80.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04809/4.516, allocations: 14.14 MB / 1.101 GB, free: 79.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03265/4.549, allocations: 11.09 MB / 1.112 GB, free: 79.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.224e-05/4.549, allocations: 6.312 kB / 1.112 GB, free: 79.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002473/4.549, allocations: 35.98 kB / 1.112 GB, free: 79.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08129/4.631, allocations: 26.81 MB / 1.138 GB, free: 69.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001363/4.631, allocations: 6.75 kB / 1.138 GB, free: 69.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009113/4.64, allocations: 0.9749 MB / 1.139 GB, free: 69.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01216/4.652, allocations: 3.41 MB / 1.142 GB, free: 68.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002221/4.654, allocations: 86.59 kB / 1.142 GB, free: 68.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02619/4.681, allocations: 18.09 MB / 1.16 GB, free: 55.35 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.559e-05/4.681, allocations: 12.92 kB / 1.16 GB, free: 55.35 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05773/4.738, allocations: 21.47 MB / 1.181 GB, free: 41.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006688/4.745, allocations: 1.713 MB / 1.183 GB, free: 39.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003566/4.749, allocations: 14.34 kB / 1.183 GB, free: 39.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007945/4.757, allocations: 243.4 kB / 1.183 GB, free: 39.31 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003018/4.76, allocations: 0.5502 MB / 1.183 GB, free: 38.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002109/4.762, allocations: 213.4 kB / 1.184 GB, free: 38.78 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007064/4.769, allocations: 2.392 MB / 1.186 GB, free: 36.64 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.42e-07/4.769, allocations: 5.125 kB / 1.186 GB, free: 36.64 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01358/4.783, allocations: 1.883 MB / 1.188 GB, free: 34.78 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.05872/4.841, allocations: 23.52 MB / 1.211 GB, free: 13.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03036/4.872, allocations: 11.86 MB / 1.222 GB, free: 3.156 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/4.872, allocations: 1.812 kB / 1.222 GB, free: 3.156 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3963/5.268, allocations: 7.193 MB / 1.229 GB, free: 92.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0122/5.28, allocations: 1.017 MB / 1.23 GB, free: 92.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0884/5.369, allocations: 24.35 MB / 1.254 GB, free: 89.05 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02048/5.39, allocations: 7.769 MB / 1.262 GB, free: 87.99 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01337/5.403, allocations: 1.775 MB / 1.263 GB, free: 87.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01327/5.416, allocations: 4.433 MB / 1.268 GB, free: 87.79 MB / 474.7 MB Notification: Performance of SimCode: time 3.566e-06/5.416, allocations: 0 / 1.268 GB, free: 87.79 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8358/6.252, allocations: 186.3 MB / 1.45 GB, free: 68.37 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002861/6.252, allocations: 202 kB / 1.45 GB, free: 68.11 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.587/15.84, allocations: 7.266 kB / 1.45 GB, free: 68.11 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_Mains_res.mat does not exist to compare? outputFormat=mat