Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.764e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.08976, allocations: 44.52 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4521/0.5419, allocations: 104.6 MB / 404.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/0.5422, allocations: 87.92 kB / 404.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3002/0.8424, allocations: 80.51 MB / 485.2 MB, free: 15.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.8425, allocations: 0 / 485.2 MB, free: 15.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003743/0.8429, allocations: 83.88 kB / 485.2 MB, free: 15.21 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01457/0.8575, allocations: 3.211 MB / 488.4 MB, free: 11.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.8575, allocations: 8.031 kB / 488.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001945/0.8595, allocations: 459.6 kB / 488.9 MB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006353/0.8659, allocations: 0.7334 MB / 489.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01303/0.879, allocations: 3.304 MB / 492.9 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004164/0.8794, allocations: 242.5 kB / 493.2 MB, free: 7.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001489/0.8809, allocations: 327.9 kB / 493.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/0.8955, allocations: 4.138 MB / 497.6 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.8957, allocations: 4 kB / 497.6 MB, free: 2.547 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008363/0.8966, allocations: 132 kB / 497.8 MB, free: 2.418 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002333/0.8968, allocations: 146.4 kB / 497.9 MB, free: 2.273 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/0.9089, allocations: 3.341 MB / 0.4895 GB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0402/0.9492, allocations: 13.9 MB / 0.5031 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/0.9605, allocations: 6.599 MB / 0.5095 GB, free: 9.227 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003884/0.9645, allocations: 1.355 MB / 0.5108 GB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01118/0.9757, allocations: 3.815 MB / 0.5146 GB, free: 3.969 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.481e-05/0.9758, allocations: 55.86 kB / 0.5146 GB, free: 3.906 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 3.928e-06/0.9758, allocations: 0 / 0.5146 GB, free: 3.906 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.2893/1.265, allocations: 4.335 MB / 0.5189 GB, free: 85.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/1.265, allocations: 66.75 kB / 0.5189 GB, free: 85.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00387/1.269, allocations: 1.514 MB / 0.5204 GB, free: 84.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003465/1.27, allocations: 52.88 kB / 0.5205 GB, free: 84.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009951/1.271, allocations: 1.362 MB / 0.5218 GB, free: 84.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006178/1.271, allocations: 0.5003 MB / 0.5223 GB, free: 84.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/1.271, allocations: 36.03 kB / 0.5223 GB, free: 84.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/1.272, allocations: 381.3 kB / 0.5227 GB, free: 84.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/1.273, allocations: 0.6702 MB / 0.5233 GB, free: 84.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/1.275, allocations: 1.136 MB / 0.5244 GB, free: 83.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/1.278, allocations: 0.888 MB / 0.5253 GB, free: 83.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/1.278, allocations: 4.156 kB / 0.5253 GB, free: 83.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00621/1.284, allocations: 2.394 MB / 0.5276 GB, free: 83.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/1.284, allocations: 11.83 kB / 0.5277 GB, free: 83.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/1.284, allocations: 16.44 kB / 0.5277 GB, free: 83.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/1.286, allocations: 378.1 kB / 0.528 GB, free: 83.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/1.289, allocations: 383.2 kB / 0.5284 GB, free: 83.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009806/1.298, allocations: 7.84 MB / 0.5361 GB, free: 78.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/1.301, allocations: 81.61 kB / 0.5361 GB, free: 78.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/1.301, allocations: 72.64 kB / 0.5362 GB, free: 78.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(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%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004454/1.302, allocations: 211.6 kB / 0.5364 GB, free: 77.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004155/1.302, allocations: 195.7 kB / 0.5366 GB, free: 77.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006136/1.308, allocations: 2.351 MB / 0.5389 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/1.308, allocations: 11.81 kB / 0.5389 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/1.308, allocations: 7.812 kB / 0.5389 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.46e-05/1.308, allocations: 14.33 kB / 0.5389 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/1.321, allocations: 5.191 MB / 0.544 GB, free: 76.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/1.321, allocations: 3.844 kB / 0.544 GB, free: 76.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/1.322, allocations: 191.5 kB / 0.5442 GB, free: 76.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002258/1.325, allocations: 0.5514 MB / 0.5447 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000196/1.325, allocations: 37.72 kB / 0.5447 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01507/1.34, allocations: 12.23 MB / 0.5567 GB, free: 68.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.34, allocations: 0 / 0.5567 GB, free: 68.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007851/1.348, allocations: 3.391 MB / 0.56 GB, free: 68.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/1.349, allocations: 437.8 kB / 0.5604 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004937/1.35, allocations: 38.09 kB / 0.5605 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001764/1.352, allocations: 72.48 kB / 0.5605 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/1.352, allocations: 119.1 kB / 0.5606 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.352, allocations: 39.47 kB / 0.5607 GB, free: 67.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002555/1.355, allocations: 1.161 MB / 0.5618 GB, free: 67.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.723e-06/1.355, allocations: 0 / 0.5618 GB, free: 67.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003679/1.359, allocations: 0.6309 MB / 0.5624 GB, free: 67.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0087/1.367, allocations: 4.619 MB / 0.5669 GB, free: 66.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005313/1.373, allocations: 2.364 MB / 0.5692 GB, free: 65.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/1.373, allocations: 3.906 kB / 0.5693 GB, free: 65.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003854/1.377, allocations: 1.759 MB / 0.571 GB, free: 63.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/1.381, allocations: 0.507 MB / 0.5715 GB, free: 63.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01608/1.397, allocations: 5.574 MB / 0.5769 GB, free: 61.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/1.4, allocations: 2.319 MB / 0.5792 GB, free: 60.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002415/1.402, allocations: 1.146 MB / 0.5803 GB, free: 59.47 MB / 410.7 MB Notification: Performance of SimCode: time 1.232e-06/1.402, allocations: 4 kB / 0.5803 GB, free: 59.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.175/5.577, allocations: 138.9 MB / 0.7159 GB, free: 80.83 MB / 410.7 MB