Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.84/1.84, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.882e-05/2.896e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09189/0.09196, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5352/0.6272, allocations: 106.8 MB / 406.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.6275, allocations: 87.88 kB / 406.8 MB, free: 10.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.918/1.546, allocations: 183 MB / 0.576 GB, free: 54.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.546, allocations: 0 / 0.576 GB, free: 54.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007731/1.546, allocations: 190.8 kB / 0.5762 GB, free: 54.77 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03181/1.578, allocations: 7.617 MB / 0.5836 GB, free: 52.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/1.578, allocations: 7.25 kB / 0.5836 GB, free: 52.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004135/1.582, allocations: 1.102 MB / 0.5847 GB, free: 52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01438/1.597, allocations: 1.819 MB / 0.5865 GB, free: 51.53 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02277/1.62, allocations: 6.954 MB / 0.5933 GB, free: 50.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007423/1.62, allocations: 0.5912 MB / 0.5938 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003288/1.624, allocations: 0.7828 MB / 0.5946 GB, free: 50.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03199/1.656, allocations: 10.69 MB / 0.6051 GB, free: 46.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003099/1.656, allocations: 10.86 kB / 0.6051 GB, free: 46.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001905/1.658, allocations: 341.9 kB / 0.6054 GB, free: 46.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004166/1.658, allocations: 360.1 kB / 0.6057 GB, free: 46.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02643/1.685, allocations: 8.896 MB / 0.6144 GB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08659/1.772, allocations: 34.55 MB / 0.6482 GB, free: 19.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02817/1.8, allocations: 19.64 MB / 0.6673 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01352/1.813, allocations: 3.609 MB / 0.6709 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03682/1.85, allocations: 9.409 MB / 0.68 GB, free: 4.336 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/1.85, allocations: 76.98 kB / 0.6801 GB, free: 4.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=315): time 9.107e-06/1.85, allocations: 0 / 0.6801 GB, free: 4.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=321): time 0.3502/2.201, allocations: 10.02 MB / 0.6899 GB, free: 68.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/2.201, allocations: 91.92 kB / 0.69 GB, free: 68.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009912/2.211, allocations: 3.831 MB / 0.6937 GB, free: 67.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007095/2.211, allocations: 79.89 kB / 0.6938 GB, free: 67.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003011/2.214, allocations: 3.278 MB / 0.697 GB, free: 66.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001536/2.216, allocations: 1.079 MB / 0.6981 GB, free: 65.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/2.216, allocations: 75.59 kB / 0.6981 GB, free: 65.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002689/2.217, allocations: 464.1 kB / 0.6986 GB, free: 65.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004083/2.221, allocations: 1.681 MB / 0.7002 GB, free: 65.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004684/2.225, allocations: 2.697 MB / 0.7029 GB, free: 64.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004981/2.23, allocations: 2.173 MB / 0.705 GB, free: 64.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-05/2.231, allocations: 10.92 kB / 0.705 GB, free: 64.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01263/2.243, allocations: 5.362 MB / 0.7102 GB, free: 63.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/2.243, allocations: 18.19 kB / 0.7102 GB, free: 63.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-05/2.243, allocations: 31.03 kB / 0.7103 GB, free: 63.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003037/2.246, allocations: 0.8014 MB / 0.7111 GB, free: 63.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006014/2.252, allocations: 0.8065 MB / 0.7118 GB, free: 63.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/2.27, allocations: 14.79 MB / 0.7263 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00549/2.276, allocations: 185.5 kB / 0.7265 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005614/2.276, allocations: 161.2 kB / 0.7266 GB, free: 54.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (427): * Single equations (assignments): 418 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009022/2.277, allocations: 348 kB / 0.727 GB, free: 54.51 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/2.279, allocations: 456.5 kB / 0.7274 GB, free: 54.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/2.294, allocations: 5.381 MB / 0.7326 GB, free: 53.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-05/2.294, allocations: 40.66 kB / 0.7327 GB, free: 53.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.005e-05/2.294, allocations: 20.88 kB / 0.7327 GB, free: 53.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.975e-05/2.294, allocations: 15.19 kB / 0.7327 GB, free: 53.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03125/2.325, allocations: 12.32 MB / 0.7447 GB, free: 50.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.788e-05/2.325, allocations: 3.969 kB / 0.7448 GB, free: 50.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003137/2.328, allocations: 371.7 kB / 0.7451 GB, free: 50.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005492/2.334, allocations: 1.367 MB / 0.7464 GB, free: 50.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004399/2.334, allocations: 95.12 kB / 0.7465 GB, free: 50.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0332/2.368, allocations: 23.92 MB / 0.7699 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/2.368, allocations: 7.406 kB / 0.7699 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0176/2.385, allocations: 8.171 MB / 0.7779 GB, free: 28.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003506/2.389, allocations: 0.9525 MB / 0.7788 GB, free: 27.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001143/2.39, allocations: 84.69 kB / 0.7789 GB, free: 27.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0039/2.394, allocations: 185.9 kB / 0.7791 GB, free: 27.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.395, allocations: 330.3 kB / 0.7794 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003075/2.395, allocations: 89.44 kB / 0.7795 GB, free: 27.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006173/2.401, allocations: 2.916 MB / 0.7823 GB, free: 26.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.82e-07/2.401, allocations: 0 / 0.7823 GB, free: 26.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007763/2.409, allocations: 1.47 MB / 0.7837 GB, free: 26.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01877/2.428, allocations: 10.03 MB / 0.7935 GB, free: 20.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0111/2.439, allocations: 5.236 MB / 0.7987 GB, free: 17.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/2.439, allocations: 3.812 kB / 0.7987 GB, free: 17.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008633/2.448, allocations: 3.86 MB / 0.8024 GB, free: 15.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008261/2.456, allocations: 1.163 MB / 0.8036 GB, free: 15.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03926/2.495, allocations: 13.92 MB / 0.8172 GB, free: 4.176 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008113/2.504, allocations: 5.119 MB / 0.8222 GB, free: 384 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01617/2.52, allocations: 3.595 MB / 0.8257 GB, free: 15.75 MB / 442.7 MB Notification: Performance of SimCode: time 4.348e-06/2.52, allocations: 0 / 0.8257 GB, free: 15.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.823/9.343, allocations: 489.9 MB / 1.304 GB, free: 44.55 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat