Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.467e-05/3.469e-05, allocations: 11.92 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2565, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.4305, allocations: 98.68 MB / 357 MB, free: 11.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/0.4308, allocations: 83.95 kB / 357.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.043/1.474, allocations: 173.4 MB / 0.518 GB, free: 44.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.474, allocations: 4 kB / 0.518 GB, free: 44.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0008424/1.475, allocations: 189.1 kB / 0.5182 GB, free: 44.82 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2059 * Number of variables: 2059 Notification: Performance of Generate backend data structure: time 0.03255/1.507, allocations: 7.508 MB / 0.5255 GB, free: 42.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/1.507, allocations: 16.09 kB / 0.5256 GB, free: 42.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008952/1.516, allocations: 1.291 MB / 0.5268 GB, free: 41.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01892/1.535, allocations: 5.804 MB / 0.5325 GB, free: 41.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005534/1.536, allocations: 255.5 kB / 0.5327 GB, free: 41.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/1.539, allocations: 473.6 kB / 0.5332 GB, free: 41.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02336/1.562, allocations: 7.744 MB / 0.5407 GB, free: 41.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03149/1.594, allocations: 9.16 MB / 0.5497 GB, free: 40.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00042/1.594, allocations: 19.36 kB / 0.5497 GB, free: 40.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002459/1.597, allocations: 14.72 kB / 0.5497 GB, free: 40.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003948/1.597, allocations: 341.2 kB / 0.55 GB, free: 40.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07717/1.674, allocations: 31.21 MB / 0.5805 GB, free: 28.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/1.686, allocations: 7.898 MB / 0.5882 GB, free: 22.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007561/1.693, allocations: 3.382 MB / 0.5915 GB, free: 21.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000435/1.694, allocations: 46.25 kB / 0.5916 GB, free: 21.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.909e-05/1.694, allocations: 78.28 kB / 0.5917 GB, free: 21.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=351): time 6.182e-06/1.694, allocations: 0 / 0.5917 GB, free: 21.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=415): time 0.04081/1.735, allocations: 13.35 MB / 0.6047 GB, free: 13.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.097e-05/1.735, allocations: 90.67 kB / 0.6048 GB, free: 13.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008219/1.743, allocations: 3.069 MB / 0.6078 GB, free: 10.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008146/1.744, allocations: 25.7 kB / 0.6078 GB, free: 10.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003314/1.747, allocations: 3.134 MB / 0.6109 GB, free: 7.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002152/1.75, allocations: 1.326 MB / 0.6122 GB, free: 6.332 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003999/1.75, allocations: 4 kB / 0.6122 GB, free: 6.328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003719/1.75, allocations: 489.6 kB / 0.6126 GB, free: 5.891 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005107/1.756, allocations: 1.966 MB / 0.6145 GB, free: 4.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00628/1.762, allocations: 2.887 MB / 0.6174 GB, free: 1.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/1.773, allocations: 2.768 MB / 0.6201 GB, free: 15.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.928e-05/1.773, allocations: 8 kB / 0.6201 GB, free: 15.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=554) (initialization): time 0.01855/1.791, allocations: 6.338 MB / 0.6263 GB, free: 10.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/1.791, allocations: 16 kB / 0.6263 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-05/1.791, allocations: 28 kB / 0.6263 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00587/1.797, allocations: 1.446 MB / 0.6277 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/1.804, allocations: 0.8313 MB / 0.6285 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3009/2.105, allocations: 19.46 MB / 0.6475 GB, free: 49.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004951/2.11, allocations: 92.72 kB / 0.6476 GB, free: 49.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009873/2.111, allocations: 162.3 kB / 0.6478 GB, free: 49.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 120 * 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 (437): * Single equations (assignments): 429 * 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,100.0%) 29,(1,100.0%) 5,(1,100.0%) 1,(6,77.8%) 43,(1,100.0%) 1,(4,56.2%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001029/2.112, allocations: 212.7 kB / 0.648 GB, free: 49.23 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01554/2.128, allocations: 6.295 MB / 0.6541 GB, free: 48.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00179/2.13, allocations: 434.8 kB / 0.6545 GB, free: 48.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/2.146, allocations: 6.579 MB / 0.661 GB, free: 47.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.319e-05/2.146, allocations: 40.16 kB / 0.661 GB, free: 47.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.786e-05/2.146, allocations: 26.5 kB / 0.661 GB, free: 47.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.75e-05/2.147, allocations: 17.91 kB / 0.6611 GB, free: 47.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0406/2.187, allocations: 15.96 MB / 0.6766 GB, free: 46.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.472e-05/2.187, allocations: 13.73 kB / 0.6767 GB, free: 46.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003964/2.191, allocations: 494.3 kB / 0.6771 GB, free: 46.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006637/2.198, allocations: 1.764 MB / 0.6788 GB, free: 46.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00073/2.199, allocations: 38.59 kB / 0.6789 GB, free: 46.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04034/2.239, allocations: 27.07 MB / 0.7053 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.451e-05/2.239, allocations: 12.66 kB / 0.7053 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02144/2.261, allocations: 10.61 MB / 0.7157 GB, free: 25.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003663/2.264, allocations: 1.015 MB / 0.7167 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00165/2.266, allocations: 27.91 kB / 0.7167 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004493/2.27, allocations: 125.8 kB / 0.7168 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/2.272, allocations: 378.7 kB / 0.7172 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004839/2.273, allocations: 115.9 kB / 0.7173 GB, free: 25.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005831/2.278, allocations: 2.307 MB / 0.7196 GB, free: 24.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.278, allocations: 2.078 kB / 0.7196 GB, free: 24.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.009174/2.288, allocations: 1.358 MB / 0.7209 GB, free: 24.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.port_n.Phi.re,aimcM.stator.port_n.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcM.rotorCage.strayInductor.inductor[4].i,aimcM.rotorCage.strayInductor.inductor[5].i,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.port_n.Phi.re,aimc3.stator.port_n.Phi.im,aimc3.stator.strayReluctance.Phi.re,aimc3.stator.strayReluctance.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 (261): * Single equations (assignments): 252 * 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 {(6,77.8%) 42,(6,72.2%) 45,(1,100.0%) 1,(1,100.0%) 8,(4,100.0%) 28,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02319/2.311, allocations: 13.58 MB / 0.7341 GB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0148/2.326, allocations: 6.344 MB / 0.7403 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.586e-05/2.326, allocations: 3.188 kB / 0.7403 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01173/2.338, allocations: 4.86 MB / 0.7451 GB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00773/2.345, allocations: 0.8622 MB / 0.7459 GB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04832/2.394, allocations: 14.95 MB / 0.7605 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/2.405, allocations: 5.258 MB / 0.7657 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008067/2.413, allocations: 3.036 MB / 0.7686 GB, free: 7.746 MB / 394.7 MB Notification: Performance of SimCode: time 1.453e-06/2.413, allocations: 0 / 0.7686 GB, free: 7.746 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.435/8.848, allocations: 470.5 MB / 1.228 GB, free: 69.01 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat