Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 205.8 MB / 218.9 MB, free: 9.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.67e-05, allocations: 4 kB / 269.5 MB, free: 6.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 47.57 MB / 317 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5561/0.6628, allocations: 158.4 MB / 475.5 MB, free: 10.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003761/0.6633, allocations: 97.38 kB / 475.6 MB, free: 10.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.869/2.533, allocations: 388.3 MB / 0.8436 GB, free: 4.273 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.515e-06/2.533, allocations: 0 / 0.8436 GB, free: 4.273 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001177/2.534, allocations: 287.7 kB / 0.8438 GB, free: 3.992 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.8247/3.359, allocations: 11.22 MB / 0.8548 GB, free: 18.65 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/3.359, allocations: 9.938 kB / 0.8548 GB, free: 18.65 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01021/3.369, allocations: 1.95 MB / 0.8567 GB, free: 18.5 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04531/3.414, allocations: 5.203 MB / 0.8618 GB, free: 17.84 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03399/3.448, allocations: 9.626 MB / 0.8712 GB, free: 16.83 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001447/3.45, allocations: 0.8988 MB / 0.8721 GB, free: 16.8 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005875/3.456, allocations: 1.181 MB / 0.8732 GB, free: 16.8 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06302/3.519, allocations: 19.19 MB / 0.892 GB, free: 15.4 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007754/3.52, allocations: 25.72 kB / 0.892 GB, free: 15.39 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005294/3.525, allocations: 0.5015 MB / 0.8925 GB, free: 15.39 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001204/3.526, allocations: 0.7695 MB / 0.8932 GB, free: 15.36 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04994/3.576, allocations: 16.92 MB / 0.9098 GB, free: 15.31 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1555/3.732, allocations: 63.24 MB / 0.9715 GB, free: 4.492 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04052/3.772, allocations: 22.18 MB / 0.9932 GB, free: 4.609 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02186/3.794, allocations: 7.42 MB / 1 GB, free: 14.34 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4966/4.291, allocations: 23.79 MB / 1.024 GB, free: 65.05 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/4.291, allocations: 110.1 kB / 1.024 GB, free: 65.01 MB / 490.8 MB Notification: Performance of pre-optimization done (n=747): time 1.25e-05/4.291, allocations: 1.406 kB / 1.024 GB, free: 65.01 MB / 490.8 MB Notification: Performance of matching and sorting (n=757): time 0.078/4.369, allocations: 25.9 MB / 1.049 GB, free: 61.25 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/4.369, allocations: 142 kB / 1.049 GB, free: 61.15 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/4.379, allocations: 3.871 MB / 1.053 GB, free: 60.78 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001762/4.381, allocations: 130.8 kB / 1.053 GB, free: 60.75 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004036/4.385, allocations: 4.759 MB / 1.058 GB, free: 58.35 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004288/4.39, allocations: 2.52 MB / 1.06 GB, free: 56.72 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001938/4.392, allocations: 145.4 kB / 1.06 GB, free: 56.72 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001031/4.393, allocations: 0.6329 MB / 1.061 GB, free: 56.4 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01239/4.405, allocations: 4.715 MB / 1.066 GB, free: 56.38 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01448/4.42, allocations: 6.543 MB / 1.072 GB, free: 54.38 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01547/4.435, allocations: 5.884 MB / 1.078 GB, free: 54.26 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.752e-05/4.435, allocations: 13.81 kB / 1.078 GB, free: 54.26 MB / 490.8 MB Notification: Performance of matching and sorting (n=1043) (initialization): time 0.04012/4.475, allocations: 14.06 MB / 1.091 GB, free: 53.52 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/4.475, allocations: 31.06 kB / 1.091 GB, free: 53.52 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/4.476, allocations: 54.09 kB / 1.092 GB, free: 53.52 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/4.487, allocations: 3.347 MB / 1.095 GB, free: 53.44 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/4.499, allocations: 1.478 MB / 1.096 GB, free: 53.44 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0196/4.518, allocations: 13.83 MB / 1.11 GB, free: 46.41 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009517/4.528, allocations: 393.2 kB / 1.11 GB, free: 46.41 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002287/4.53, allocations: 338.6 kB / 1.11 GB, free: 46.41 MB / 490.8 MB 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 (786): * Single equations (assignments): 721 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.003996/4.534, allocations: 0.5116 MB / 1.111 GB, free: 46.27 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003274/4.538, allocations: 0.5956 MB / 1.112 GB, free: 45.95 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03998/4.578, allocations: 13.47 MB / 1.125 GB, free: 41.07 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02696/4.605, allocations: 10.3 MB / 1.135 GB, free: 36.71 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-05/4.605, allocations: 10.28 kB / 1.135 GB, free: 36.71 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001569/4.605, allocations: 31.08 kB / 1.135 GB, free: 36.71 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0717/4.677, allocations: 27.91 MB / 1.162 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.625e-05/4.677, allocations: 7.516 kB / 1.162 GB, free: 18.62 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008519/4.685, allocations: 0.9408 MB / 1.163 GB, free: 17.9 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01156/4.697, allocations: 3.45 MB / 1.166 GB, free: 15.07 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001851/4.699, allocations: 161.2 kB / 1.167 GB, free: 14.93 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02548/4.724, allocations: 18.2 MB / 1.184 GB, free: 13.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.477e-06/4.724, allocations: 6.25 kB / 1.184 GB, free: 13.21 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4781/5.203, allocations: 22.66 MB / 1.206 GB, free: 73.54 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007286/5.21, allocations: 1.726 MB / 1.208 GB, free: 73.45 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003319/5.213, allocations: 120.9 kB / 1.208 GB, free: 73.45 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008236/5.222, allocations: 313.2 kB / 1.209 GB, free: 73.45 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002811/5.224, allocations: 0.5531 MB / 1.209 GB, free: 73.44 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001708/5.226, allocations: 206.5 kB / 1.209 GB, free: 73.44 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008842/5.235, allocations: 2.899 MB / 1.212 GB, free: 73.23 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.212e-06/5.235, allocations: 0.5312 kB / 1.212 GB, free: 73.23 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0145/5.25, allocations: 2.151 MB / 1.214 GB, free: 73.23 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (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,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (505): * Single equations (assignments): 439 * 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%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.1031/5.353, allocations: 23 MB / 1.237 GB, free: 70.13 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0309/5.384, allocations: 11.84 MB / 1.248 GB, free: 69.46 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/5.384, allocations: 0 / 1.248 GB, free: 69.46 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01801/5.402, allocations: 6.484 MB / 1.255 GB, free: 68.81 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01257/5.414, allocations: 1.318 MB / 1.256 GB, free: 68.79 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07767/5.492, allocations: 24.76 MB / 1.28 GB, free: 64.99 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01659/5.509, allocations: 7.768 MB / 1.288 GB, free: 63.92 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01134/5.52, allocations: 1.808 MB / 1.289 GB, free: 63.71 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01068/5.531, allocations: 4.448 MB / 1.294 GB, free: 63.64 MB / 0.4949 GB Notification: Performance of SimCode: time 1.924e-06/5.531, allocations: 0 / 1.294 GB, free: 63.64 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7996/6.331, allocations: 203.6 MB / 1.492 GB, free: 58.74 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/6.331, allocations: 238.2 kB / 1.493 GB, free: 58.43 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.6/15.93, allocations: 0 / 1.493 GB, free: 58.43 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat