Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.285/2.285, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.04e-05/3.044e-05, allocations: 1.719 kB / 292.8 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 343.2 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5711/0.6807, allocations: 157.3 MB / 0.4888 GB, free: 1.645 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/0.6811, allocations: 101.7 kB / 0.4889 GB, free: 1.594 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843/2.524, allocations: 375 MB / 0.8551 GB, free: 9.512 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.524, allocations: 0 / 0.8551 GB, free: 9.512 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00156/2.526, allocations: 283.6 kB / 0.8553 GB, free: 9.234 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.922/3.448, allocations: 10.74 MB / 0.8658 GB, free: 28.55 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/3.448, allocations: 11.34 kB / 0.8658 GB, free: 28.55 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008975/3.457, allocations: 1.693 MB / 0.8675 GB, free: 28.43 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03905/3.496, allocations: 4.401 MB / 0.8718 GB, free: 27.83 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04274/3.539, allocations: 9.317 MB / 0.8809 GB, free: 27.31 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001462/3.54, allocations: 0.8717 MB / 0.8817 GB, free: 27.28 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005852/3.546, allocations: 1.151 MB / 0.8829 GB, free: 27.27 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06071/3.607, allocations: 18.06 MB / 0.9005 GB, free: 25.89 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007262/3.608, allocations: 25.62 kB / 0.9005 GB, free: 25.88 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004881/3.613, allocations: 0.4978 MB / 0.901 GB, free: 25.88 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001338/3.614, allocations: 0.8113 MB / 0.9018 GB, free: 25.85 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04781/3.662, allocations: 15.09 MB / 0.9165 GB, free: 25.8 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1503/3.812, allocations: 59.12 MB / 0.9743 GB, free: 172 kB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04426/3.857, allocations: 32.84 MB / 1.006 GB, free: 2.637 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009948/3.867, allocations: 3.6 MB / 1.01 GB, free: 1.266 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02912/3.896, allocations: 8.532 MB / 1.018 GB, free: 13.24 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.432e-05/3.896, allocations: 72.62 kB / 1.018 GB, free: 13.17 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 6.943e-06/3.896, allocations: 0 / 1.018 GB, free: 13.17 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.05088/3.947, allocations: 13.52 MB / 1.031 GB, free: 2.488 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/3.947, allocations: 92.88 kB / 1.032 GB, free: 2.387 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01537/3.962, allocations: 4.37 MB / 1.036 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009656/3.963, allocations: 89.7 kB / 1.036 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00609/3.969, allocations: 5.457 MB / 1.041 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00252/3.972, allocations: 1.359 MB / 1.043 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/3.973, allocations: 140 kB / 1.043 GB, free: 8.527 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007754/3.974, allocations: 0.5749 MB / 1.043 GB, free: 8.027 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008734/3.983, allocations: 2.784 MB / 1.046 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4475/4.43, allocations: 5.759 MB / 1.052 GB, free: 85.13 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/4.442, allocations: 4.154 MB / 1.056 GB, free: 85.07 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/4.442, allocations: 29.56 kB / 1.056 GB, free: 85.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.03231/4.475, allocations: 9.349 MB / 1.065 GB, free: 84.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/4.475, allocations: 49.16 kB / 1.065 GB, free: 84.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002381/4.475, allocations: 104.1 kB / 1.065 GB, free: 84.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004732/4.48, allocations: 0.9357 MB / 1.066 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01229/4.492, allocations: 1.594 MB / 1.067 GB, free: 84.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/4.511, allocations: 9.383 MB / 1.077 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009438/4.52, allocations: 415.5 kB / 1.077 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/4.522, allocations: 354.4 kB / 1.077 GB, free: 80.95 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * 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,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003256/4.525, allocations: 0.554 MB / 1.078 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002089/4.528, allocations: 0.5089 MB / 1.078 GB, free: 80.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02189/4.55, allocations: 6.296 MB / 1.085 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.788e-05/4.55, allocations: 41.97 kB / 1.085 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-05/4.55, allocations: 7.531 kB / 1.085 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001201/4.55, allocations: 21.14 kB / 1.085 GB, free: 80.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0506/4.6, allocations: 15.41 MB / 1.1 GB, free: 79.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-05/4.601, allocations: 9.547 kB / 1.1 GB, free: 79.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007281/4.608, allocations: 0.7419 MB / 1.1 GB, free: 79.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004066/4.612, allocations: 0.7696 MB / 1.101 GB, free: 79.76 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001057/4.613, allocations: 82.48 kB / 1.101 GB, free: 79.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01556/4.629, allocations: 8.555 MB / 1.11 GB, free: 75.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.918e-05/4.629, allocations: 4.25 kB / 1.11 GB, free: 75.89 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02458/4.653, allocations: 9.508 MB / 1.119 GB, free: 74.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004213/4.658, allocations: 1.042 MB / 1.12 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001875/4.66, allocations: 78.23 kB / 1.12 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006083/4.666, allocations: 233.5 kB / 1.12 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001297/4.667, allocations: 270.3 kB / 1.12 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004642/4.667, allocations: 106.5 kB / 1.121 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008681/4.676, allocations: 3.169 MB / 1.124 GB, free: 74.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.82e-07/4.676, allocations: 0 / 1.124 GB, free: 74.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01195/4.688, allocations: 1.919 MB / 1.125 GB, free: 74.29 MB / 0.5105 GB 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 (368): * Single equations (assignments): 362 * 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 Backend phase and start with SimCode phase: time 0.02711/4.715, allocations: 11.3 MB / 1.137 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0197/4.735, allocations: 7.241 MB / 1.144 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/4.735, allocations: 4.531 kB / 1.144 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00963/4.745, allocations: 3.394 MB / 1.147 GB, free: 67.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01067/4.756, allocations: 1.155 MB / 1.148 GB, free: 67.58 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07367/4.829, allocations: 19.98 MB / 1.168 GB, free: 59.44 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01861/4.848, allocations: 7.511 MB / 1.175 GB, free: 53.82 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01323/4.861, allocations: 2.146 MB / 1.177 GB, free: 52.44 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01144/4.873, allocations: 4.308 MB / 1.181 GB, free: 48.43 MB / 0.5105 GB Notification: Performance of SimCode: time 2.244e-06/4.873, allocations: 0 / 1.181 GB, free: 48.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7865/5.659, allocations: 149.1 MB / 1.327 GB, free: 63.72 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002565/5.66, allocations: 234.6 kB / 1.327 GB, free: 63.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.426/14.09, allocations: 0 / 1.327 GB, free: 63.41 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat