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.613/1.613, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.253e-05/3.26e-05, allocations: 4 kB / 225.1 MB, free: 2.234 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2748, allocations: 38.77 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1896/0.4645, allocations: 102.4 MB / 366.3 MB, free: 3.094 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003164/0.4649, allocations: 87.95 kB / 366.4 MB, free: 3.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.073/1.538, allocations: 160.2 MB / 0.5143 GB, free: 27.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.538, allocations: 0 / 0.5143 GB, free: 27.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006506/1.539, allocations: 179.9 kB / 0.5144 GB, free: 27.57 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.02737/1.566, allocations: 6.425 MB / 0.5207 GB, free: 25.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/1.566, allocations: 19.34 kB / 0.5207 GB, free: 25.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00364/1.57, allocations: 0.924 MB / 0.5216 GB, free: 25.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007724/1.578, allocations: 1.11 MB / 0.5227 GB, free: 25.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01609/1.594, allocations: 4.901 MB / 0.5275 GB, free: 24.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000669/1.595, allocations: 0.5039 MB / 0.528 GB, free: 24.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00281/1.598, allocations: 0.6676 MB / 0.5286 GB, free: 24.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02826/1.626, allocations: 8.617 MB / 0.5371 GB, free: 23.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000339/1.626, allocations: 7.344 kB / 0.5371 GB, free: 23.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002196/1.629, allocations: 292 kB / 0.5373 GB, free: 23.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003672/1.629, allocations: 306 kB / 0.5376 GB, free: 23.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02169/1.651, allocations: 6.562 MB / 0.544 GB, free: 23.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07031/1.721, allocations: 27.7 MB / 0.5711 GB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008991/1.73, allocations: 5.344 MB / 0.5763 GB, free: 8.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006045/1.736, allocations: 2.397 MB / 0.5786 GB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003364/1.737, allocations: 36.19 kB / 0.5787 GB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.54e-05/1.737, allocations: 63.55 kB / 0.5787 GB, free: 8.004 MB / 346.7 MB Notification: Performance of pre-optimization done (n=268): time 6.272e-06/1.737, allocations: 0 / 0.5787 GB, free: 8.004 MB / 346.7 MB Notification: Performance of matching and sorting (n=320): time 0.03274/1.769, allocations: 10.37 MB / 0.5889 GB, free: 3.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/1.769, allocations: 84.27 kB / 0.5889 GB, free: 3.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007407/1.777, allocations: 3.053 MB / 0.5919 GB, free: 1.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006225/1.778, allocations: 81.08 kB / 0.592 GB, free: 1.695 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003003/1.781, allocations: 3 MB / 0.5949 GB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001813/1.782, allocations: 1.084 MB / 0.596 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004086/1.783, allocations: 80 kB / 0.5961 GB, free: 13.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003483/1.783, allocations: 454.8 kB / 0.5965 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004458/1.788, allocations: 1.51 MB / 0.598 GB, free: 12.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005704/1.793, allocations: 2.532 MB / 0.6005 GB, free: 9.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005759/1.799, allocations: 2.028 MB / 0.6024 GB, free: 7.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.524e-05/1.799, allocations: 8 kB / 0.6024 GB, free: 7.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=481) (initialization): time 0.01786/1.817, allocations: 5.443 MB / 0.6078 GB, free: 2.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.944e-05/1.817, allocations: 20 kB / 0.6078 GB, free: 2.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/1.817, allocations: 35.61 kB / 0.6078 GB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004406/1.822, allocations: 0.9638 MB / 0.6087 GB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00638/1.828, allocations: 0.7816 MB / 0.6095 GB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02744/1.856, allocations: 15.18 MB / 0.6243 GB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004983/1.861, allocations: 163.5 kB / 0.6245 GB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007038/1.862, allocations: 158.6 kB / 0.6246 GB, free: 2.496 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 (407): * Single equations (assignments): 399 * 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,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000906/1.862, allocations: 326.9 kB / 0.625 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.864, allocations: 407 kB / 0.6253 GB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2966/2.16, allocations: 4.899 MB / 0.6301 GB, free: 51.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.744e-05/2.16, allocations: 39.61 kB / 0.6302 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.572e-05/2.16, allocations: 14.81 kB / 0.6302 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-05/2.161, allocations: 18 kB / 0.6302 GB, free: 51.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03648/2.197, allocations: 13.14 MB / 0.643 GB, free: 50.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-05/2.197, allocations: 7.094 kB / 0.643 GB, free: 50.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004018/2.201, allocations: 466.4 kB / 0.6435 GB, free: 50.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004801/2.206, allocations: 1.101 MB / 0.6446 GB, free: 50.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006056/2.207, allocations: 77.72 kB / 0.6446 GB, free: 50.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02779/2.234, allocations: 18.21 MB / 0.6624 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/2.235, allocations: 12.97 kB / 0.6624 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01727/2.252, allocations: 8.016 MB / 0.6702 GB, free: 39.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003087/2.255, allocations: 0.8399 MB / 0.6711 GB, free: 39.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001472/2.256, allocations: 73.92 kB / 0.6711 GB, free: 39.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004531/2.261, allocations: 152 kB / 0.6713 GB, free: 39.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001015/2.262, allocations: 251.2 kB / 0.6715 GB, free: 39.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000343/2.263, allocations: 91.45 kB / 0.6716 GB, free: 39.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.006265/2.269, allocations: 2.323 MB / 0.6739 GB, free: 39.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.192e-06/2.269, allocations: 0 / 0.6739 GB, free: 39.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007633/2.276, allocations: 1.271 MB / 0.6751 GB, free: 39.16 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 (240): * Single equations (assignments): 233 * 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.02016/2.297, allocations: 11.14 MB / 0.686 GB, free: 34.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01284/2.31, allocations: 5.036 MB / 0.6909 GB, free: 32.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.631e-05/2.31, allocations: 3.25 kB / 0.6909 GB, free: 32.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009017/2.319, allocations: 3.236 MB / 0.6941 GB, free: 30.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008624/2.327, allocations: 1.039 MB / 0.6951 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/2.365, allocations: 12.34 MB / 0.7071 GB, free: 25.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007321/2.372, allocations: 4.461 MB / 0.7115 GB, free: 23.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.005142/2.378, allocations: 0.7909 MB / 0.7123 GB, free: 23.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005697/2.383, allocations: 2.562 MB / 0.7148 GB, free: 21.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/2.383, allocations: 0 / 0.7148 GB, free: 21.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5571/2.94, allocations: 110.8 MB / 0.823 GB, free: 56.97 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002876/2.941, allocations: 206.8 kB / 0.8232 GB, free: 56.75 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.629/9.569, allocations: 0 / 0.8232 GB, free: 56.75 MB / 394.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