Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.258e-05, allocations: 4 kB / 292.3 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 50.41 MB / 342.7 MB, free: 5.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5715/0.6789, allocations: 126.3 MB / 469 MB, free: 0.6836 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/0.6793, allocations: 93.12 kB / 469.1 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7469/1.426, allocations: 116.3 MB / 0.5716 GB, free: 96.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.335e-06/1.426, allocations: 0 / 0.5716 GB, free: 96.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005447/1.427, allocations: 135.3 kB / 0.5718 GB, free: 96.77 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02022/1.447, allocations: 4.903 MB / 0.5766 GB, free: 94.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/1.447, allocations: 10.88 kB / 0.5766 GB, free: 94.9 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003055/1.45, allocations: 0.7018 MB / 0.5773 GB, free: 94.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007441/1.458, allocations: 0.9457 MB / 0.5782 GB, free: 94.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01617/1.474, allocations: 4.429 MB / 0.5825 GB, free: 93.56 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005385/1.475, allocations: 389 kB / 0.5829 GB, free: 93.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002228/1.477, allocations: 0.4992 MB / 0.5834 GB, free: 93.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/1.499, allocations: 6.494 MB / 0.5897 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000299/1.499, allocations: 11.39 kB / 0.5897 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001853/1.501, allocations: 214.8 kB / 0.5899 GB, free: 89.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003033/1.501, allocations: 235.1 kB / 0.5901 GB, free: 89.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/1.519, allocations: 5.17 MB / 0.5952 GB, free: 87.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05526/1.574, allocations: 21.13 MB / 0.6158 GB, free: 73.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01097/1.585, allocations: 8.457 MB / 0.6241 GB, free: 64.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004767/1.59, allocations: 2.011 MB / 0.626 GB, free: 62.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0175/1.608, allocations: 6.004 MB / 0.6319 GB, free: 56.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/1.608, allocations: 52.56 kB / 0.632 GB, free: 56.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 4.578e-06/1.608, allocations: 3.938 kB / 0.632 GB, free: 56.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.03046/1.638, allocations: 9.302 MB / 0.641 GB, free: 47.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/1.638, allocations: 77.41 kB / 0.6411 GB, free: 46.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00519/1.643, allocations: 2.5 MB / 0.6436 GB, free: 44.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005214/1.644, allocations: 69.7 kB / 0.6436 GB, free: 44.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/1.646, allocations: 2.347 MB / 0.6459 GB, free: 42.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.647, allocations: 0.7947 MB / 0.6467 GB, free: 41.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/1.647, allocations: 63.94 kB / 0.6468 GB, free: 41.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/1.647, allocations: 424.1 kB / 0.6472 GB, free: 40.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002853/1.65, allocations: 1.244 MB / 0.6484 GB, free: 39.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003402/1.653, allocations: 2.107 MB / 0.6504 GB, free: 37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003616/1.657, allocations: 1.634 MB / 0.652 GB, free: 35.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.42e-05/1.657, allocations: 11.95 kB / 0.652 GB, free: 35.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01098/1.668, allocations: 4.397 MB / 0.6563 GB, free: 30.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-05/1.668, allocations: 23.94 kB / 0.6564 GB, free: 30.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.611e-05/1.668, allocations: 28 kB / 0.6564 GB, free: 30.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/1.671, allocations: 0.7142 MB / 0.6571 GB, free: 30.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005173/1.676, allocations: 0.6864 MB / 0.6578 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/1.689, allocations: 9.385 MB / 0.6669 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004625/1.694, allocations: 191.7 kB / 0.6671 GB, free: 19.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007437/1.695, allocations: 128 kB / 0.6672 GB, free: 19.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(6,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007408/1.695, allocations: 288 kB / 0.6675 GB, free: 18.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000994/1.696, allocations: 312.2 kB / 0.6678 GB, free: 18.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.707, allocations: 4.005 MB / 0.6717 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/1.707, allocations: 23.98 kB / 0.6717 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.343e-05/1.707, allocations: 12 kB / 0.6717 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-05/1.707, allocations: 7.969 kB / 0.6718 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02346/1.731, allocations: 8.654 MB / 0.6802 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.731, allocations: 0 / 0.6802 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003424/1.734, allocations: 379.9 kB / 0.6806 GB, free: 5.285 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004157/1.738, allocations: 0.9344 MB / 0.6815 GB, free: 4.332 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004966/1.739, allocations: 63.97 kB / 0.6815 GB, free: 4.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3502/2.089, allocations: 15.47 MB / 0.6966 GB, free: 80.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/2.089, allocations: 3.406 kB / 0.6967 GB, free: 80.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/2.105, allocations: 5.908 MB / 0.7024 GB, free: 80 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00274/2.108, allocations: 0.6693 MB / 0.7031 GB, free: 79.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/2.109, allocations: 55.03 kB / 0.7031 GB, free: 79.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003635/2.113, allocations: 151.8 kB / 0.7033 GB, free: 79.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008057/2.113, allocations: 177.8 kB / 0.7034 GB, free: 79.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/2.114, allocations: 67.22 kB / 0.7035 GB, free: 79.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005276/2.119, allocations: 1.893 MB / 0.7054 GB, free: 79.74 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.119, allocations: 0 / 0.7054 GB, free: 79.74 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005951/2.125, allocations: 1.012 MB / 0.7063 GB, free: 79.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01538/2.14, allocations: 7.645 MB / 0.7138 GB, free: 77.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008936/2.149, allocations: 3.852 MB / 0.7176 GB, free: 76.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/2.149, allocations: 3.844 kB / 0.7176 GB, free: 76.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006408/2.156, allocations: 2.595 MB / 0.7201 GB, free: 76.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006186/2.162, allocations: 0.7729 MB / 0.7209 GB, free: 76.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/2.188, allocations: 9.152 MB / 0.7298 GB, free: 73.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005285/2.193, allocations: 3.408 MB / 0.7331 GB, free: 72.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004389/2.198, allocations: 0.752 MB / 0.7339 GB, free: 71.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004474/2.202, allocations: 1.935 MB / 0.7358 GB, free: 70.33 MB / 442.7 MB Notification: Performance of SimCode: time 1.233e-06/2.202, allocations: 0 / 0.7358 GB, free: 70.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1948/2.397, allocations: 85.48 MB / 0.8192 GB, free: 14.62 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/2.397, allocations: 222.5 kB / 0.8194 GB, free: 14.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.376/8.773, allocations: 4.062 kB / 0.8194 GB, free: 14.39 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat