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 1.801/1.801, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.637e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09091, allocations: 44.51 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5175, allocations: 104.6 MB / 404.6 MB, free: 11.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5178, allocations: 88.75 kB / 404.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3005/0.8184, allocations: 80.52 MB / 485.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.8184, allocations: 0 / 485.2 MB, free: 15.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003184/0.8188, allocations: 83.88 kB / 485.3 MB, free: 15.2 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.01348/0.8322, allocations: 3.203 MB / 488.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.8323, allocations: 8.031 kB / 488.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001541/0.8339, allocations: 463.6 kB / 488.9 MB, free: 11.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006008/0.8399, allocations: 0.7334 MB / 489.7 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01225/0.8522, allocations: 3.308 MB / 493 MB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003202/0.8525, allocations: 246.4 kB / 493.2 MB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.8537, allocations: 315.9 kB / 493.5 MB, free: 6.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/0.8668, allocations: 4.094 MB / 497.6 MB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.8669, allocations: 7.938 kB / 497.6 MB, free: 2.586 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006473/0.8676, allocations: 140 kB / 497.8 MB, free: 2.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002259/0.8678, allocations: 150.4 kB / 497.9 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.8791, allocations: 3.297 MB / 0.4895 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03687/0.916, allocations: 13.9 MB / 0.503 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/0.9273, allocations: 6.577 MB / 0.5095 GB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003868/0.9312, allocations: 1.355 MB / 0.5108 GB, free: 7.973 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.9417, allocations: 3.811 MB / 0.5145 GB, free: 4.074 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.145e-05/0.9418, allocations: 55.88 kB / 0.5146 GB, free: 4.012 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 4.168e-06/0.9419, allocations: 0 / 0.5146 GB, free: 4.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.2741/1.216, allocations: 4.321 MB / 0.5188 GB, free: 85.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/1.216, allocations: 69.19 kB / 0.5188 GB, free: 85.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/1.22, allocations: 1.511 MB / 0.5203 GB, free: 85.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003347/1.221, allocations: 52.2 kB / 0.5204 GB, free: 85.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/1.222, allocations: 1.366 MB / 0.5217 GB, free: 84.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006995/1.222, allocations: 0.4979 MB / 0.5222 GB, free: 84.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/1.223, allocations: 39.09 kB / 0.5222 GB, free: 84.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/1.223, allocations: 385.8 kB / 0.5226 GB, free: 84.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/1.225, allocations: 0.6668 MB / 0.5232 GB, free: 84.37 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/1.227, allocations: 1.124 MB / 0.5243 GB, free: 83.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/1.229, allocations: 0.888 MB / 0.5252 GB, free: 83.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.884e-05/1.23, allocations: 3.438 kB / 0.5252 GB, free: 83.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006265/1.236, allocations: 2.357 MB / 0.5275 GB, free: 83.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/1.236, allocations: 10.72 kB / 0.5275 GB, free: 83.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.33e-05/1.236, allocations: 14.56 kB / 0.5275 GB, free: 83.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/1.237, allocations: 377.4 kB / 0.5279 GB, free: 83.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/1.24, allocations: 391.2 kB / 0.5283 GB, free: 83.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/1.253, allocations: 7.842 MB / 0.5359 GB, free: 78.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003536/1.257, allocations: 72.83 kB / 0.536 GB, free: 78.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00038/1.257, allocations: 71.38 kB / 0.5361 GB, free: 78.37 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.0006671/1.258, allocations: 216.8 kB / 0.5363 GB, free: 78.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00071/1.259, allocations: 200.8 kB / 0.5365 GB, free: 78.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008631/1.268, allocations: 2.343 MB / 0.5388 GB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/1.268, allocations: 11.47 kB / 0.5388 GB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.508e-05/1.268, allocations: 7.875 kB / 0.5388 GB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/1.268, allocations: 10.92 kB / 0.5388 GB, free: 77.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01875/1.286, allocations: 5.186 MB / 0.5438 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.287, allocations: 3.5 kB / 0.5439 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/1.289, allocations: 193.2 kB / 0.544 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003063/1.292, allocations: 0.5548 MB / 0.5446 GB, free: 77.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002614/1.292, allocations: 36.95 kB / 0.5446 GB, free: 77.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03197/1.324, allocations: 12.22 MB / 0.5565 GB, free: 69.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/1.324, allocations: 3.688 kB / 0.5566 GB, free: 69.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007727/1.332, allocations: 3.383 MB / 0.5599 GB, free: 68.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/1.333, allocations: 443.1 kB / 0.5603 GB, free: 68.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004428/1.334, allocations: 39 kB / 0.5603 GB, free: 68.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/1.335, allocations: 71.52 kB / 0.5604 GB, free: 68.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003828/1.336, allocations: 123.4 kB / 0.5605 GB, free: 68.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/1.336, allocations: 38.94 kB / 0.5605 GB, free: 68.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002366/1.338, allocations: 1.158 MB / 0.5617 GB, free: 68.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.42e-07/1.338, allocations: 2.438 kB / 0.5617 GB, free: 68.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003406/1.342, allocations: 0.6257 MB / 0.5623 GB, free: 68.16 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.008231/1.35, allocations: 4.622 MB / 0.5668 GB, free: 66.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004924/1.355, allocations: 2.303 MB / 0.569 GB, free: 65.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.355, allocations: 0 / 0.569 GB, free: 65.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003577/1.359, allocations: 1.709 MB / 0.5707 GB, free: 64.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003754/1.363, allocations: 0.5116 MB / 0.5712 GB, free: 64.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.015/1.378, allocations: 5.56 MB / 0.5766 GB, free: 61.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00255/1.38, allocations: 2.315 MB / 0.5789 GB, free: 60.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/1.383, allocations: 1.153 MB / 0.58 GB, free: 59.78 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.383, allocations: 4 kB / 0.58 GB, free: 59.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.257/5.64, allocations: 138.6 MB / 0.7154 GB, free: 82.65 MB / 410.7 MB