Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.934e-05/3.944e-05, allocations: 7.984 kB / 269.5 MB, free: 6.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.09853, allocations: 47.57 MB / 317 MB, free: 6.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5246/0.6232, allocations: 156.1 MB / 473.2 MB, free: 12.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003681/0.6236, allocations: 105.9 kB / 473.3 MB, free: 12.44 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.79/2.414, allocations: 384.5 MB / 0.8377 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.244e-06/2.414, allocations: 4 kB / 0.8377 GB, free: 7.969 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001023/2.415, allocations: 291.6 kB / 0.8379 GB, free: 7.684 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.732/3.147, allocations: 11.05 MB / 0.8487 GB, free: 26.11 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/3.147, allocations: 10.31 kB / 0.8487 GB, free: 26.11 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009282/3.157, allocations: 1.782 MB / 0.8505 GB, free: 25.99 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05547/3.212, allocations: 6.333 MB / 0.8567 GB, free: 25.32 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03524/3.247, allocations: 9.452 MB / 0.8659 GB, free: 24.68 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001529/3.249, allocations: 0.9223 MB / 0.8668 GB, free: 24.66 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006123/3.255, allocations: 1.204 MB / 0.868 GB, free: 24.65 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06853/3.324, allocations: 20.17 MB / 0.8877 GB, free: 23.25 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000872/3.325, allocations: 21.11 kB / 0.8877 GB, free: 23.24 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005917/3.331, allocations: 0.5166 MB / 0.8882 GB, free: 23.24 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001418/3.332, allocations: 0.8397 MB / 0.889 GB, free: 23.21 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05683/3.389, allocations: 18.23 MB / 0.9068 GB, free: 23.16 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.177/3.566, allocations: 64.14 MB / 0.9694 GB, free: 10.6 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06207/3.628, allocations: 45.66 MB / 1.014 GB, free: 14.83 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02152/3.65, allocations: 7.724 MB / 1.022 GB, free: 7.762 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4491/4.099, allocations: 24.3 MB / 1.045 GB, free: 89.33 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.861e-05/4.099, allocations: 108.1 kB / 1.045 GB, free: 89.28 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=760): time 1.189e-05/4.099, allocations: 0 / 1.045 GB, free: 89.28 MB / 0.4949 GB Notification: Performance of matching and sorting (n=800): time 0.08331/4.182, allocations: 26.62 MB / 1.071 GB, free: 87.34 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.486e-05/4.182, allocations: 124 kB / 1.072 GB, free: 87.27 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009191/4.192, allocations: 3.562 MB / 1.075 GB, free: 86.88 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001795/4.194, allocations: 136.4 kB / 1.075 GB, free: 86.85 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003804/4.197, allocations: 4.919 MB / 1.08 GB, free: 84.25 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004378/4.202, allocations: 2.655 MB / 1.083 GB, free: 82.54 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/4.203, allocations: 163.6 kB / 1.083 GB, free: 82.54 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008986/4.204, allocations: 0.6651 MB / 1.083 GB, free: 82.21 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01284/4.217, allocations: 5.019 MB / 1.088 GB, free: 82.19 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01549/4.233, allocations: 7.377 MB / 1.095 GB, free: 79.47 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/4.249, allocations: 6.371 MB / 1.102 GB, free: 79.35 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/4.249, allocations: 26.03 kB / 1.102 GB, free: 79.35 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.04543/4.295, allocations: 15.27 MB / 1.117 GB, free: 76.26 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.921e-05/4.295, allocations: 33.94 kB / 1.117 GB, free: 76.26 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001592/4.295, allocations: 73.09 kB / 1.117 GB, free: 76.26 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/4.308, allocations: 4.097 MB / 1.121 GB, free: 75.02 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/4.321, allocations: 1.628 MB / 1.122 GB, free: 74.97 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/4.342, allocations: 12.17 MB / 1.134 GB, free: 67.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01036/4.352, allocations: 443.5 kB / 1.135 GB, free: 66.95 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002699/4.355, allocations: 391.6 kB / 1.135 GB, free: 66.88 MB / 0.4949 GB 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 (847): * Single equations (assignments): 791 * 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.003787/4.359, allocations: 0.5742 MB / 1.136 GB, free: 66.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002828/4.362, allocations: 0.5795 MB / 1.136 GB, free: 66.19 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04318/4.405, allocations: 14.18 MB / 1.15 GB, free: 60.23 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003141/4.405, allocations: 192.7 kB / 1.15 GB, free: 60.14 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.393e-05/4.405, allocations: 0 / 1.15 GB, free: 60.14 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001743/4.405, allocations: 36.92 kB / 1.15 GB, free: 60.14 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08276/4.488, allocations: 28.4 MB / 1.178 GB, free: 39.58 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001101/4.488, allocations: 0 / 1.178 GB, free: 39.58 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009781/4.498, allocations: 1.034 MB / 1.179 GB, free: 38.79 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01303/4.511, allocations: 3.975 MB / 1.183 GB, free: 35.46 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002109/4.513, allocations: 171 kB / 1.183 GB, free: 35.31 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01919/4.533, allocations: 12.01 MB / 1.195 GB, free: 23.95 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/4.533, allocations: 0 / 1.195 GB, free: 23.95 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.435/4.968, allocations: 21.59 MB / 1.216 GB, free: 81.79 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007338/4.975, allocations: 1.732 MB / 1.217 GB, free: 81.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003273/4.978, allocations: 117.2 kB / 1.218 GB, free: 81.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008644/4.987, allocations: 323.4 kB / 1.218 GB, free: 81.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003067/4.99, allocations: 0.5686 MB / 1.218 GB, free: 81.69 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001953/4.992, allocations: 217.3 kB / 1.219 GB, free: 81.69 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007485/5, allocations: 2.652 MB / 1.221 GB, free: 81.49 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.253e-06/5, allocations: 0 / 1.221 GB, free: 81.49 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01436/5.014, allocations: 2.146 MB / 1.223 GB, free: 81.49 MB / 0.4949 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 (536): * Single equations (assignments): 480 * 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.05869/5.073, allocations: 23.24 MB / 1.246 GB, free: 79.29 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03437/5.107, allocations: 12.69 MB / 1.258 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/5.107, allocations: 0 / 1.258 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01966/5.127, allocations: 6.619 MB / 1.265 GB, free: 78.1 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01137/5.138, allocations: 1.167 MB / 1.266 GB, free: 78.07 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08349/5.222, allocations: 25.36 MB / 1.291 GB, free: 72.7 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01819/5.24, allocations: 7.974 MB / 1.299 GB, free: 70.04 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01214/5.252, allocations: 1.96 MB / 1.3 GB, free: 69.83 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/5.264, allocations: 4.511 MB / 1.305 GB, free: 66 MB / 0.4949 GB Notification: Performance of SimCode: time 1.844e-06/5.264, allocations: 0 / 1.305 GB, free: 66 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7969/6.061, allocations: 205.1 MB / 1.505 GB, free: 44.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000271/6.061, allocations: 241.6 kB / 1.505 GB, free: 43.87 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.579/15.64, allocations: 0 / 1.505 GB, free: 43.87 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat