Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.854e-05/3.864e-05, allocations: 0 / 292.8 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.124, allocations: 50.4 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4761/0.6002, allocations: 110.4 MB / 453.5 MB, free: 332 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.6005, allocations: 90.23 kB / 453.6 MB, free: 288 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2338/0.8344, allocations: 53.17 MB / 0.4949 GB, free: 14.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.8344, allocations: 0 / 0.4949 GB, free: 14.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003458/0.8348, allocations: 79.88 kB / 0.495 GB, free: 14.77 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01003/0.8448, allocations: 2.601 MB / 0.4975 GB, free: 12.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.8449, allocations: 12.03 kB / 0.4975 GB, free: 12.1 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001416/0.8463, allocations: 366.8 kB / 0.4979 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/0.8481, allocations: 348 kB / 0.4982 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007232/0.8554, allocations: 1.908 MB / 0.5001 GB, free: 9.422 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002998/0.8557, allocations: 189 kB / 0.5003 GB, free: 9.234 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/0.8568, allocations: 251.9 kB / 0.5005 GB, free: 8.988 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009631/0.8665, allocations: 3.161 MB / 0.5036 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.8666, allocations: 12.19 kB / 0.5036 GB, free: 5.672 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004101/0.8671, allocations: 108 kB / 0.5037 GB, free: 5.566 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001912/0.8673, allocations: 116.9 kB / 0.5038 GB, free: 5.449 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008659/0.8759, allocations: 2.485 MB / 0.5062 GB, free: 2.957 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02934/0.9053, allocations: 10.48 MB / 0.5165 GB, free: 8.125 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003382/0.9088, allocations: 1.401 MB / 0.5178 GB, free: 6.656 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.9108, allocations: 0.7574 MB / 0.5186 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005008/0.9114, allocations: 219.1 kB / 0.5188 GB, free: 5.648 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.42e-05/0.9114, allocations: 43.56 kB / 0.5188 GB, free: 5.598 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.717e-06/0.9115, allocations: 0 / 0.5188 GB, free: 5.598 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.3147/1.226, allocations: 6.161 MB / 0.5248 GB, free: 110.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/1.226, allocations: 66.34 kB / 0.5249 GB, free: 110.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004859/1.231, allocations: 1.531 MB / 0.5264 GB, free: 110.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003444/1.232, allocations: 53.52 kB / 0.5265 GB, free: 110.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/1.233, allocations: 1.262 MB / 0.5277 GB, free: 110 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006815/1.234, allocations: 457.8 kB / 0.5281 GB, free: 109.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/1.234, allocations: 33.12 kB / 0.5282 GB, free: 109.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/1.234, allocations: 374.8 kB / 0.5285 GB, free: 109.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002028/1.236, allocations: 0.7768 MB / 0.5293 GB, free: 109.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002562/1.239, allocations: 1.278 MB / 0.5305 GB, free: 108.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002722/1.241, allocations: 0.9995 MB / 0.5315 GB, free: 108.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-05/1.241, allocations: 5.281 kB / 0.5315 GB, free: 108.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.007268/1.249, allocations: 2.444 MB / 0.5339 GB, free: 108.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/1.249, allocations: 10.44 kB / 0.5339 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.362e-05/1.249, allocations: 20.72 kB / 0.5339 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/1.25, allocations: 241 kB / 0.5341 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003506/1.253, allocations: 444.5 kB / 0.5346 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/1.257, allocations: 2.989 MB / 0.5375 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/1.26, allocations: 129.4 kB / 0.5376 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003517/1.26, allocations: 72.2 kB / 0.5377 GB, free: 106.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004604/1.261, allocations: 209.1 kB / 0.5379 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006343/1.261, allocations: 188.4 kB / 0.5381 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005612/1.267, allocations: 2.1 MB / 0.5401 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/1.267, allocations: 16.16 kB / 0.5401 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/1.267, allocations: 5.266 kB / 0.5401 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/1.267, allocations: 10.06 kB / 0.5401 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/1.28, allocations: 4.835 MB / 0.5449 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/1.28, allocations: 1.375 kB / 0.5449 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002348/1.283, allocations: 287.8 kB / 0.5451 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008866/1.284, allocations: 205.7 kB / 0.5453 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/1.284, allocations: 32.5 kB / 0.5454 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002884/1.287, allocations: 2.97 MB / 0.5483 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/1.287, allocations: 3.875 kB / 0.5483 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006846/1.294, allocations: 3.356 MB / 0.5515 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/1.295, allocations: 442.1 kB / 0.552 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/1.295, allocations: 27.5 kB / 0.552 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/1.297, allocations: 98.17 kB / 0.5521 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/1.297, allocations: 89.84 kB / 0.5522 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/1.298, allocations: 40.31 kB / 0.5522 GB, free: 102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002442/1.3, allocations: 1.173 MB / 0.5534 GB, free: 101.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.12e-07/1.3, allocations: 0 / 0.5534 GB, free: 101.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002762/1.303, allocations: 0.5232 MB / 0.5539 GB, free: 101.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007633/1.31, allocations: 4.818 MB / 0.5586 GB, free: 99.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005232/1.316, allocations: 2.324 MB / 0.5608 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/1.316, allocations: 0 / 0.5608 GB, free: 98.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002695/1.319, allocations: 1.339 MB / 0.5621 GB, free: 97.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/1.322, allocations: 462.2 kB / 0.5626 GB, free: 97.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/1.334, allocations: 4.614 MB / 0.5671 GB, free: 95.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002036/1.336, allocations: 2.066 MB / 0.5691 GB, free: 94.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002574/1.339, allocations: 0.5105 MB / 0.5696 GB, free: 94.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001962/1.341, allocations: 0.9888 MB / 0.5706 GB, free: 93.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.443e-06/1.341, allocations: 2.406 kB / 0.5706 GB, free: 93.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1111/1.452, allocations: 47.72 MB / 0.6172 GB, free: 70.24 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/1.452, allocations: 195.6 kB / 0.6174 GB, free: 70.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.235/5.687, allocations: 0 / 0.6174 GB, free: 70.02 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat