Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.983e-05/2.992e-05, allocations: 0 / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2644, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4279/0.6923, allocations: 112.3 MB / 376.1 MB, free: 50.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.6926, allocations: 88.19 kB / 376.2 MB, free: 50.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4016/1.094, allocations: 110.7 MB / 487 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.094, allocations: 0 / 487 MB, free: 11.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006419/1.095, allocations: 131.8 kB / 487.1 MB, free: 11.03 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02192/1.117, allocations: 4.748 MB / 491.8 MB, free: 6.207 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/1.117, allocations: 15.97 kB / 491.8 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003313/1.12, allocations: 0.6749 MB / 492.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004964/1.125, allocations: 0.739 MB / 493.3 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/1.138, allocations: 3.462 MB / 496.7 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005843/1.138, allocations: 369.9 kB / 497.1 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0023/1.141, allocations: 495.9 kB / 497.6 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0224/1.163, allocations: 6.279 MB / 0.492 GB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003513/1.164, allocations: 11.89 kB / 0.492 GB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001837/1.165, allocations: 212 kB / 0.4923 GB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004183/1.166, allocations: 217.8 kB / 0.4925 GB, free: 9.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01854/1.184, allocations: 4.85 MB / 0.4972 GB, free: 4.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3282/1.513, allocations: 19.98 MB / 0.5167 GB, free: 45.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/1.53, allocations: 3.958 MB / 0.5206 GB, free: 43.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01426/1.545, allocations: 1.734 MB / 0.5223 GB, free: 43.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007803/1.545, allocations: 147.1 kB / 0.5224 GB, free: 43.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.595e-05/1.545, allocations: 59.25 kB / 0.5225 GB, free: 43.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=215): time 9.388e-06/1.545, allocations: 0 / 0.5225 GB, free: 43.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=259): time 0.05353/1.599, allocations: 10.85 MB / 0.5331 GB, free: 41.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/1.599, allocations: 78.52 kB / 0.5331 GB, free: 41.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006179/1.605, allocations: 2.38 MB / 0.5355 GB, free: 41.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006415/1.606, allocations: 69.52 kB / 0.5355 GB, free: 41.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002109/1.608, allocations: 2.226 MB / 0.5377 GB, free: 40.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001283/1.61, allocations: 0.8945 MB / 0.5386 GB, free: 40.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003528/1.61, allocations: 62.53 kB / 0.5386 GB, free: 40.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002348/1.61, allocations: 426.7 kB / 0.539 GB, free: 39.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003596/1.614, allocations: 1.348 MB / 0.5403 GB, free: 39.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004375/1.618, allocations: 2.183 MB / 0.5425 GB, free: 38.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004613/1.623, allocations: 1.758 MB / 0.5442 GB, free: 38.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.748e-05/1.623, allocations: 7.469 kB / 0.5442 GB, free: 38.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.01445/1.637, allocations: 4.896 MB / 0.549 GB, free: 38.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.86e-05/1.638, allocations: 20.81 kB / 0.549 GB, free: 38.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.633e-05/1.638, allocations: 26.44 kB / 0.549 GB, free: 38.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004223/1.642, allocations: 0.9611 MB / 0.55 GB, free: 38.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005158/1.647, allocations: 0.6835 MB / 0.5506 GB, free: 38.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02019/1.667, allocations: 12.93 MB / 0.5633 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/1.672, allocations: 184.2 kB / 0.5634 GB, free: 31.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000771/1.673, allocations: 136.8 kB / 0.5636 GB, free: 31.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 118 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (339): * Single equations (assignments): 332 * 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: 5 * 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: 5 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009236/1.673, allocations: 287.8 kB / 0.5638 GB, free: 31.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.675, allocations: 327.2 kB / 0.5642 GB, free: 31.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/1.687, allocations: 4.343 MB / 0.5684 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/1.687, allocations: 23.59 kB / 0.5684 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.74e-05/1.688, allocations: 14.69 kB / 0.5684 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.89e-05/1.688, allocations: 16.94 kB / 0.5684 GB, free: 29.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02928/1.717, allocations: 9.899 MB / 0.5781 GB, free: 25.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.724e-05/1.717, allocations: 3.719 kB / 0.5781 GB, free: 25.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003466/1.72, allocations: 401.4 kB / 0.5785 GB, free: 25.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004876/1.725, allocations: 1.066 MB / 0.5795 GB, free: 24.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006137/1.726, allocations: 60.77 kB / 0.5796 GB, free: 24.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02447/1.751, allocations: 16.58 MB / 0.5958 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.057e-05/1.751, allocations: 8.938 kB / 0.5958 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/1.767, allocations: 6.671 MB / 0.6023 GB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002674/1.77, allocations: 0.6894 MB / 0.603 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001266/1.771, allocations: 65.77 kB / 0.6031 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003759/1.775, allocations: 145 kB / 0.6032 GB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009322/1.776, allocations: 201.3 kB / 0.6034 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003645/1.776, allocations: 79.78 kB / 0.6035 GB, free: 8.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004861/1.781, allocations: 1.799 MB / 0.6052 GB, free: 6.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.781, allocations: 0 / 0.6052 GB, free: 6.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005956/1.787, allocations: 1.02 MB / 0.6062 GB, free: 5.887 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.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 (198): * Single equations (assignments): 191 * 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,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0186/1.806, allocations: 8.868 MB / 0.6149 GB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01321/1.819, allocations: 4.476 MB / 0.6192 GB, free: 9.316 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.819, allocations: 0 / 0.6192 GB, free: 9.316 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009088/1.828, allocations: 2.913 MB / 0.6221 GB, free: 6.566 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006858/1.835, allocations: 0.7768 MB / 0.6228 GB, free: 5.961 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03436/1.869, allocations: 9.296 MB / 0.6319 GB, free: 13.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007491/1.877, allocations: 3.399 MB / 0.6352 GB, free: 11.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004856/1.882, allocations: 0.6969 MB / 0.6359 GB, free: 10.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005271/1.887, allocations: 1.908 MB / 0.6378 GB, free: 8.969 MB / 394.7 MB Notification: Performance of SimCode: time 1.173e-06/1.887, allocations: 0 / 0.6378 GB, free: 8.969 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5165/2.404, allocations: 87.42 MB / 0.7232 GB, free: 66.94 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/2.404, allocations: 202.3 kB / 0.7233 GB, free: 66.71 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.516/7.92, allocations: 0 / 0.7233 GB, free: 66.71 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat