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.755/1.755, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.603e-05, allocations: 8 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2995, allocations: 38.77 MB / 258.4 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.7101, allocations: 111.6 MB / 370 MB, free: 52.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003432/0.7105, allocations: 83.98 kB / 370.1 MB, free: 52.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3846/1.095, allocations: 109.3 MB / 479.4 MB, free: 4.965 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.095, allocations: 0 / 479.4 MB, free: 4.965 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005369/1.096, allocations: 135.8 kB / 479.5 MB, free: 4.832 MB / 330.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.01965/1.115, allocations: 4.744 MB / 484.2 MB, free: 16 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/1.115, allocations: 12.03 kB / 484.3 MB, free: 4 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004807/1.12, allocations: 0.7353 MB / 485 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01205/1.132, allocations: 3.465 MB / 488.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003742/1.133, allocations: 160 kB / 488.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002012/1.135, allocations: 303.9 kB / 488.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01529/1.15, allocations: 4.55 MB / 493.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/1.168, allocations: 5.56 MB / 499 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001818/1.168, allocations: 7.906 kB / 499 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006317/1.169, allocations: 4 kB / 499 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003468/1.169, allocations: 221.8 kB / 499.2 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.292/1.461, allocations: 19.03 MB / 0.5061 GB, free: 39.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005692/1.467, allocations: 3.9 MB / 0.5099 GB, free: 37.29 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003443/1.47, allocations: 1.665 MB / 0.5116 GB, free: 37.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004635/1.471, allocations: 154.3 kB / 0.5117 GB, free: 37.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.471, allocations: 57.28 kB / 0.5118 GB, free: 37.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 4.539e-06/1.471, allocations: 2.219 kB / 0.5118 GB, free: 37.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=263): time 0.02447/1.495, allocations: 8.893 MB / 0.5204 GB, free: 35.67 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/1.495, allocations: 78.08 kB / 0.5205 GB, free: 35.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/1.499, allocations: 1.93 MB / 0.5224 GB, free: 35.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004991/1.5, allocations: 25.7 kB / 0.5224 GB, free: 35.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/1.501, allocations: 2.229 MB / 0.5246 GB, free: 34.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.502, allocations: 0.8678 MB / 0.5255 GB, free: 34.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/1.503, allocations: 3.188 kB / 0.5255 GB, free: 34.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001865/1.503, allocations: 425.1 kB / 0.5259 GB, free: 33.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/1.506, allocations: 1.294 MB / 0.5271 GB, free: 33.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/1.509, allocations: 2.122 MB / 0.5292 GB, free: 32.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003433/1.512, allocations: 1.695 MB / 0.5309 GB, free: 32.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-05/1.512, allocations: 13.67 kB / 0.5309 GB, free: 32.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=400) (initialization): time 0.01093/1.523, allocations: 4.564 MB / 0.5353 GB, free: 32.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/1.523, allocations: 14.47 kB / 0.5353 GB, free: 32.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.501e-05/1.523, allocations: 26.09 kB / 0.5354 GB, free: 32.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003675/1.527, allocations: 0.9492 MB / 0.5363 GB, free: 32.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004787/1.532, allocations: 0.6811 MB / 0.537 GB, free: 32.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01776/1.55, allocations: 12.43 MB / 0.5491 GB, free: 24.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/1.553, allocations: 116.5 kB / 0.5492 GB, free: 24.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000347/1.554, allocations: 134.8 kB / 0.5493 GB, free: 24.38 MB / 346.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 (343): * Single equations (assignments): 336 * 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,75.0%) 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.0006486/1.554, allocations: 184.2 kB / 0.5495 GB, free: 24.25 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00924/1.564, allocations: 3.885 MB / 0.5533 GB, free: 22.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001179/1.565, allocations: 290.3 kB / 0.5536 GB, free: 22.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01006/1.575, allocations: 4.107 MB / 0.5576 GB, free: 20.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.79e-05/1.575, allocations: 26.38 kB / 0.5576 GB, free: 20.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.575, allocations: 15.3 kB / 0.5576 GB, free: 20.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.139e-05/1.575, allocations: 11.25 kB / 0.5576 GB, free: 20.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02191/1.597, allocations: 9.067 MB / 0.5665 GB, free: 16.92 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/1.597, allocations: 6.812 kB / 0.5665 GB, free: 16.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003188/1.6, allocations: 409 kB / 0.5669 GB, free: 16.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004272/1.605, allocations: 1.059 MB / 0.5679 GB, free: 16.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/1.605, allocations: 22.38 kB / 0.5679 GB, free: 16.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/1.626, allocations: 15.95 MB / 0.5835 GB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/1.626, allocations: 9.562 kB / 0.5835 GB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/1.639, allocations: 6.433 MB / 0.5898 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002443/1.642, allocations: 0.6723 MB / 0.5905 GB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007873/1.643, allocations: 24.62 kB / 0.5905 GB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003109/1.646, allocations: 148.6 kB / 0.5906 GB, free: 0 / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007095/1.646, allocations: 206.7 kB / 0.5908 GB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002511/1.647, allocations: 71.7 kB / 0.5909 GB, free: 15.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003283/1.65, allocations: 1.421 MB / 0.5923 GB, free: 14.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.65, allocations: 0 / 0.5923 GB, free: 14.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005238/1.655, allocations: 0.8921 MB / 0.5932 GB, free: 13.64 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 (200): * Single equations (assignments): 193 * 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,(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.01655/1.672, allocations: 8.585 MB / 0.6015 GB, free: 5.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01063/1.683, allocations: 4.301 MB / 0.6057 GB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.586e-05/1.683, allocations: 8.062 kB / 0.6058 GB, free: 1.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007593/1.69, allocations: 2.814 MB / 0.6085 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004935/1.695, allocations: 0.5796 MB / 0.6091 GB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02659/1.722, allocations: 9.008 MB / 0.6179 GB, free: 6.578 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005274/1.727, allocations: 3.393 MB / 0.6212 GB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003937/1.731, allocations: 0.666 MB / 0.6218 GB, free: 3.535 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004362/1.735, allocations: 1.881 MB / 0.6237 GB, free: 1.797 MB / 378.7 MB Notification: Performance of SimCode: time 1.794e-06/1.736, allocations: 0 / 0.6237 GB, free: 1.797 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4556/2.191, allocations: 74.72 MB / 0.6966 GB, free: 55.05 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/2.191, allocations: 168.4 kB / 0.6968 GB, free: 54.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.082/7.273, allocations: 0 / 0.6968 GB, free: 54.85 MB / 378.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