Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.914e-05/4.93e-05, allocations: 0 / 255.5 MB, free: 2.586 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1456, allocations: 44.5 MB / 300 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6753/0.821, allocations: 150.1 MB / 450.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.8214, allocations: 110.9 kB / 450.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.947/2.769, allocations: 385.9 MB / 0.8165 GB, free: 28.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.874e-06/2.769, allocations: 4 kB / 0.8165 GB, free: 28.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000902/2.77, allocations: 291.6 kB / 0.8168 GB, free: 28.65 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.04917/2.819, allocations: 11.03 MB / 0.8276 GB, free: 17.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/2.819, allocations: 12.02 kB / 0.8276 GB, free: 17.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008211/2.827, allocations: 1.778 MB / 0.8293 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05499/2.882, allocations: 6.336 MB / 0.8355 GB, free: 9.352 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7524/3.635, allocations: 9.446 MB / 0.8447 GB, free: 29.74 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001615/3.636, allocations: 0.9178 MB / 0.8456 GB, free: 29.71 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00697/3.643, allocations: 1.203 MB / 0.8468 GB, free: 29.71 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07107/3.715, allocations: 20.16 MB / 0.8665 GB, free: 28.32 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008078/3.715, allocations: 22.94 kB / 0.8665 GB, free: 28.32 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005615/3.721, allocations: 0.5136 MB / 0.867 GB, free: 28.32 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001461/3.723, allocations: 0.8397 MB / 0.8678 GB, free: 28.29 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05525/3.778, allocations: 18.22 MB / 0.8856 GB, free: 28.24 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1703/3.948, allocations: 63.97 MB / 0.9481 GB, free: 3.332 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06192/4.01, allocations: 45.66 MB / 0.9927 GB, free: 11.63 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02176/4.032, allocations: 7.721 MB / 1 GB, free: 6.508 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08204/4.114, allocations: 23.66 MB / 1.023 GB, free: 3.406 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/4.114, allocations: 101.2 kB / 1.023 GB, free: 3.301 MB / 490.8 MB Notification: Performance of pre-optimization done (n=759): time 1.262e-05/4.114, allocations: 0 / 1.023 GB, free: 3.301 MB / 490.8 MB Notification: Performance of matching and sorting (n=799): time 0.4905/4.605, allocations: 26.79 MB / 1.05 GB, free: 90.69 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/4.605, allocations: 122.5 kB / 1.05 GB, free: 90.62 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01176/4.617, allocations: 3.558 MB / 1.053 GB, free: 90.27 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002287/4.619, allocations: 133.3 kB / 1.053 GB, free: 90.24 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00497/4.624, allocations: 4.917 MB / 1.058 GB, free: 87.68 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005047/4.629, allocations: 2.654 MB / 1.061 GB, free: 85.96 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002455/4.632, allocations: 157.7 kB / 1.061 GB, free: 85.96 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001312/4.633, allocations: 0.6678 MB / 1.061 GB, free: 85.64 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01477/4.648, allocations: 5.021 MB / 1.066 GB, free: 85.62 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01749/4.666, allocations: 7.367 MB / 1.074 GB, free: 82.9 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01772/4.683, allocations: 6.372 MB / 1.08 GB, free: 82.78 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/4.684, allocations: 19.62 kB / 1.08 GB, free: 82.78 MB / 490.8 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.04855/4.732, allocations: 15.25 MB / 1.095 GB, free: 82.16 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/4.732, allocations: 34.72 kB / 1.095 GB, free: 82.16 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001794/4.732, allocations: 72.19 kB / 1.095 GB, free: 82.16 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01401/4.746, allocations: 4.104 MB / 1.099 GB, free: 81.95 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01309/4.76, allocations: 1.623 MB / 1.1 GB, free: 81.91 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/4.78, allocations: 12.19 MB / 1.112 GB, free: 74.02 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01107/4.791, allocations: 439.7 kB / 1.113 GB, free: 73.88 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00318/4.795, allocations: 391.8 kB / 1.113 GB, free: 73.8 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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): 790 * 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.005689/4.8, allocations: 0.5736 MB / 1.114 GB, free: 73.42 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003928/4.804, allocations: 0.5793 MB / 1.114 GB, free: 73.11 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04884/4.853, allocations: 14.17 MB / 1.128 GB, free: 67.16 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003982/4.854, allocations: 194.4 kB / 1.128 GB, free: 67.07 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.711e-05/4.854, allocations: 6.031 kB / 1.128 GB, free: 67.06 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001896/4.854, allocations: 31.83 kB / 1.128 GB, free: 67.06 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09032/4.944, allocations: 28.38 MB / 1.156 GB, free: 50.68 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001298/4.945, allocations: 4 kB / 1.156 GB, free: 50.68 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009818/4.954, allocations: 1.021 MB / 1.157 GB, free: 49.89 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01298/4.967, allocations: 3.988 MB / 1.161 GB, free: 46.55 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002162/4.97, allocations: 168.3 kB / 1.161 GB, free: 46.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02024/4.99, allocations: 12.02 MB / 1.173 GB, free: 35.04 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/4.99, allocations: 5.031 kB / 1.173 GB, free: 35.03 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4746/5.465, allocations: 21.56 MB / 1.194 GB, free: 82.98 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007886/5.473, allocations: 1.729 MB / 1.196 GB, free: 82.89 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003801/5.476, allocations: 120.9 kB / 1.196 GB, free: 82.89 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00892/5.485, allocations: 323.7 kB / 1.196 GB, free: 82.89 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003514/5.489, allocations: 0.565 MB / 1.197 GB, free: 82.88 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002511/5.492, allocations: 215.1 kB / 1.197 GB, free: 82.88 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009662/5.501, allocations: 2.65 MB / 1.199 GB, free: 82.68 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.343e-06/5.501, allocations: 3.094 kB / 1.199 GB, free: 82.68 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01648/5.518, allocations: 2.146 MB / 1.201 GB, free: 82.68 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (535): * Single equations (assignments): 479 * 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.06739/5.585, allocations: 23.24 MB / 1.224 GB, free: 80.48 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03759/5.623, allocations: 12.67 MB / 1.237 GB, free: 79.83 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/5.623, allocations: 3.625 kB / 1.237 GB, free: 79.83 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02101/5.644, allocations: 6.615 MB / 1.243 GB, free: 79.28 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01309/5.657, allocations: 1.163 MB / 1.244 GB, free: 79.26 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09634/5.754, allocations: 25.31 MB / 1.269 GB, free: 75.54 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02213/5.776, allocations: 7.972 MB / 1.277 GB, free: 73.04 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01449/5.79, allocations: 1.958 MB / 1.279 GB, free: 72.83 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01353/5.804, allocations: 4.516 MB / 1.283 GB, free: 69 MB / 490.8 MB Notification: Performance of SimCode: time 2.174e-06/5.804, allocations: 0 / 1.283 GB, free: 69 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.867/6.671, allocations: 204.7 MB / 1.483 GB, free: 42.88 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003054/6.671, allocations: 243.7 kB / 1.483 GB, free: 42.55 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.635/16.31, allocations: 4 kB / 1.483 GB, free: 42.55 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.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat