Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.674e-05/4.68e-05, allocations: 4 kB / 225.1 MB, free: 2.23 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2778, allocations: 38.76 MB / 263.9 MB, free: 9.723 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.173/0.4509, allocations: 99.33 MB / 363.2 MB, free: 6.234 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003154/0.4512, allocations: 83.95 kB / 363.3 MB, free: 6.152 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.168/1.619, allocations: 150.9 MB / 0.5021 GB, free: 43.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.619, allocations: 0 / 0.5021 GB, free: 43.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006537/1.62, allocations: 163.7 kB / 0.5023 GB, free: 43.39 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: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02688/1.647, allocations: 6.193 MB / 0.5083 GB, free: 41.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.797e-05/1.647, allocations: 10.53 kB / 0.5083 GB, free: 41.55 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003646/1.651, allocations: 0.8986 MB / 0.5092 GB, free: 41.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007605/1.658, allocations: 1.05 MB / 0.5102 GB, free: 41.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01588/1.674, allocations: 4.703 MB / 0.5148 GB, free: 40.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006614/1.675, allocations: 494.9 kB / 0.5153 GB, free: 40.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002716/1.678, allocations: 0.6537 MB / 0.5159 GB, free: 40.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02828/1.706, allocations: 8.344 MB / 0.5241 GB, free: 39.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004123/1.706, allocations: 7.688 kB / 0.5241 GB, free: 39.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002392/1.709, allocations: 278.3 kB / 0.5244 GB, free: 39.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003687/1.709, allocations: 288.5 kB / 0.5246 GB, free: 39.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02145/1.731, allocations: 6.386 MB / 0.5309 GB, free: 39.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06969/1.8, allocations: 26.53 MB / 0.5568 GB, free: 32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009397/1.81, allocations: 5.232 MB / 0.5619 GB, free: 28.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005831/1.816, allocations: 2.268 MB / 0.5641 GB, free: 27.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003528/1.816, allocations: 31.31 kB / 0.5641 GB, free: 27.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/1.816, allocations: 66.59 kB / 0.5642 GB, free: 27.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=254): time 5.541e-06/1.816, allocations: 7.562 kB / 0.5642 GB, free: 27.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.03316/1.849, allocations: 9.797 MB / 0.5738 GB, free: 22.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/1.849, allocations: 87.53 kB / 0.5739 GB, free: 22.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006964/1.856, allocations: 2.808 MB / 0.5766 GB, free: 21.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000608/1.857, allocations: 76.14 kB / 0.5767 GB, free: 21.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002515/1.86, allocations: 2.855 MB / 0.5795 GB, free: 19.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.861, allocations: 1.02 MB / 0.5805 GB, free: 18.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003627/1.861, allocations: 70.84 kB / 0.5805 GB, free: 18.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002486/1.862, allocations: 441.4 kB / 0.5809 GB, free: 18.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003847/1.866, allocations: 1.446 MB / 0.5824 GB, free: 17.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004679/1.87, allocations: 2.393 MB / 0.5847 GB, free: 15.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005389/1.876, allocations: 1.915 MB / 0.5866 GB, free: 14.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.665e-05/1.876, allocations: 10.81 kB / 0.5866 GB, free: 14.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01593/1.892, allocations: 5.166 MB / 0.5916 GB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.789e-05/1.892, allocations: 19.09 kB / 0.5916 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.499e-05/1.892, allocations: 32.17 kB / 0.5917 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004166/1.896, allocations: 0.9457 MB / 0.5926 GB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005826/1.902, allocations: 0.7246 MB / 0.5933 GB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02749/1.93, allocations: 14.76 MB / 0.6077 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00472/1.934, allocations: 153.3 kB / 0.6078 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000903/1.935, allocations: 149.8 kB / 0.608 GB, free: 13.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (381): * Single equations (assignments): 373 * 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: 6 * 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: 6 {(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 18,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001097/1.936, allocations: 314.8 kB / 0.6083 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.938, allocations: 377.9 kB / 0.6087 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01557/1.953, allocations: 4.647 MB / 0.6132 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-05/1.953, allocations: 31.94 kB / 0.6132 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-05/1.953, allocations: 16 kB / 0.6132 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.82e-05/1.954, allocations: 14.02 kB / 0.6132 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04044/1.994, allocations: 12.15 MB / 0.6251 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.485e-05/1.994, allocations: 15.61 kB / 0.6251 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/1.998, allocations: 430.9 kB / 0.6255 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005223/2.003, allocations: 1.091 MB / 0.6266 GB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006373/2.004, allocations: 67.7 kB / 0.6267 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3374/2.341, allocations: 18.2 MB / 0.6444 GB, free: 62.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/2.342, allocations: 10.33 kB / 0.6444 GB, free: 62.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01681/2.358, allocations: 7.521 MB / 0.6518 GB, free: 60.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002969/2.361, allocations: 0.7805 MB / 0.6526 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001818/2.363, allocations: 68.47 kB / 0.6526 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004114/2.367, allocations: 141.6 kB / 0.6528 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009364/2.368, allocations: 242.5 kB / 0.653 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002886/2.369, allocations: 86.64 kB / 0.6531 GB, free: 60.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005019/2.374, allocations: 2.14 MB / 0.6552 GB, free: 60.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.012e-06/2.374, allocations: 0 / 0.6552 GB, free: 60.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006832/2.381, allocations: 1.204 MB / 0.6563 GB, free: 60.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.port_n.Phi.re,smr3.stator.port_n.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 213 * 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 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01829/2.399, allocations: 10.4 MB / 0.6665 GB, free: 55.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01192/2.411, allocations: 4.808 MB / 0.6712 GB, free: 54.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/2.411, allocations: 3.875 kB / 0.6712 GB, free: 54.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008698/2.42, allocations: 3.139 MB / 0.6743 GB, free: 54.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007537/2.427, allocations: 0.9408 MB / 0.6752 GB, free: 54.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03576/2.463, allocations: 11.83 MB / 0.6867 GB, free: 51.71 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007859/2.471, allocations: 4.327 MB / 0.691 GB, free: 50.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004483/2.476, allocations: 0.7435 MB / 0.6917 GB, free: 50.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005466/2.481, allocations: 2.446 MB / 0.6941 GB, free: 50.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.943e-06/2.481, allocations: 3.938 kB / 0.6941 GB, free: 50.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4998/2.981, allocations: 103.1 MB / 0.7947 GB, free: 50.3 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/2.981, allocations: 216.1 kB / 0.7949 GB, free: 50.08 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.639/9.62, allocations: 0 / 0.7949 GB, free: 50.08 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_MultiPhase_res.mat does not exist to compare? outputFormat=mat