Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.977e-05/2.987e-05, allocations: 0 / 269.5 MB, free: 6.293 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5427/0.6435, allocations: 163.1 MB / 480.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/0.644, allocations: 101.7 kB / 480.2 MB, free: 5.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.241/2.885, allocations: 395.7 MB / 0.8554 GB, free: 40.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.495e-06/2.885, allocations: 0.9375 kB / 0.8554 GB, free: 40.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001187/2.886, allocations: 301.4 kB / 0.8557 GB, free: 39.98 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05612/2.943, allocations: 11.33 MB / 0.8668 GB, free: 36.36 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/2.943, allocations: 10.56 kB / 0.8668 GB, free: 36.36 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008885/2.952, allocations: 1.825 MB / 0.8685 GB, free: 36.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05343/3.005, allocations: 6.418 MB / 0.8748 GB, free: 35.51 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03491/3.04, allocations: 9.659 MB / 0.8842 GB, free: 34.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001535/3.042, allocations: 0.9498 MB / 0.8852 GB, free: 34.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006338/3.048, allocations: 1.243 MB / 0.8864 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06666/3.115, allocations: 20.52 MB / 0.9064 GB, free: 32.73 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007743/3.115, allocations: 23.06 kB / 0.9064 GB, free: 32.73 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005868/3.121, allocations: 0.5283 MB / 0.907 GB, free: 32.73 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001423/3.123, allocations: 0.8513 MB / 0.9078 GB, free: 32.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0555/3.178, allocations: 18.48 MB / 0.9258 GB, free: 32.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1755/3.354, allocations: 65.87 MB / 0.9902 GB, free: 92 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4914/3.845, allocations: 47.9 MB / 1.037 GB, free: 34.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02193/3.867, allocations: 7.787 MB / 1.045 GB, free: 34.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07191/3.939, allocations: 23.81 MB / 1.068 GB, free: 33.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001074/3.939, allocations: 101.7 kB / 1.068 GB, free: 33.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=772): time 1.204e-05/3.939, allocations: 0 / 1.068 GB, free: 33.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=814): time 0.08292/4.022, allocations: 26.99 MB / 1.094 GB, free: 30.97 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.793e-05/4.022, allocations: 123.2 kB / 1.094 GB, free: 30.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00962/4.032, allocations: 3.774 MB / 1.098 GB, free: 30.56 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001802/4.034, allocations: 137.7 kB / 1.098 GB, free: 30.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004064/4.038, allocations: 5.09 MB / 1.103 GB, free: 27.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004315/4.042, allocations: 2.702 MB / 1.106 GB, free: 26.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/4.044, allocations: 166.7 kB / 1.106 GB, free: 26.13 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001239/4.046, allocations: 0.6679 MB / 1.107 GB, free: 25.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01381/4.059, allocations: 5.083 MB / 1.112 GB, free: 24.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01544/4.075, allocations: 7.506 MB / 1.119 GB, free: 19.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01655/4.091, allocations: 6.446 MB / 1.125 GB, free: 17.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/4.092, allocations: 24.44 kB / 1.125 GB, free: 17.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=1169) (initialization): time 0.04337/4.135, allocations: 15.49 MB / 1.14 GB, free: 11.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.174e-05/4.135, allocations: 36.22 kB / 1.14 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/4.135, allocations: 74.41 kB / 1.14 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01287/4.148, allocations: 4.112 MB / 1.144 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01321/4.161, allocations: 1.674 MB / 1.146 GB, free: 9.992 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01814/4.18, allocations: 12.19 MB / 1.158 GB, free: 2.098 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0107/4.19, allocations: 453.9 kB / 1.158 GB, free: 1.949 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002459/4.193, allocations: 398.8 kB / 1.159 GB, free: 1.879 MB / 490.7 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 (871): * Single equations (assignments): 815 * 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.002821/4.196, allocations: 0.5897 MB / 1.159 GB, free: 1.484 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002308/4.198, allocations: 0.6163 MB / 1.16 GB, free: 1.156 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06292/4.261, allocations: 15.44 MB / 1.175 GB, free: 8.801 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003376/4.261, allocations: 193.8 kB / 1.175 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/4.261, allocations: 4 kB / 1.175 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001638/4.262, allocations: 35.58 kB / 1.175 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08913/4.351, allocations: 29 MB / 1.204 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001183/4.351, allocations: 7.75 kB / 1.204 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01145/4.362, allocations: 1.11 MB / 1.205 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01458/4.377, allocations: 3.982 MB / 1.209 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002171/4.379, allocations: 174.7 kB / 1.209 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02345/4.403, allocations: 12 MB / 1.22 GB, free: 1.207 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/4.403, allocations: 4.938 kB / 1.221 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.469/4.872, allocations: 21.86 MB / 1.242 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006916/4.879, allocations: 1.777 MB / 1.244 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003292/4.882, allocations: 120.1 kB / 1.244 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008265/4.89, allocations: 336.5 kB / 1.244 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002801/4.893, allocations: 0.5732 MB / 1.245 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001377/4.895, allocations: 222.1 kB / 1.245 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007549/4.902, allocations: 2.807 MB / 1.248 GB, free: 112 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.41e-07/4.902, allocations: 3.188 kB / 1.248 GB, free: 112 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01385/4.916, allocations: 2.214 MB / 1.25 GB, free: 112 MB / 0.5261 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 (552): * Single equations (assignments): 496 * 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.0575/4.974, allocations: 23.96 MB / 1.273 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03435/5.008, allocations: 12.83 MB / 1.286 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/5.008, allocations: 0 / 1.286 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01935/5.027, allocations: 6.694 MB / 1.292 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01214/5.04, allocations: 1.266 MB / 1.293 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08494/5.125, allocations: 25.76 MB / 1.319 GB, free: 98.82 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01824/5.143, allocations: 8.086 MB / 1.326 GB, free: 96.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01312/5.156, allocations: 2.004 MB / 1.328 GB, free: 95.45 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01198/5.168, allocations: 4.735 MB / 1.333 GB, free: 91.05 MB / 0.5261 GB Notification: Performance of SimCode: time 2.034e-06/5.168, allocations: 0 / 1.333 GB, free: 91.05 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8471/6.015, allocations: 212.2 MB / 1.54 GB, free: 61.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002627/6.016, allocations: 242.6 kB / 1.541 GB, free: 61.27 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.755/15.77, allocations: 3.906 kB / 1.541 GB, free: 61.27 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat