Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.116e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09156/0.09161, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4867/0.5783, allocations: 107.8 MB / 407.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5787, allocations: 88.89 kB / 407.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8896/1.468, allocations: 159.2 MB / 0.5538 GB, free: 55.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.468, allocations: 0 / 0.5538 GB, free: 55.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008562/1.469, allocations: 166.9 kB / 0.554 GB, free: 55.38 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: 1849 * Number of variables: 1849 Notification: Performance of Generate backend data structure: time 0.03603/1.505, allocations: 6.412 MB / 0.5602 GB, free: 53.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.465e-05/1.505, allocations: 7 kB / 0.5602 GB, free: 53.16 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004601/1.51, allocations: 0.947 MB / 0.5612 GB, free: 53.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/1.526, allocations: 1.521 MB / 0.5627 GB, free: 52.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01991/1.546, allocations: 5.707 MB / 0.5682 GB, free: 51.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006496/1.546, allocations: 0.506 MB / 0.5687 GB, free: 51.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00285/1.549, allocations: 0.6795 MB / 0.5694 GB, free: 51.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02942/1.579, allocations: 8.943 MB / 0.5781 GB, free: 51.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004499/1.579, allocations: 18.09 kB / 0.5781 GB, free: 51.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002477/1.582, allocations: 289.8 kB / 0.5784 GB, free: 51.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003991/1.582, allocations: 320.6 kB / 0.5787 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02323/1.605, allocations: 7.214 MB / 0.5858 GB, free: 51.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07433/1.68, allocations: 28.79 MB / 0.6139 GB, free: 36.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02125/1.701, allocations: 16.32 MB / 0.6298 GB, free: 21.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006906/1.708, allocations: 2.86 MB / 0.6326 GB, free: 20.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02033/1.729, allocations: 7.678 MB / 0.6401 GB, free: 16.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/1.729, allocations: 64.41 kB / 0.6402 GB, free: 16.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=251): time 5.51e-06/1.729, allocations: 3.938 kB / 0.6402 GB, free: 16.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=257): time 0.01952/1.748, allocations: 7.69 MB / 0.6477 GB, free: 11.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.748, allocations: 85.39 kB / 0.6478 GB, free: 11.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006139/1.754, allocations: 2.903 MB / 0.6506 GB, free: 8.605 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005708/1.755, allocations: 65.7 kB / 0.6507 GB, free: 8.535 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001885/1.757, allocations: 2.844 MB / 0.6534 GB, free: 5.957 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/1.758, allocations: 0.8979 MB / 0.6543 GB, free: 5.148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/1.758, allocations: 64 kB / 0.6544 GB, free: 5.086 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001936/1.759, allocations: 443.2 kB / 0.6548 GB, free: 4.684 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002977/1.762, allocations: 1.286 MB / 0.6561 GB, free: 3.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003534/1.765, allocations: 2.286 MB / 0.6583 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006885/1.772, allocations: 1.891 MB / 0.6601 GB, free: 15.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.602e-05/1.772, allocations: 10.81 kB / 0.6601 GB, free: 15.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.01208/1.784, allocations: 4.156 MB / 0.6642 GB, free: 11.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.083e-05/1.784, allocations: 20 kB / 0.6642 GB, free: 11.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.104e-05/1.784, allocations: 35.3 kB / 0.6643 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/1.786, allocations: 404.4 kB / 0.6646 GB, free: 11.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006223/1.792, allocations: 0.7872 MB / 0.6654 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009771/1.802, allocations: 7.31 MB / 0.6726 GB, free: 3.422 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00471/1.807, allocations: 163.5 kB / 0.6727 GB, free: 3.281 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008073/1.808, allocations: 147.8 kB / 0.6729 GB, free: 3.141 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 397 * 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.0008437/1.809, allocations: 314.4 kB / 0.6732 GB, free: 2.832 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/1.81, allocations: 367.5 kB / 0.6735 GB, free: 2.469 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3469/2.157, allocations: 4.049 MB / 0.6775 GB, free: 65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.547e-05/2.157, allocations: 24.91 kB / 0.6775 GB, free: 65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.536e-05/2.157, allocations: 19.86 kB / 0.6775 GB, free: 64.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-05/2.157, allocations: 11.91 kB / 0.6775 GB, free: 64.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03985/2.197, allocations: 9.61 MB / 0.6869 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.167e-05/2.197, allocations: 3.906 kB / 0.6869 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005202/2.202, allocations: 390.3 kB / 0.6873 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005411/2.208, allocations: 0.856 MB / 0.6881 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007065/2.208, allocations: 71.53 kB / 0.6882 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03123/2.24, allocations: 15.98 MB / 0.7038 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/2.24, allocations: 6.344 kB / 0.7038 GB, free: 54.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/2.259, allocations: 6.047 MB / 0.7097 GB, free: 53.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003596/2.263, allocations: 0.7447 MB / 0.7104 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001649/2.265, allocations: 62.67 kB / 0.7105 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005216/2.27, allocations: 145.7 kB / 0.7106 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001136/2.271, allocations: 200.7 kB / 0.7108 GB, free: 53.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004075/2.272, allocations: 76.08 kB / 0.7109 GB, free: 53.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00807/2.28, allocations: 2.197 MB / 0.713 GB, free: 53.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.453e-06/2.28, allocations: 0 / 0.713 GB, free: 53.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009733/2.29, allocations: 1.188 MB / 0.7142 GB, free: 53.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 184 * 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%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02137/2.311, allocations: 7.922 MB / 0.7219 GB, free: 51.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008936/2.32, allocations: 3.792 MB / 0.7256 GB, free: 50.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/2.32, allocations: 0 / 0.7256 GB, free: 50.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006679/2.327, allocations: 2.664 MB / 0.7282 GB, free: 49.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007539/2.334, allocations: 0.9165 MB / 0.7291 GB, free: 49.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03926/2.374, allocations: 11.46 MB / 0.7403 GB, free: 47.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008234/2.382, allocations: 4.225 MB / 0.7444 GB, free: 45.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006303/2.388, allocations: 2.55 MB / 0.7469 GB, free: 43.43 MB / 426.7 MB Notification: Performance of SimCode: time 1.904e-06/2.388, allocations: 0 / 0.7469 GB, free: 43.43 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.479/7.868, allocations: 319.9 MB / 1.059 GB, free: 89.48 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.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat