Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.07e-05, allocations: 4 kB / 255.5 MB, free: 2.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09105, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4467/0.5378, allocations: 111.3 MB / 411.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.5382, allocations: 87.31 kB / 411.3 MB, free: 9.293 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8891/1.427, allocations: 169.1 MB / 0.5669 GB, free: 57.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.235e-06/1.427, allocations: 0 / 0.5669 GB, free: 57.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006626/1.428, allocations: 179.2 kB / 0.567 GB, free: 57.18 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.02765/1.456, allocations: 6.657 MB / 0.5735 GB, free: 54.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.456, allocations: 8.656 kB / 0.5735 GB, free: 54.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003779/1.46, allocations: 0.9901 MB / 0.5745 GB, free: 54.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01302/1.473, allocations: 1.596 MB / 0.5761 GB, free: 54.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01991/1.493, allocations: 5.903 MB / 0.5818 GB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000624/1.493, allocations: 0.5315 MB / 0.5823 GB, free: 53.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002762/1.496, allocations: 0.7076 MB / 0.583 GB, free: 53.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02832/1.524, allocations: 9.356 MB / 0.5922 GB, free: 52.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002896/1.525, allocations: 7.281 kB / 0.5922 GB, free: 52.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002128/1.527, allocations: 309.1 kB / 0.5925 GB, free: 52.24 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003959/1.527, allocations: 340.9 kB / 0.5928 GB, free: 52.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02392/1.551, allocations: 7.525 MB / 0.6001 GB, free: 49.03 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07537/1.627, allocations: 30.58 MB / 0.63 GB, free: 32.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02249/1.649, allocations: 15.96 MB / 0.6456 GB, free: 17.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007289/1.656, allocations: 3.04 MB / 0.6486 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02211/1.679, allocations: 8.146 MB / 0.6565 GB, free: 7.715 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.754e-05/1.679, allocations: 64.78 kB / 0.6566 GB, free: 7.641 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 5.621e-06/1.679, allocations: 3.938 kB / 0.6566 GB, free: 7.637 MB / 410.7 MB Notification: Performance of matching and sorting (n=289): time 0.02155/1.7, allocations: 8.371 MB / 0.6648 GB, free: 15.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/1.7, allocations: 89.69 kB / 0.6648 GB, free: 15.81 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00837/1.709, allocations: 3.171 MB / 0.6679 GB, free: 12.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000641/1.71, allocations: 73.7 kB / 0.668 GB, free: 12.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003285/1.713, allocations: 3.171 MB / 0.6711 GB, free: 10.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001629/1.714, allocations: 0.9897 MB / 0.6721 GB, free: 9.164 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000394/1.715, allocations: 76 kB / 0.6721 GB, free: 9.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003251/1.715, allocations: 454.9 kB / 0.6726 GB, free: 8.684 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004211/1.719, allocations: 1.394 MB / 0.6739 GB, free: 7.391 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005229/1.725, allocations: 2.522 MB / 0.6764 GB, free: 4.535 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005358/1.73, allocations: 1.877 MB / 0.6782 GB, free: 2.867 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.065e-05/1.73, allocations: 12 kB / 0.6782 GB, free: 2.855 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.3299/2.06, allocations: 5.239 MB / 0.6834 GB, free: 67.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.585e-05/2.06, allocations: 23.38 kB / 0.6834 GB, free: 67.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.065e-05/2.06, allocations: 41.5 kB / 0.6834 GB, free: 67.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/2.062, allocations: 404.2 kB / 0.6838 GB, free: 67.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007001/2.069, allocations: 0.866 MB / 0.6847 GB, free: 67.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008631/2.078, allocations: 7.325 MB / 0.6918 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/2.083, allocations: 175.9 kB / 0.692 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005843/2.083, allocations: 163.6 kB / 0.6921 GB, free: 62.6 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.0008521/2.084, allocations: 333.5 kB / 0.6925 GB, free: 62.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/2.085, allocations: 403 kB / 0.6928 GB, free: 62.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/2.098, allocations: 4.334 MB / 0.6971 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-05/2.098, allocations: 33.59 kB / 0.6971 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.602e-05/2.098, allocations: 13.22 kB / 0.6971 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.801e-05/2.098, allocations: 14.11 kB / 0.6971 GB, free: 62.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02641/2.124, allocations: 10.36 MB / 0.7072 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/2.124, allocations: 4.344 kB / 0.7073 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003786/2.128, allocations: 445.1 kB / 0.7077 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003574/2.132, allocations: 0.8756 MB / 0.7085 GB, free: 61.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004016/2.132, allocations: 80.92 kB / 0.7086 GB, free: 61.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02164/2.154, allocations: 16.25 MB / 0.7245 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/2.154, allocations: 4.625 kB / 0.7245 GB, free: 51.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01447/2.168, allocations: 6.692 MB / 0.731 GB, free: 50.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00285/2.171, allocations: 0.8191 MB / 0.7318 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001372/2.173, allocations: 66.52 kB / 0.7319 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004496/2.177, allocations: 153 kB / 0.732 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/2.178, allocations: 225.8 kB / 0.7322 GB, free: 50.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003151/2.179, allocations: 80.52 kB / 0.7323 GB, free: 50.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005459/2.184, allocations: 2.401 MB / 0.7347 GB, free: 50.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.31e-07/2.184, allocations: 3.188 kB / 0.7347 GB, free: 50.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006253/2.19, allocations: 1.274 MB / 0.7359 GB, free: 50.34 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.01586/2.206, allocations: 8.84 MB / 0.7445 GB, free: 46.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009445/2.216, allocations: 4.192 MB / 0.7486 GB, free: 44.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/2.216, allocations: 7.375 kB / 0.7486 GB, free: 44.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006783/2.223, allocations: 2.908 MB / 0.7515 GB, free: 42.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007898/2.231, allocations: 1.019 MB / 0.7525 GB, free: 42.47 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03539/2.266, allocations: 12.05 MB / 0.7643 GB, free: 37.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007935/2.274, allocations: 4.465 MB / 0.7686 GB, free: 36.04 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005722/2.28, allocations: 0.8907 MB / 0.7695 GB, free: 35.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005663/2.285, allocations: 2.724 MB / 0.7721 GB, free: 33.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.342e-06/2.286, allocations: 0 / 0.7721 GB, free: 33.63 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5522/2.838, allocations: 108.5 MB / 0.8781 GB, free: 75.58 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/2.838, allocations: 216.9 kB / 0.8784 GB, free: 75.35 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/9.759, allocations: 3.938 kB / 0.8784 GB, free: 75.35 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat