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.794/1.794, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.073e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.08944, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.549, allocations: 111.3 MB / 411.2 MB, free: 9.504 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003689/0.5494, allocations: 88.94 kB / 411.3 MB, free: 9.488 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9041/1.454, allocations: 169.1 MB / 0.5668 GB, free: 56.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.537e-06/1.454, allocations: 0 / 0.5668 GB, free: 56.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006903/1.454, allocations: 176.6 kB / 0.567 GB, free: 56.9 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.02854/1.483, allocations: 6.664 MB / 0.5735 GB, free: 54.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/1.483, allocations: 6.562 kB / 0.5735 GB, free: 54.49 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004053/1.487, allocations: 0.9914 MB / 0.5745 GB, free: 54.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/1.5, allocations: 1.596 MB / 0.576 GB, free: 53.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0201/1.52, allocations: 5.897 MB / 0.5818 GB, free: 53.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006739/1.521, allocations: 0.533 MB / 0.5823 GB, free: 53.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002911/1.524, allocations: 0.7085 MB / 0.583 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/1.554, allocations: 9.347 MB / 0.5921 GB, free: 52.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003707/1.555, allocations: 14.34 kB / 0.5921 GB, free: 52.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002396/1.557, allocations: 309.1 kB / 0.5924 GB, free: 51.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004125/1.558, allocations: 338.2 kB / 0.5928 GB, free: 51.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02466/1.582, allocations: 7.522 MB / 0.6001 GB, free: 48.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08136/1.664, allocations: 30.59 MB / 0.63 GB, free: 32.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02246/1.686, allocations: 15.95 MB / 0.6456 GB, free: 17.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007824/1.694, allocations: 3.05 MB / 0.6485 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02466/1.719, allocations: 8.147 MB / 0.6565 GB, free: 7.762 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.357e-05/1.719, allocations: 68.72 kB / 0.6566 GB, free: 7.684 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 6.202e-06/1.719, allocations: 0 / 0.6566 GB, free: 7.684 MB / 410.7 MB Notification: Performance of matching and sorting (n=289): time 0.02373/1.743, allocations: 8.354 MB / 0.6647 GB, free: 15.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/1.743, allocations: 85.69 kB / 0.6648 GB, free: 15.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009283/1.752, allocations: 3.173 MB / 0.6679 GB, free: 12.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006268/1.753, allocations: 73.7 kB / 0.668 GB, free: 12.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00314/1.756, allocations: 2.959 MB / 0.6709 GB, free: 10.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/1.758, allocations: 1 MB / 0.6718 GB, free: 9.297 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004057/1.758, allocations: 76 kB / 0.6719 GB, free: 9.223 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003259/1.758, allocations: 453.4 kB / 0.6723 GB, free: 8.812 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004191/1.763, allocations: 1.398 MB / 0.6737 GB, free: 7.516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005532/1.768, allocations: 2.515 MB / 0.6762 GB, free: 4.664 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005454/1.774, allocations: 1.879 MB / 0.678 GB, free: 2.996 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.23e-05/1.774, allocations: 12 kB / 0.678 GB, free: 2.984 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.3371/2.111, allocations: 4.849 MB / 0.6827 GB, free: 67.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.038e-05/2.111, allocations: 19.91 kB / 0.6828 GB, free: 67.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/2.111, allocations: 40.09 kB / 0.6828 GB, free: 67.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002296/2.113, allocations: 405.8 kB / 0.6832 GB, free: 67.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01019/2.124, allocations: 0.8621 MB / 0.684 GB, free: 67.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02879/2.152, allocations: 7.325 MB / 0.6912 GB, free: 62.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0116/2.164, allocations: 177.1 kB / 0.6913 GB, free: 62.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/2.165, allocations: 162.8 kB / 0.6915 GB, free: 62.13 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.001185/2.167, allocations: 333.2 kB / 0.6918 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001596/2.168, allocations: 402.8 kB / 0.6922 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01885/2.187, allocations: 4.339 MB / 0.6964 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.914e-05/2.187, allocations: 29.22 kB / 0.6965 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-05/2.187, allocations: 14.81 kB / 0.6965 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001059/2.187, allocations: 14.11 kB / 0.6965 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03305/2.22, allocations: 10.37 MB / 0.7066 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.42e-05/2.221, allocations: 3.938 kB / 0.7066 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004054/2.225, allocations: 443 kB / 0.707 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003779/2.228, allocations: 0.881 MB / 0.7079 GB, free: 60.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005966/2.229, allocations: 78.06 kB / 0.708 GB, free: 60.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02223/2.251, allocations: 16.25 MB / 0.7239 GB, free: 51.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/2.251, allocations: 6.688 kB / 0.7239 GB, free: 51.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01567/2.267, allocations: 6.693 MB / 0.7304 GB, free: 50.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003079/2.27, allocations: 0.8182 MB / 0.7312 GB, free: 50.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001452/2.272, allocations: 66 kB / 0.7313 GB, free: 50.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004339/2.276, allocations: 158.4 kB / 0.7314 GB, free: 50.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008767/2.277, allocations: 214.4 kB / 0.7316 GB, free: 50.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002874/2.277, allocations: 89.47 kB / 0.7317 GB, free: 50.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006009/2.283, allocations: 2.397 MB / 0.734 GB, free: 49.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.41e-07/2.283, allocations: 0 / 0.734 GB, free: 49.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006523/2.29, allocations: 1.281 MB / 0.7353 GB, free: 49.87 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.01668/2.307, allocations: 8.841 MB / 0.7439 GB, free: 45.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009642/2.316, allocations: 4.194 MB / 0.748 GB, free: 43.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.547e-06/2.316, allocations: 6.844 kB / 0.748 GB, free: 43.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006982/2.323, allocations: 2.903 MB / 0.7509 GB, free: 42.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007797/2.331, allocations: 1.021 MB / 0.7519 GB, free: 41.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03547/2.367, allocations: 11.97 MB / 0.7635 GB, free: 37.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007654/2.374, allocations: 4.358 MB / 0.7678 GB, free: 35.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006135/2.381, allocations: 2.752 MB / 0.7705 GB, free: 33.27 MB / 426.7 MB Notification: Performance of SimCode: time 1.814e-06/2.381, allocations: 0 / 0.7705 GB, free: 33.27 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.71/8.091, allocations: 336.1 MB / 1.099 GB, free: 71.6 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