Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.707/1.707, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.513e-05/3.521e-05, allocations: 4 kB / 225.1 MB, free: 2.234 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2529, allocations: 38.77 MB / 263.9 MB, free: 9.801 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.6795, allocations: 116.8 MB / 380.7 MB, free: 52.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.6799, allocations: 84.5 kB / 380.8 MB, free: 52.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4556/1.135, allocations: 118.6 MB / 499.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.136, allocations: 0 / 499.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006683/1.136, allocations: 135.8 kB / 499.6 MB, free: 14.8 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02261/1.159, allocations: 4.957 MB / 0.4927 GB, free: 9.777 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/1.159, allocations: 8.031 kB / 0.4927 GB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00329/1.162, allocations: 0.7039 MB / 0.4934 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005677/1.168, allocations: 0.7777 MB / 0.4941 GB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/1.182, allocations: 3.659 MB / 0.4977 GB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000652/1.183, allocations: 390.3 kB / 0.4981 GB, free: 4.152 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/1.185, allocations: 0.5076 MB / 0.4986 GB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2841/1.469, allocations: 6.452 MB / 0.5049 GB, free: 42.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003866/1.47, allocations: 15.17 kB / 0.5049 GB, free: 42.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001846/1.472, allocations: 218.9 kB / 0.5051 GB, free: 42.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003373/1.472, allocations: 231.1 kB / 0.5053 GB, free: 42.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01724/1.489, allocations: 4.947 MB / 0.5102 GB, free: 42.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05641/1.546, allocations: 21.08 MB / 0.5307 GB, free: 37.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007232/1.553, allocations: 3.999 MB / 0.5347 GB, free: 36.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004726/1.558, allocations: 1.803 MB / 0.5364 GB, free: 36.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005971/1.558, allocations: 153.7 kB / 0.5366 GB, free: 35.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.368e-05/1.559, allocations: 66.17 kB / 0.5366 GB, free: 35.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=226): time 5.21e-06/1.559, allocations: 0 / 0.5366 GB, free: 35.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=275): time 0.04872/1.607, allocations: 11.74 MB / 0.5481 GB, free: 34.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/1.607, allocations: 81.55 kB / 0.5482 GB, free: 34.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006956/1.614, allocations: 2.585 MB / 0.5507 GB, free: 34.05 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006136/1.615, allocations: 74.92 kB / 0.5508 GB, free: 34.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002373/1.617, allocations: 2.374 MB / 0.5531 GB, free: 33.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001325/1.619, allocations: 0.9348 MB / 0.554 GB, free: 32.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003853/1.619, allocations: 65.47 kB / 0.5541 GB, free: 32.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000262/1.619, allocations: 445.6 kB / 0.5545 GB, free: 32.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003775/1.623, allocations: 1.405 MB / 0.5558 GB, free: 31.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004532/1.628, allocations: 2.306 MB / 0.5581 GB, free: 30.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004876/1.633, allocations: 1.841 MB / 0.5599 GB, free: 29.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.604e-05/1.633, allocations: 8.781 kB / 0.5599 GB, free: 29.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=424) (initialization): time 0.01506/1.648, allocations: 5.055 MB / 0.5648 GB, free: 27.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/1.648, allocations: 17 kB / 0.5649 GB, free: 27.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-05/1.648, allocations: 34.5 kB / 0.5649 GB, free: 27.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004239/1.652, allocations: 0.988 MB / 0.5659 GB, free: 27.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/1.658, allocations: 0.7228 MB / 0.5666 GB, free: 27.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02138/1.679, allocations: 13.51 MB / 0.5798 GB, free: 17.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004641/1.684, allocations: 192.6 kB / 0.5799 GB, free: 17.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007426/1.685, allocations: 139.9 kB / 0.5801 GB, free: 17.51 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (364): * Single equations (assignments): 357 * 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%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007825/1.686, allocations: 310.3 kB / 0.5804 GB, free: 17.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.687, allocations: 348.5 kB / 0.5807 GB, free: 17.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01343/1.7, allocations: 4.521 MB / 0.5851 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.542e-05/1.7, allocations: 27.47 kB / 0.5851 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-05/1.7, allocations: 9.281 kB / 0.5851 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-05/1.7, allocations: 13.97 kB / 0.5852 GB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.731, allocations: 10.61 MB / 0.5955 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-05/1.731, allocations: 6.094 kB / 0.5955 GB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003679/1.735, allocations: 432.3 kB / 0.5959 GB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004904/1.74, allocations: 1.068 MB / 0.597 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005704/1.741, allocations: 66.78 kB / 0.597 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02514/1.766, allocations: 16.93 MB / 0.6136 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.766, allocations: 4 kB / 0.6136 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/1.783, allocations: 7.049 MB / 0.6205 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00257/1.785, allocations: 0.7281 MB / 0.6212 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007547/1.786, allocations: 67.75 kB / 0.6212 GB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003101/1.789, allocations: 156.7 kB / 0.6214 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006335/1.79, allocations: 209.8 kB / 0.6216 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002766/1.79, allocations: 74.81 kB / 0.6217 GB, free: 5.238 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005094/1.795, allocations: 1.961 MB / 0.6236 GB, free: 3.461 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.795, allocations: 4 kB / 0.6236 GB, free: 3.457 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005956/1.801, allocations: 1.089 MB / 0.6246 GB, free: 2.379 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 206 * 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%) 23,(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.01886/1.82, allocations: 9.536 MB / 0.634 GB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01205/1.832, allocations: 4.533 MB / 0.6384 GB, free: 5.098 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/1.832, allocations: 0 / 0.6384 GB, free: 5.098 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00896/1.841, allocations: 2.94 MB / 0.6413 GB, free: 2.355 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007521/1.849, allocations: 0.871 MB / 0.6421 GB, free: 1.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2862/2.135, allocations: 9.746 MB / 0.6516 GB, free: 67.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005826/2.141, allocations: 3.52 MB / 0.6551 GB, free: 66.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004332/2.145, allocations: 0.7346 MB / 0.6558 GB, free: 66.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004338/2.15, allocations: 2.034 MB / 0.6578 GB, free: 66.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.673e-06/2.15, allocations: 3.594 kB / 0.6578 GB, free: 66.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2526/2.402, allocations: 93.96 MB / 0.7495 GB, free: 33.89 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/2.403, allocations: 203.6 kB / 0.7497 GB, free: 33.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.873/8.276, allocations: 0 / 0.7497 GB, free: 33.66 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat