Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.6e-05/3.625e-05, allocations: 4 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 44.51 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5444/0.6458, allocations: 156.2 MB / 456.2 MB, free: 4.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004056/0.6462, allocations: 99.48 kB / 456.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.875/2.521, allocations: 397 MB / 0.8333 GB, free: 9.809 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.184e-06/2.521, allocations: 0 / 0.8333 GB, free: 9.809 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001238/2.522, allocations: 311.5 kB / 0.8336 GB, free: 9.504 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: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.7785/3.301, allocations: 11.31 MB / 0.8447 GB, free: 20.84 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/3.301, allocations: 8.219 kB / 0.8447 GB, free: 20.84 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009194/3.31, allocations: 1.819 MB / 0.8464 GB, free: 20.72 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05669/3.367, allocations: 6.421 MB / 0.8527 GB, free: 20.07 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03914/3.406, allocations: 9.642 MB / 0.8621 GB, free: 19.53 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001742/3.408, allocations: 0.9526 MB / 0.8631 GB, free: 19.5 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00766/3.416, allocations: 1.233 MB / 0.8643 GB, free: 19.5 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07444/3.49, allocations: 20.65 MB / 0.8844 GB, free: 17.97 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008605/3.491, allocations: 31.34 kB / 0.8845 GB, free: 17.96 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006117/3.497, allocations: 0.5288 MB / 0.885 GB, free: 17.96 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001415/3.499, allocations: 0.8496 MB / 0.8858 GB, free: 17.93 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05889/3.557, allocations: 18.64 MB / 0.904 GB, free: 17.82 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1891/3.747, allocations: 65.85 MB / 0.9683 GB, free: 3.172 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06794/3.815, allocations: 46.16 MB / 1.013 GB, free: 7.227 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02402/3.839, allocations: 7.78 MB / 1.021 GB, free: 112 kB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.491/4.33, allocations: 23.8 MB / 1.044 GB, free: 87.42 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001052/4.33, allocations: 102.9 kB / 1.044 GB, free: 87.38 MB / 490.8 MB Notification: Performance of pre-optimization done (n=771): time 1.293e-05/4.33, allocations: 2.344 kB / 1.044 GB, free: 87.38 MB / 490.8 MB Notification: Performance of matching and sorting (n=813): time 0.09012/4.42, allocations: 27.04 MB / 1.071 GB, free: 85.07 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/4.42, allocations: 120.8 kB / 1.071 GB, free: 85 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01118/4.431, allocations: 3.773 MB / 1.075 GB, free: 84.6 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002014/4.434, allocations: 133.9 kB / 1.075 GB, free: 84.57 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004626/4.438, allocations: 5.082 MB / 1.08 GB, free: 81.91 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005043/4.443, allocations: 2.708 MB / 1.082 GB, free: 80.17 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002383/4.446, allocations: 162.2 kB / 1.082 GB, free: 80.17 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001488/4.447, allocations: 0.6762 MB / 1.083 GB, free: 79.84 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01574/4.463, allocations: 5.076 MB / 1.088 GB, free: 79.82 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01809/4.481, allocations: 7.554 MB / 1.095 GB, free: 75.61 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0264/4.508, allocations: 6.442 MB / 1.102 GB, free: 73.06 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001775/4.508, allocations: 21.5 kB / 1.102 GB, free: 73.06 MB / 490.8 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.06444/4.572, allocations: 15.68 MB / 1.117 GB, free: 67.02 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.937e-05/4.573, allocations: 37.69 kB / 1.117 GB, free: 67.02 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001892/4.573, allocations: 76.84 kB / 1.117 GB, free: 67.02 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01436/4.587, allocations: 4.115 MB / 1.121 GB, free: 65.78 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01361/4.601, allocations: 1.665 MB / 1.123 GB, free: 65.73 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02196/4.623, allocations: 12.2 MB / 1.135 GB, free: 57.82 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0111/4.634, allocations: 453.2 kB / 1.135 GB, free: 57.67 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002877/4.637, allocations: 401.5 kB / 1.136 GB, free: 57.6 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 343 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 814 * 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.005399/4.642, allocations: 0.5867 MB / 1.136 GB, free: 57.2 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003852/4.646, allocations: 0.6089 MB / 1.137 GB, free: 56.88 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0476/4.694, allocations: 14.38 MB / 1.151 GB, free: 47.57 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003246/4.694, allocations: 194.3 kB / 1.151 GB, free: 47.41 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.123e-05/4.694, allocations: 0 / 1.151 GB, free: 47.41 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001827/4.695, allocations: 41.45 kB / 1.151 GB, free: 47.4 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0875/4.782, allocations: 28.81 MB / 1.179 GB, free: 23.32 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000116/4.782, allocations: 4 kB / 1.179 GB, free: 23.32 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01011/4.792, allocations: 1.056 MB / 1.18 GB, free: 22.51 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01363/4.806, allocations: 3.991 MB / 1.184 GB, free: 19.16 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002299/4.808, allocations: 169.4 kB / 1.184 GB, free: 19.02 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4305/5.239, allocations: 12.02 MB / 1.196 GB, free: 77.89 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.139e-05/5.239, allocations: 6.156 kB / 1.196 GB, free: 77.89 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06367/5.303, allocations: 21.78 MB / 1.217 GB, free: 76.57 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007902/5.311, allocations: 1.773 MB / 1.219 GB, free: 76.48 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003811/5.315, allocations: 122.2 kB / 1.219 GB, free: 76.48 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008989/5.324, allocations: 332.5 kB / 1.219 GB, free: 76.48 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003255/5.327, allocations: 0.5822 MB / 1.22 GB, free: 76.47 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00229/5.329, allocations: 219.7 kB / 1.22 GB, free: 76.47 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00911/5.338, allocations: 2.804 MB / 1.223 GB, free: 76.27 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.122e-06/5.338, allocations: 0 / 1.223 GB, free: 76.27 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01483/5.353, allocations: 2.214 MB / 1.225 GB, free: 76.27 MB / 490.8 MB 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 (551): * Single equations (assignments): 495 * 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.06477/5.418, allocations: 23.85 MB / 1.248 GB, free: 73.63 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03777/5.456, allocations: 13.01 MB / 1.261 GB, free: 72.08 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.404e-05/5.456, allocations: 2.812 kB / 1.261 GB, free: 72.08 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02086/5.477, allocations: 6.72 MB / 1.268 GB, free: 69.23 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01316/5.49, allocations: 1.275 MB / 1.269 GB, free: 68.89 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09616/5.586, allocations: 25.76 MB / 1.294 GB, free: 59.05 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02113/5.608, allocations: 8.072 MB / 1.302 GB, free: 53.65 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01433/5.622, allocations: 2.001 MB / 1.304 GB, free: 52.29 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01285/5.635, allocations: 4.725 MB / 1.308 GB, free: 47.89 MB / 490.8 MB Notification: Performance of SimCode: time 2.034e-06/5.635, allocations: 4 kB / 1.308 GB, free: 47.89 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8734/6.508, allocations: 212.6 MB / 1.516 GB, free: 3.883 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/6.509, allocations: 247.9 kB / 1.516 GB, free: 3.547 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/17.49, allocations: 0 / 1.516 GB, free: 3.547 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat