Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.05e-05, allocations: 0 / 292.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.4 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5817/0.695, allocations: 164.1 MB / 0.4949 GB, free: 10.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003803/0.6954, allocations: 105.1 kB / 0.495 GB, free: 10.92 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355/3.051, allocations: 386.1 MB / 0.8721 GB, free: 42.68 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.506e-06/3.051, allocations: 1.125 kB / 0.8721 GB, free: 42.68 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001664/3.052, allocations: 299.6 kB / 0.8724 GB, free: 42.64 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05748/3.11, allocations: 11.02 MB / 0.8832 GB, free: 39.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/3.11, allocations: 10 kB / 0.8832 GB, free: 39.17 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008762/3.119, allocations: 1.734 MB / 0.8849 GB, free: 39.05 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03842/3.157, allocations: 4.484 MB / 0.8892 GB, free: 38.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04075/3.198, allocations: 9.531 MB / 0.8986 GB, free: 37.17 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001313/3.199, allocations: 0.8979 MB / 0.8994 GB, free: 37.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006009/3.205, allocations: 1.192 MB / 0.9006 GB, free: 37.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06165/3.267, allocations: 18.41 MB / 0.9186 GB, free: 35.65 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000944/3.268, allocations: 27.36 kB / 0.9186 GB, free: 35.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005152/3.273, allocations: 0.509 MB / 0.9191 GB, free: 35.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001305/3.275, allocations: 0.8221 MB / 0.9199 GB, free: 35.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04867/3.323, allocations: 15.34 MB / 0.9349 GB, free: 35.56 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1524/3.476, allocations: 61.01 MB / 0.9945 GB, free: 7.723 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0429/3.519, allocations: 32.94 MB / 1.027 GB, free: 9.066 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01067/3.53, allocations: 3.68 MB / 1.03 GB, free: 6.023 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03289/3.562, allocations: 8.927 MB / 1.039 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.955e-05/3.563, allocations: 77.41 kB / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=362): time 8.125e-06/3.563, allocations: 0 / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 0.0512/3.614, allocations: 14 MB / 1.053 GB, free: 2.789 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/3.614, allocations: 94.58 kB / 1.053 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4118/4.026, allocations: 4.501 MB / 1.057 GB, free: 87.02 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009011/4.027, allocations: 92.45 kB / 1.057 GB, free: 86.98 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00539/4.032, allocations: 5.623 MB / 1.063 GB, free: 85.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002136/4.034, allocations: 1.406 MB / 1.064 GB, free: 84.73 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008425/4.035, allocations: 145.8 kB / 1.064 GB, free: 84.73 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006031/4.036, allocations: 0.5871 MB / 1.065 GB, free: 84.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008648/4.045, allocations: 2.845 MB / 1.068 GB, free: 84.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01221/4.057, allocations: 5.897 MB / 1.073 GB, free: 80.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/4.067, allocations: 4.238 MB / 1.078 GB, free: 80.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002235/4.068, allocations: 31.75 kB / 1.078 GB, free: 80.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02909/4.097, allocations: 9.575 MB / 1.087 GB, free: 80.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/4.097, allocations: 49.59 kB / 1.087 GB, free: 80.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001886/4.097, allocations: 108.6 kB / 1.087 GB, free: 80.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00422/4.101, allocations: 0.9381 MB / 1.088 GB, free: 79.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01183/4.113, allocations: 1.638 MB / 1.09 GB, free: 79.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/4.13, allocations: 9.389 MB / 1.099 GB, free: 75.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009558/4.14, allocations: 424.3 kB / 1.099 GB, free: 75.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00174/4.141, allocations: 365.7 kB / 1.099 GB, free: 75.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001759/4.143, allocations: 0.5699 MB / 1.1 GB, free: 75.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/4.145, allocations: 0.5303 MB / 1.101 GB, free: 75.51 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02593/4.171, allocations: 6.477 MB / 1.107 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.176e-05/4.171, allocations: 45.89 kB / 1.107 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.672e-05/4.171, allocations: 12.02 kB / 1.107 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001201/4.171, allocations: 20.72 kB / 1.107 GB, free: 75.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0489/4.22, allocations: 15.9 MB / 1.122 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.362e-05/4.22, allocations: 6.719 kB / 1.122 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007166/4.227, allocations: 0.7711 MB / 1.123 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003858/4.231, allocations: 0.7758 MB / 1.124 GB, free: 74.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000898/4.232, allocations: 87.36 kB / 1.124 GB, free: 74.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/4.247, allocations: 8.549 MB / 1.132 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/4.247, allocations: 6.844 kB / 1.132 GB, free: 70.33 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02325/4.27, allocations: 9.918 MB / 1.142 GB, free: 68.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004524/4.274, allocations: 1.082 MB / 1.143 GB, free: 68.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002227/4.277, allocations: 73.69 kB / 1.143 GB, free: 68.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006202/4.283, allocations: 239.2 kB / 1.143 GB, free: 68.51 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001217/4.284, allocations: 271.8 kB / 1.144 GB, free: 68.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004246/4.285, allocations: 120.8 kB / 1.144 GB, free: 68.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01207/4.297, allocations: 3.322 MB / 1.147 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.213e-06/4.297, allocations: 0 / 1.147 GB, free: 67.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01799/4.315, allocations: 1.988 MB / 1.149 GB, free: 67.66 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03693/4.352, allocations: 11.98 MB / 1.161 GB, free: 61.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0329/4.385, allocations: 7.389 MB / 1.168 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/4.385, allocations: 2.438 kB / 1.168 GB, free: 58.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01337/4.398, allocations: 3.443 MB / 1.171 GB, free: 57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01563/4.414, allocations: 1.259 MB / 1.173 GB, free: 56.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1033/4.517, allocations: 20.39 MB / 1.192 GB, free: 42.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02537/4.543, allocations: 7.621 MB / 1.2 GB, free: 36.39 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01932/4.562, allocations: 2.209 MB / 1.202 GB, free: 34.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01581/4.578, allocations: 4.475 MB / 1.206 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of SimCode: time 1.713e-06/4.578, allocations: 0 / 1.206 GB, free: 30.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7782/5.356, allocations: 157 MB / 1.36 GB, free: 46.49 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/5.357, allocations: 233.5 kB / 1.36 GB, free: 46.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.81/14.17, allocations: 2.812 kB / 1.36 GB, free: 46.18 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat