Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.286e-05/3.283e-05, allocations: 1.406 kB / 292.3 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 50.41 MB / 342.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5643/0.6692, allocations: 157.3 MB / 499.9 MB, free: 2.008 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/0.6696, allocations: 102.1 kB / 0.4883 GB, free: 1.953 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.796/2.466, allocations: 375 MB / 0.8546 GB, free: 9.777 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/2.466, allocations: 0 / 0.8546 GB, free: 9.777 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001169/2.467, allocations: 283.6 kB / 0.8548 GB, free: 9.5 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.8135/3.281, allocations: 10.73 MB / 0.8653 GB, free: 28.59 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 7.442e-05/3.281, allocations: 9.438 kB / 0.8653 GB, free: 28.59 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01105/3.292, allocations: 1.695 MB / 0.867 GB, free: 28.47 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0411/3.333, allocations: 4.405 MB / 0.8713 GB, free: 27.87 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03841/3.371, allocations: 9.317 MB / 0.8804 GB, free: 27.35 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001562/3.373, allocations: 0.8723 MB / 0.8812 GB, free: 27.32 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006037/3.379, allocations: 1.155 MB / 0.8823 GB, free: 27.32 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06448/3.444, allocations: 18.06 MB / 0.9 GB, free: 25.93 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008745/3.444, allocations: 23.61 kB / 0.9 GB, free: 25.92 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005229/3.45, allocations: 0.4986 MB / 0.9005 GB, free: 25.92 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001278/3.451, allocations: 0.8146 MB / 0.9013 GB, free: 25.89 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04865/3.5, allocations: 15.08 MB / 0.916 GB, free: 25.84 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1503/3.65, allocations: 59.12 MB / 0.9738 GB, free: 244 kB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04528/3.695, allocations: 32.82 MB / 1.006 GB, free: 2.637 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009394/3.705, allocations: 3.607 MB / 1.009 GB, free: 1.266 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0261/3.731, allocations: 8.52 MB / 1.018 GB, free: 13.23 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.942e-05/3.731, allocations: 72.75 kB / 1.018 GB, free: 13.16 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=350): time 6.953e-06/3.731, allocations: 2.625 kB / 1.018 GB, free: 13.16 MB / 0.4949 GB Notification: Performance of matching and sorting (n=390): time 0.04426/3.775, allocations: 13.53 MB / 1.031 GB, free: 2.559 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.393e-05/3.776, allocations: 90.47 kB / 1.031 GB, free: 2.457 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0137/3.789, allocations: 4.335 MB / 1.035 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001016/3.79, allocations: 89.7 kB / 1.035 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005942/3.796, allocations: 5.459 MB / 1.041 GB, free: 9.883 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002391/3.799, allocations: 1.364 MB / 1.042 GB, free: 8.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009529/3.8, allocations: 136 kB / 1.042 GB, free: 8.527 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006494/3.8, allocations: 0.575 MB / 1.043 GB, free: 8.027 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008004/3.808, allocations: 2.779 MB / 1.045 GB, free: 5.523 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4223/4.231, allocations: 5.763 MB / 1.051 GB, free: 87.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/4.243, allocations: 4.154 MB / 1.055 GB, free: 87.01 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000172/4.243, allocations: 28.72 kB / 1.055 GB, free: 87.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.03126/4.274, allocations: 9.35 MB / 1.064 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/4.274, allocations: 49.12 kB / 1.064 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002755/4.275, allocations: 104.3 kB / 1.064 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004446/4.279, allocations: 0.9393 MB / 1.065 GB, free: 86.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/4.291, allocations: 1.595 MB / 1.067 GB, free: 86.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01777/4.309, allocations: 9.382 MB / 1.076 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009142/4.318, allocations: 409.6 kB / 1.076 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001827/4.32, allocations: 356.2 kB / 1.077 GB, free: 82.89 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.00172/4.321, allocations: 0.556 MB / 1.077 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001649/4.323, allocations: 0.5155 MB / 1.078 GB, free: 82.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01895/4.342, allocations: 6.293 MB / 1.084 GB, free: 82.53 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-05/4.342, allocations: 38.06 kB / 1.084 GB, free: 82.53 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/4.342, allocations: 7.031 kB / 1.084 GB, free: 82.53 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001202/4.342, allocations: 20.67 kB / 1.084 GB, free: 82.53 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04606/4.388, allocations: 15.4 MB / 1.099 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.858e-05/4.389, allocations: 10.47 kB / 1.099 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006916/4.395, allocations: 0.7447 MB / 1.1 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003818/4.399, allocations: 0.7686 MB / 1.101 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008256/4.4, allocations: 83.8 kB / 1.101 GB, free: 81.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01491/4.415, allocations: 8.559 MB / 1.109 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/4.415, allocations: 4.5 kB / 1.109 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02437/4.44, allocations: 9.51 MB / 1.118 GB, free: 76.81 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004301/4.444, allocations: 1.05 MB / 1.119 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/4.446, allocations: 69.72 kB / 1.119 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00591/4.452, allocations: 229.4 kB / 1.12 GB, free: 76.44 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001296/4.453, allocations: 263.1 kB / 1.12 GB, free: 76.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005623/4.454, allocations: 112.6 kB / 1.12 GB, free: 76.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008896/4.463, allocations: 3.17 MB / 1.123 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.11e-07/4.463, allocations: 0 / 1.123 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01218/4.475, allocations: 1.916 MB / 1.125 GB, free: 76.23 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.0263/4.501, allocations: 11.29 MB / 1.136 GB, free: 73.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01919/4.52, allocations: 7.24 MB / 1.143 GB, free: 71.35 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/4.521, allocations: 3.844 kB / 1.143 GB, free: 71.35 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009318/4.53, allocations: 3.395 MB / 1.146 GB, free: 69.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01036/4.54, allocations: 1.151 MB / 1.147 GB, free: 69.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0682/4.609, allocations: 19.99 MB / 1.167 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01709/4.626, allocations: 7.507 MB / 1.174 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0119/4.638, allocations: 2.151 MB / 1.176 GB, free: 54.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01047/4.648, allocations: 4.305 MB / 1.181 GB, free: 50.45 MB / 0.5105 GB Notification: Performance of SimCode: time 1.803e-06/4.648, allocations: 0 / 1.181 GB, free: 50.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8096/5.458, allocations: 149.1 MB / 1.326 GB, free: 68.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003008/5.458, allocations: 238.2 kB / 1.326 GB, free: 68.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/13.65, allocations: 0 / 1.326 GB, free: 68.14 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat