Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.698e-05, allocations: 0 / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2608, allocations: 38.76 MB / 258.4 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.4355, allocations: 101.8 MB / 360.1 MB, free: 7.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.4358, allocations: 79.95 kB / 360.2 MB, free: 7.871 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.039/1.475, allocations: 158.1 MB / 0.5062 GB, free: 39.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.475, allocations: 0 / 0.5062 GB, free: 39.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008086/1.476, allocations: 167.2 kB / 0.5063 GB, free: 39.36 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: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.0279/1.504, allocations: 6.427 MB / 0.5126 GB, free: 37.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.504, allocations: 15.28 kB / 0.5126 GB, free: 37.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007745/1.512, allocations: 1.106 MB / 0.5137 GB, free: 36.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01685/1.529, allocations: 4.905 MB / 0.5185 GB, free: 35.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004678/1.529, allocations: 220.7 kB / 0.5187 GB, free: 35.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002784/1.532, allocations: 410.8 kB / 0.5191 GB, free: 35.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02044/1.553, allocations: 6.255 MB / 0.5252 GB, free: 35.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0272/1.58, allocations: 7.686 MB / 0.5327 GB, free: 35.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003158/1.58, allocations: 11.75 kB / 0.5327 GB, free: 35.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001929/1.582, allocations: 11.77 kB / 0.5327 GB, free: 35.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003625/1.583, allocations: 306.9 kB / 0.533 GB, free: 35.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06832/1.651, allocations: 26.37 MB / 0.5588 GB, free: 25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008642/1.66, allocations: 5.276 MB / 0.5639 GB, free: 21.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005677/1.665, allocations: 2.303 MB / 0.5662 GB, free: 20.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003979/1.666, allocations: 33.09 kB / 0.5662 GB, free: 20.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/1.666, allocations: 62.25 kB / 0.5663 GB, free: 20.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 6.091e-06/1.666, allocations: 0 / 0.5663 GB, free: 20.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=322): time 0.03237/1.698, allocations: 9.781 MB / 0.5758 GB, free: 14.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/1.698, allocations: 81.94 kB / 0.5759 GB, free: 14.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006115/1.704, allocations: 2.398 MB / 0.5783 GB, free: 12.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006715/1.705, allocations: 33.7 kB / 0.5783 GB, free: 12.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003084/1.708, allocations: 3.004 MB / 0.5812 GB, free: 9.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001706/1.71, allocations: 1.056 MB / 0.5822 GB, free: 8.941 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/1.71, allocations: 0 / 0.5822 GB, free: 8.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003262/1.711, allocations: 452.3 kB / 0.5827 GB, free: 8.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004013/1.715, allocations: 1.448 MB / 0.5841 GB, free: 7.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005581/1.72, allocations: 2.461 MB / 0.5865 GB, free: 4.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005664/1.726, allocations: 1.945 MB / 0.5884 GB, free: 2.801 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.574e-05/1.726, allocations: 8 kB / 0.5884 GB, free: 2.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.02188/1.748, allocations: 5.405 MB / 0.5937 GB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.65e-05/1.748, allocations: 20 kB / 0.5937 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.012e-05/1.748, allocations: 28 kB / 0.5937 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004344/1.753, allocations: 0.9396 MB / 0.5946 GB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006263/1.759, allocations: 0.7831 MB / 0.5954 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.026/1.785, allocations: 14.55 MB / 0.6096 GB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00481/1.79, allocations: 90.22 kB / 0.6097 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009824/1.791, allocations: 155.5 kB / 0.6099 GB, free: 15.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (409): * Single equations (assignments): 401 * 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%) 20,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001547/1.793, allocations: 215 kB / 0.6101 GB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01419/1.807, allocations: 4.302 MB / 0.6143 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/1.808, allocations: 363.5 kB / 0.6146 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/1.824, allocations: 4.552 MB / 0.6191 GB, free: 6.633 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.124e-05/1.824, allocations: 35.95 kB / 0.6191 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.197e-05/1.824, allocations: 12 kB / 0.6191 GB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.985e-05/1.824, allocations: 16.5 kB / 0.6191 GB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3181/2.142, allocations: 11.97 MB / 0.6308 GB, free: 61.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.857e-05/2.142, allocations: 11.78 kB / 0.6308 GB, free: 61.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003883/2.146, allocations: 477.1 kB / 0.6313 GB, free: 61.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004455/2.151, allocations: 1.077 MB / 0.6323 GB, free: 61.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000549/2.151, allocations: 32.09 kB / 0.6323 GB, free: 61.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0254/2.177, allocations: 17.53 MB / 0.6495 GB, free: 53.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-05/2.177, allocations: 21.03 kB / 0.6495 GB, free: 53.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/2.191, allocations: 7.633 MB / 0.6569 GB, free: 51.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003213/2.195, allocations: 0.7732 MB / 0.6577 GB, free: 51.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/2.196, allocations: 22.27 kB / 0.6577 GB, free: 51.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004163/2.201, allocations: 100.5 kB / 0.6578 GB, free: 51.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001092/2.202, allocations: 248 kB / 0.6581 GB, free: 51.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004986/2.202, allocations: 95.17 kB / 0.6581 GB, free: 51.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004599/2.207, allocations: 1.782 MB / 0.6599 GB, free: 50.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.81e-07/2.207, allocations: 0 / 0.6599 GB, free: 50.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007328/2.214, allocations: 1.107 MB / 0.661 GB, free: 50.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.port_n.Phi.re,smpm3.stator.port_n.Phi.im,smpm3.stator.strayReluctance.Phi.re,smpm3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 234 * 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.01769/2.232, allocations: 10.67 MB / 0.6714 GB, free: 46.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01181/2.244, allocations: 4.897 MB / 0.6762 GB, free: 45.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/2.244, allocations: 3.438 kB / 0.6762 GB, free: 45.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01158/2.256, allocations: 3.18 MB / 0.6793 GB, free: 44.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009826/2.265, allocations: 0.7652 MB / 0.68 GB, free: 44.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05126/2.317, allocations: 11.99 MB / 0.6917 GB, free: 41.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01198/2.329, allocations: 4.453 MB / 0.6961 GB, free: 40.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006944/2.336, allocations: 0.741 MB / 0.6968 GB, free: 40.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008222/2.344, allocations: 2.558 MB / 0.6993 GB, free: 38.73 MB / 378.7 MB Notification: Performance of SimCode: time 1.924e-06/2.344, allocations: 0 / 0.6993 GB, free: 38.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5544/2.899, allocations: 94.03 MB / 0.7911 GB, free: 54.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/2.899, allocations: 181.3 kB / 0.7913 GB, free: 54.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.953/8.852, allocations: 0 / 0.7913 GB, free: 54.58 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat