Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.978/1.978, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.092e-05, allocations: 7.984 kB / 255.5 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09446, allocations: 44.52 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4564/0.5509, allocations: 119.6 MB / 419.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5512, allocations: 87.39 kB / 419.6 MB, free: 6.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7583/1.31, allocations: 115.4 MB / 0.5225 GB, free: 62.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.31, allocations: 1.219 kB / 0.5225 GB, free: 62.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006/1.31, allocations: 137.5 kB / 0.5226 GB, free: 62.7 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02248/1.333, allocations: 4.858 MB / 0.5274 GB, free: 61.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/1.333, allocations: 10.3 kB / 0.5274 GB, free: 61.22 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003489/1.336, allocations: 0.6987 MB / 0.5281 GB, free: 61.15 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008699/1.345, allocations: 0.9483 MB / 0.529 GB, free: 60.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02519/1.37, allocations: 4.366 MB / 0.5333 GB, free: 60.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006811/1.371, allocations: 382.3 kB / 0.5336 GB, free: 60.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002503/1.374, allocations: 0.498 MB / 0.5341 GB, free: 60.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02325/1.397, allocations: 6.532 MB / 0.5405 GB, free: 59.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002639/1.397, allocations: 7.781 kB / 0.5405 GB, free: 59.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001843/1.399, allocations: 218.7 kB / 0.5407 GB, free: 59.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003121/1.399, allocations: 232.9 kB / 0.5409 GB, free: 59.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01782/1.417, allocations: 5.205 MB / 0.546 GB, free: 59.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05711/1.474, allocations: 21.03 MB / 0.5666 GB, free: 55.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01153/1.486, allocations: 8.436 MB / 0.5748 GB, free: 49.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00503/1.491, allocations: 1.991 MB / 0.5767 GB, free: 48.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01729/1.508, allocations: 5.964 MB / 0.5826 GB, free: 46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/1.508, allocations: 54.75 kB / 0.5826 GB, free: 45.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 4.869e-06/1.508, allocations: 4 kB / 0.5826 GB, free: 45.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=229): time 0.03115/1.54, allocations: 9.23 MB / 0.5916 GB, free: 42.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/1.54, allocations: 75.69 kB / 0.5917 GB, free: 42.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005776/1.546, allocations: 2.482 MB / 0.5941 GB, free: 41.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005513/1.546, allocations: 61.14 kB / 0.5942 GB, free: 41.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001922/1.548, allocations: 2.338 MB / 0.5965 GB, free: 39.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/1.549, allocations: 0.7888 MB / 0.5972 GB, free: 38.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/1.549, allocations: 61.91 kB / 0.5973 GB, free: 38.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001975/1.55, allocations: 420.2 kB / 0.5977 GB, free: 38.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002949/1.553, allocations: 1.236 MB / 0.5989 GB, free: 37.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003447/1.556, allocations: 2.111 MB / 0.601 GB, free: 36.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003688/1.56, allocations: 1.625 MB / 0.6026 GB, free: 35.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-05/1.56, allocations: 11.2 kB / 0.6026 GB, free: 35.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01173/1.572, allocations: 4.453 MB / 0.6069 GB, free: 34.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/1.572, allocations: 20.64 kB / 0.6069 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.323e-05/1.572, allocations: 38.02 kB / 0.607 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002829/1.575, allocations: 0.7178 MB / 0.6077 GB, free: 33.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005103/1.58, allocations: 0.6779 MB / 0.6083 GB, free: 33.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/1.593, allocations: 9.378 MB / 0.6175 GB, free: 26.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/1.597, allocations: 179.5 kB / 0.6177 GB, free: 26.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006022/1.598, allocations: 126.2 kB / 0.6178 GB, free: 26.8 MB / 410.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 (340): * Single equations (assignments): 334 * 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,72.2%) 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.0007247/1.599, allocations: 288.5 kB / 0.6181 GB, free: 26.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009848/1.6, allocations: 311.8 kB / 0.6184 GB, free: 26.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0101/1.61, allocations: 3.982 MB / 0.6222 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.08e-05/1.61, allocations: 22.94 kB / 0.6223 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.452e-05/1.61, allocations: 10.38 kB / 0.6223 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.332e-05/1.61, allocations: 10.41 kB / 0.6223 GB, free: 24.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/1.632, allocations: 8.592 MB / 0.6307 GB, free: 21.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/1.632, allocations: 2.906 kB / 0.6307 GB, free: 21.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003207/1.636, allocations: 365.2 kB / 0.631 GB, free: 21.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004085/1.64, allocations: 0.9427 MB / 0.6319 GB, free: 20.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004095/1.64, allocations: 59.12 kB / 0.632 GB, free: 20.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02026/1.66, allocations: 15.45 MB / 0.6471 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.66, allocations: 11.17 kB / 0.6471 GB, free: 5.359 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/1.673, allocations: 5.857 MB / 0.6528 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002726/1.676, allocations: 0.6667 MB / 0.6535 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008919/1.677, allocations: 52 kB / 0.6535 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003138/1.68, allocations: 145.1 kB / 0.6537 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006682/1.681, allocations: 172.9 kB / 0.6538 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/1.681, allocations: 73.52 kB / 0.6539 GB, free: 15 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004749/1.686, allocations: 1.878 MB / 0.6557 GB, free: 13.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.31e-07/1.686, allocations: 0 / 0.6557 GB, free: 13.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005668/1.692, allocations: 1.012 MB / 0.6567 GB, free: 12.28 MB / 426.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 (175): * Single equations (assignments): 168 * 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,75.0%) 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.01723/1.709, allocations: 7.547 MB / 0.6641 GB, free: 5.258 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01046/1.72, allocations: 3.917 MB / 0.6679 GB, free: 1.555 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.72, allocations: 4.25 kB / 0.6679 GB, free: 1.551 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2947/2.014, allocations: 2.644 MB / 0.6705 GB, free: 70.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00669/2.021, allocations: 0.7616 MB / 0.6712 GB, free: 70.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03251/2.054, allocations: 9.16 MB / 0.6802 GB, free: 68.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007339/2.061, allocations: 3.394 MB / 0.6835 GB, free: 67.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004554/2.066, allocations: 0.7396 MB / 0.6842 GB, free: 67.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004424/2.07, allocations: 1.957 MB / 0.6861 GB, free: 67.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/2.07, allocations: 0 / 0.6861 GB, free: 67.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1979/2.268, allocations: 85.03 MB / 0.7692 GB, free: 46.22 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/2.268, allocations: 196.1 kB / 0.7694 GB, free: 45.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.213/8.481, allocations: 7.938 kB / 0.7694 GB, free: 45.98 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat