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 2.021/2.021, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.219e-05, allocations: 8 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3533, allocations: 44.49 MB / 294.2 MB, free: 14.48 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2042/0.5575, allocations: 118.9 MB / 413.1 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5579, allocations: 87.95 kB / 413.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.65/1.208, allocations: 113.9 MB / 0.5148 GB, free: 24.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.208, allocations: 0 / 0.5148 GB, free: 24.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005199/1.208, allocations: 131.8 kB / 0.5149 GB, free: 24.21 MB / 362.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.01909/1.228, allocations: 4.851 MB / 0.5197 GB, free: 19.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/1.228, allocations: 8.031 kB / 0.5197 GB, free: 19.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006973/1.235, allocations: 0.9456 MB / 0.5206 GB, free: 18.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01489/1.25, allocations: 4.367 MB / 0.5249 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/1.25, allocations: 164 kB / 0.525 GB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001831/1.252, allocations: 303.9 kB / 0.5253 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01478/1.267, allocations: 4.894 MB / 0.5301 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01876/1.285, allocations: 5.791 MB / 0.5357 GB, free: 2.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002364/1.286, allocations: 11.84 kB / 0.5358 GB, free: 2.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001152/1.287, allocations: 7.984 kB / 0.5358 GB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002716/1.287, allocations: 238.2 kB / 0.536 GB, free: 2.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3395/1.627, allocations: 20.05 MB / 0.5556 GB, free: 47.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01149/1.638, allocations: 8.349 MB / 0.5637 GB, free: 41.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004706/1.643, allocations: 1.915 MB / 0.5656 GB, free: 41.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/1.658, allocations: 5.816 MB / 0.5713 GB, free: 41.01 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/1.658, allocations: 63.3 kB / 0.5713 GB, free: 40.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=209): time 5.039e-06/1.658, allocations: 0 / 0.5713 GB, free: 40.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=233): time 0.02274/1.681, allocations: 8.133 MB / 0.5793 GB, free: 39.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/1.681, allocations: 77.75 kB / 0.5794 GB, free: 39.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00466/1.685, allocations: 2.021 MB / 0.5813 GB, free: 39.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005199/1.686, allocations: 32.7 kB / 0.5814 GB, free: 39.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001866/1.688, allocations: 2.331 MB / 0.5836 GB, free: 38.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001089/1.689, allocations: 0.7682 MB / 0.5844 GB, free: 38.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002619/1.689, allocations: 0 / 0.5844 GB, free: 38.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/1.69, allocations: 420.7 kB / 0.5848 GB, free: 37.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002569/1.692, allocations: 1.188 MB / 0.5859 GB, free: 37.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003122/1.695, allocations: 2.044 MB / 0.5879 GB, free: 36.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004388/1.7, allocations: 1.689 MB / 0.5896 GB, free: 36.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.306e-05/1.7, allocations: 7.062 kB / 0.5896 GB, free: 36.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01157/1.711, allocations: 4.252 MB / 0.5938 GB, free: 36.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/1.711, allocations: 18.62 kB / 0.5938 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-05/1.712, allocations: 25.28 kB / 0.5938 GB, free: 36.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00268/1.714, allocations: 0.702 MB / 0.5945 GB, free: 36.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005093/1.719, allocations: 0.6914 MB / 0.5952 GB, free: 36.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/1.732, allocations: 8.995 MB / 0.6039 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004003/1.736, allocations: 120 kB / 0.6041 GB, free: 31.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006274/1.737, allocations: 130.4 kB / 0.6042 GB, free: 31.26 MB / 378.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 (344): * Single equations (assignments): 338 * 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.0006737/1.737, allocations: 193.7 kB / 0.6044 GB, free: 31.13 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009895/1.747, allocations: 3.622 MB / 0.6079 GB, free: 30.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001694/1.749, allocations: 286.2 kB / 0.6082 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01782/1.767, allocations: 3.889 MB / 0.612 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.164e-05/1.767, allocations: 25.47 kB / 0.612 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.466e-05/1.767, allocations: 9.156 kB / 0.612 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.412e-05/1.767, allocations: 10.55 kB / 0.612 GB, free: 30.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03345/1.801, allocations: 7.883 MB / 0.6197 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-05/1.801, allocations: 6.625 kB / 0.6197 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005245/1.806, allocations: 374.5 kB / 0.6201 GB, free: 26.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006595/1.813, allocations: 0.9295 MB / 0.621 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005981/1.813, allocations: 29.22 kB / 0.621 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0229/1.836, allocations: 14.85 MB / 0.6355 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/1.836, allocations: 9.062 kB / 0.6355 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/1.849, allocations: 5.797 MB / 0.6412 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002383/1.851, allocations: 0.6272 MB / 0.6418 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0011/1.852, allocations: 21.11 kB / 0.6418 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/1.855, allocations: 114.7 kB / 0.6419 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000702/1.856, allocations: 173.8 kB / 0.6421 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002278/1.856, allocations: 68.8 kB / 0.6422 GB, free: 12.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003497/1.86, allocations: 1.491 MB / 0.6436 GB, free: 11.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.864e-06/1.86, allocations: 3.312 kB / 0.6436 GB, free: 11.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005516/1.865, allocations: 0.8895 MB / 0.6445 GB, free: 11.44 MB / 378.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 (177): * Single equations (assignments): 170 * 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.01477/1.88, allocations: 7.398 MB / 0.6517 GB, free: 5.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008503/1.889, allocations: 3.753 MB / 0.6554 GB, free: 1.859 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.908e-06/1.889, allocations: 4 kB / 0.6554 GB, free: 1.855 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006442/1.895, allocations: 2.556 MB / 0.6579 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005606/1.901, allocations: 0.5872 MB / 0.6584 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02986/1.931, allocations: 8.916 MB / 0.6672 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00599/1.937, allocations: 3.38 MB / 0.6705 GB, free: 4.809 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004268/1.941, allocations: 0.7194 MB / 0.6712 GB, free: 4.312 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004571/1.946, allocations: 1.927 MB / 0.673 GB, free: 2.531 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/1.946, allocations: 4 kB / 0.673 GB, free: 2.527 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5691/2.515, allocations: 72.34 MB / 0.7437 GB, free: 81.14 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002524/2.515, allocations: 164 kB / 0.7438 GB, free: 80.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.202/7.718, allocations: 0 / 0.7438 GB, free: 80.95 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