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.621/1.621, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.767e-05, allocations: 0 / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2758, allocations: 38.77 MB / 263.9 MB, free: 9.805 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.4491, allocations: 99.32 MB / 363.2 MB, free: 6.324 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.4495, allocations: 83.95 kB / 363.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.075/1.525, allocations: 150.9 MB / 0.5021 GB, free: 43.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.525, allocations: 0 / 0.5021 GB, free: 43.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006948/1.525, allocations: 165.9 kB / 0.5022 GB, free: 43.49 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.02594/1.551, allocations: 6.19 MB / 0.5083 GB, free: 41.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/1.551, allocations: 6.531 kB / 0.5083 GB, free: 41.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003193/1.555, allocations: 0.904 MB / 0.5092 GB, free: 41.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007403/1.562, allocations: 1.053 MB / 0.5102 GB, free: 41.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/1.578, allocations: 4.704 MB / 0.5148 GB, free: 40.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009194/1.579, allocations: 497.8 kB / 0.5153 GB, free: 40.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00287/1.582, allocations: 0.6445 MB / 0.5159 GB, free: 40.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0269/1.609, allocations: 8.418 MB / 0.5241 GB, free: 39.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003766/1.609, allocations: 14.05 kB / 0.5241 GB, free: 39.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002014/1.611, allocations: 281.4 kB / 0.5244 GB, free: 39.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003274/1.612, allocations: 298.4 kB / 0.5247 GB, free: 39.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02062/1.632, allocations: 6.464 MB / 0.531 GB, free: 39.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06446/1.697, allocations: 26.52 MB / 0.5569 GB, free: 32.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008439/1.705, allocations: 5.254 MB / 0.562 GB, free: 28.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005393/1.711, allocations: 2.273 MB / 0.5643 GB, free: 27.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/1.711, allocations: 29.55 kB / 0.5643 GB, free: 27.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.067e-05/1.711, allocations: 66.62 kB / 0.5643 GB, free: 27.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=254): time 5.16e-06/1.711, allocations: 0 / 0.5643 GB, free: 27.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.03085/1.742, allocations: 9.799 MB / 0.5739 GB, free: 22.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/1.742, allocations: 89.81 kB / 0.574 GB, free: 22.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006494/1.748, allocations: 2.816 MB / 0.5767 GB, free: 21.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006023/1.749, allocations: 72.23 kB / 0.5768 GB, free: 21.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002206/1.751, allocations: 2.85 MB / 0.5796 GB, free: 19.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/1.753, allocations: 1.018 MB / 0.5806 GB, free: 18.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003787/1.753, allocations: 70.41 kB / 0.5807 GB, free: 18.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002544/1.753, allocations: 447.6 kB / 0.5811 GB, free: 18.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003767/1.757, allocations: 1.442 MB / 0.5825 GB, free: 17.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/1.761, allocations: 2.411 MB / 0.5849 GB, free: 15.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004853/1.766, allocations: 1.92 MB / 0.5867 GB, free: 14.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.5e-05/1.766, allocations: 8.75 kB / 0.5867 GB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01441/1.781, allocations: 5.257 MB / 0.5919 GB, free: 12.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/1.781, allocations: 19.44 kB / 0.5919 GB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-05/1.781, allocations: 29.22 kB / 0.5919 GB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003999/1.785, allocations: 0.9373 MB / 0.5928 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005609/1.791, allocations: 0.7336 MB / 0.5935 GB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02604/1.817, allocations: 14.8 MB / 0.608 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004472/1.821, allocations: 148.7 kB / 0.6081 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005626/1.822, allocations: 150.8 kB / 0.6083 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.0008255/1.823, allocations: 316.3 kB / 0.6086 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009673/1.824, allocations: 371.4 kB / 0.6089 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01269/1.836, allocations: 4.643 MB / 0.6135 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-05/1.836, allocations: 28 kB / 0.6135 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.686e-05/1.836, allocations: 17.5 kB / 0.6135 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.556e-05/1.836, allocations: 15.09 kB / 0.6135 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03478/1.871, allocations: 12.18 MB / 0.6254 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-05/1.871, allocations: 8 kB / 0.6254 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/1.875, allocations: 440.7 kB / 0.6259 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004875/1.88, allocations: 1.087 MB / 0.6269 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005397/1.881, allocations: 71.94 kB / 0.627 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3015/2.182, allocations: 18.21 MB / 0.6448 GB, free: 62.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/2.182, allocations: 11.84 kB / 0.6448 GB, free: 62.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/2.199, allocations: 7.521 MB / 0.6521 GB, free: 60.31 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002794/2.202, allocations: 0.7834 MB / 0.6529 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009642/2.203, allocations: 67.25 kB / 0.653 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003832/2.206, allocations: 144.7 kB / 0.6531 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008132/2.207, allocations: 238.9 kB / 0.6533 GB, free: 60.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002679/2.208, allocations: 85.09 kB / 0.6534 GB, free: 60.21 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004663/2.212, allocations: 2.144 MB / 0.6555 GB, free: 60.05 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.212, allocations: 0 / 0.6555 GB, free: 60.05 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006118/2.218, allocations: 1.203 MB / 0.6567 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.01666/2.235, allocations: 10.38 MB / 0.6668 GB, free: 55.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01138/2.246, allocations: 4.924 MB / 0.6716 GB, free: 54.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.308e-05/2.247, allocations: 3.25 kB / 0.6716 GB, free: 54.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00808/2.255, allocations: 3.223 MB / 0.6748 GB, free: 54.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007249/2.262, allocations: 0.9387 MB / 0.6757 GB, free: 54.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03267/2.295, allocations: 11.86 MB / 0.6873 GB, free: 51.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006382/2.301, allocations: 4.324 MB / 0.6915 GB, free: 50.69 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004205/2.305, allocations: 0.7358 MB / 0.6922 GB, free: 50.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004818/2.31, allocations: 2.452 MB / 0.6946 GB, free: 50.59 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/2.31, allocations: 0 / 0.6946 GB, free: 50.59 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5259/2.836, allocations: 103.7 MB / 0.7958 GB, free: 51.39 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002526/2.836, allocations: 212.1 kB / 0.796 GB, free: 51.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.108/8.945, allocations: 3.938 kB / 0.796 GB, free: 51.16 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