Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.789/1.789, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.156e-05/3.168e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08884, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5295, allocations: 111.3 MB / 411.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.5299, allocations: 85.55 kB / 411.3 MB, free: 9.492 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.878/1.408, allocations: 169.1 MB / 0.5669 GB, free: 56.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.245e-06/1.408, allocations: 0 / 0.5669 GB, free: 56.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006419/1.409, allocations: 173 kB / 0.567 GB, free: 56.85 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1927 * Number of variables: 1927 Notification: Performance of Generate backend data structure: time 0.02807/1.437, allocations: 6.667 MB / 0.5735 GB, free: 54.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/1.437, allocations: 10.69 kB / 0.5735 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003813/1.441, allocations: 0.9829 MB / 0.5745 GB, free: 54.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01323/1.454, allocations: 1.608 MB / 0.5761 GB, free: 53.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/1.474, allocations: 5.898 MB / 0.5818 GB, free: 53.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006316/1.475, allocations: 0.5316 MB / 0.5823 GB, free: 53.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002852/1.477, allocations: 0.707 MB / 0.583 GB, free: 53.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02763/1.505, allocations: 9.263 MB / 0.5921 GB, free: 52.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002726/1.505, allocations: 14.06 kB / 0.5921 GB, free: 52.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/1.507, allocations: 304.4 kB / 0.5924 GB, free: 51.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003731/1.507, allocations: 336.5 kB / 0.5927 GB, free: 51.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02288/1.53, allocations: 7.435 MB / 0.6 GB, free: 48.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07327/1.604, allocations: 30.58 MB / 0.6298 GB, free: 32.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02189/1.626, allocations: 15.91 MB / 0.6454 GB, free: 17.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007337/1.633, allocations: 3.048 MB / 0.6484 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02211/1.655, allocations: 8.151 MB / 0.6563 GB, free: 7.945 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/1.655, allocations: 64.78 kB / 0.6564 GB, free: 7.871 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 6.632e-06/1.655, allocations: 3.656 kB / 0.6564 GB, free: 7.871 MB / 410.7 MB Notification: Performance of matching and sorting (n=289): time 0.02163/1.677, allocations: 8.341 MB / 0.6645 GB, free: 72 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/1.677, allocations: 84 kB / 0.6646 GB, free: 15.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008691/1.686, allocations: 3.175 MB / 0.6677 GB, free: 13.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006615/1.686, allocations: 73.7 kB / 0.6678 GB, free: 13.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003106/1.69, allocations: 2.964 MB / 0.6707 GB, free: 10.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001645/1.691, allocations: 0.9932 MB / 0.6716 GB, free: 9.465 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003852/1.692, allocations: 72 kB / 0.6717 GB, free: 9.395 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003217/1.692, allocations: 461.5 kB / 0.6721 GB, free: 8.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003997/1.696, allocations: 1.392 MB / 0.6735 GB, free: 7.688 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005161/1.701, allocations: 2.491 MB / 0.6759 GB, free: 4.859 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005223/1.706, allocations: 1.884 MB / 0.6778 GB, free: 3.184 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.854e-05/1.707, allocations: 12 kB / 0.6778 GB, free: 3.172 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.3212/2.028, allocations: 4.638 MB / 0.6823 GB, free: 67.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.897e-05/2.028, allocations: 20.75 kB / 0.6823 GB, free: 67.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.189e-05/2.028, allocations: 34.53 kB / 0.6824 GB, free: 67.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/2.03, allocations: 405.7 kB / 0.6828 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007165/2.037, allocations: 0.8649 MB / 0.6836 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008724/2.045, allocations: 7.318 MB / 0.6908 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005286/2.051, allocations: 179.8 kB / 0.6909 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008655/2.052, allocations: 162.5 kB / 0.6911 GB, free: 62.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (449): * Single equations (assignments): 443 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008856/2.053, allocations: 340.5 kB / 0.6914 GB, free: 61.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/2.054, allocations: 398.1 kB / 0.6918 GB, free: 61.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/2.067, allocations: 4.334 MB / 0.696 GB, free: 61.47 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.264e-05/2.067, allocations: 32.38 kB / 0.696 GB, free: 61.47 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.416e-05/2.067, allocations: 14.16 kB / 0.6961 GB, free: 61.47 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.87e-05/2.068, allocations: 14.2 kB / 0.6961 GB, free: 61.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/2.096, allocations: 10.35 MB / 0.7062 GB, free: 60.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.501e-05/2.096, allocations: 7.219 kB / 0.7062 GB, free: 60.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004084/2.1, allocations: 445.1 kB / 0.7066 GB, free: 60.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003859/2.104, allocations: 0.876 MB / 0.7075 GB, free: 60.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006396/2.104, allocations: 79.06 kB / 0.7075 GB, free: 60.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02263/2.127, allocations: 16.25 MB / 0.7234 GB, free: 51.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/2.127, allocations: 7.5 kB / 0.7234 GB, free: 51.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/2.143, allocations: 6.692 MB / 0.73 GB, free: 50.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00313/2.146, allocations: 0.8229 MB / 0.7308 GB, free: 49.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001536/2.148, allocations: 68.5 kB / 0.7308 GB, free: 49.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004606/2.152, allocations: 154.2 kB / 0.731 GB, free: 49.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/2.153, allocations: 218.6 kB / 0.7312 GB, free: 49.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002955/2.154, allocations: 84.05 kB / 0.7313 GB, free: 49.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006492/2.16, allocations: 2.398 MB / 0.7336 GB, free: 49.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.16, allocations: 3.188 kB / 0.7336 GB, free: 49.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007674/2.168, allocations: 1.279 MB / 0.7349 GB, free: 49.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (219): * Single equations (assignments): 212 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01787/2.186, allocations: 8.845 MB / 0.7435 GB, free: 45.67 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01002/2.196, allocations: 4.089 MB / 0.7475 GB, free: 43.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.196, allocations: 7.094 kB / 0.7475 GB, free: 43.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007224/2.203, allocations: 2.837 MB / 0.7503 GB, free: 42.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008703/2.212, allocations: 1.022 MB / 0.7513 GB, free: 41.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03858/2.25, allocations: 11.95 MB / 0.7629 GB, free: 37.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008079/2.259, allocations: 4.349 MB / 0.7672 GB, free: 35.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006254/2.265, allocations: 2.75 MB / 0.7699 GB, free: 33.33 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/2.265, allocations: 0 / 0.7699 GB, free: 33.33 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.436/7.701, allocations: 335.5 MB / 1.098 GB, free: 72.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat